This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- parent --> | |
<template> | |
<div class="page-container"> | |
<custom-text @custom-click="customClick" /> | |
</div> | |
</template> | |
<script> | |
import wepy from '@wepy/core' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import wepy from 'wepy' | |
export default class Child1 extends wepy.page { | |
props = { | |
childId: { | |
type: String, | |
default: null | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//// Bezier 2 Drawing | |
UIBezierPath* bezier2Path = UIBezierPath.bezierPath; | |
[bezier2Path moveToPoint: CGPointMake(97.5, 68.12)]; | |
[bezier2Path addCurveToPoint: CGPointMake(93.5, 83.12) controlPoint1: CGPointMake(97.5, 68.12) controlPoint2: CGPointMake(99.79, 80.7)]; | |
[bezier2Path addCurveToPoint: CGPointMake(108.5, 74.12) controlPoint1: CGPointMake(87.21, 85.54) controlPoint2: CGPointMake(105.36, 86.23)]; | |
[UIColor.darkGrayColor setStroke]; | |
bezier2Path.lineWidth = 1; | |
[bezier2Path stroke]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html,body{ | |
-webkit-font-smoothing:antialiased!important; | |
font-family:Avenir,'Helvetica Neue'!important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCursorPos() { | |
var cursorPos; | |
if (window.getSelection) { | |
var selObj = window.getSelection(); | |
var selRange = selObj.getRangeAt(0); | |
cursorPos = findNode(selObj.anchorNode.parentNode.childNodes, selObj.anchorNode) + selObj.anchorOffset; | |
/* FIXME the following works wrong in Opera when the document is longer than 32767 chars */ | |
alert(cursorPos); | |
} | |
else if (document.selection) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Allen < ActiveRecord::Base | |
has_many :joins, :as => :resource | |
... | |
end | |
class Bob < ActiveRecord::Base | |
has_many :joins, :as => :resource | |
... | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65.49.26.99 twitter.com | |
65.49.26.98 si0.twimg.com | |
65.49.26.98 si1.twimg.com | |
65.49.26.98 si2.twimg.com | |
65.49.26.98 si3.twimg.com | |
65.49.26.98 si4.twimg.com | |
65.49.26.98 si5.twimg.com | |
65.49.26.97 api.twitter.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
艺术|Art | |
喜剧|Comedy | |
漫画|Comics | |
舞蹈|Dance | |
设计|Design | |
时尚|Fashion | |
电影与视频|Film-and-Video | |
食品|Food | |
游戏|Games | |
新闻|Journalism |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 example.com | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Want a route like http://example.com/:id/photos in Rails 3 | |
# I have a username route below | |
class User < ActiveRecord::Base | |
def to_param | |
screen_name | |
end | |
end | |
match ':id' => 'users#show', :as => 'user_profile' |
NewerOlder