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
| SocialPost.twitter("呟きたい文字列"); |
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
| XxxController xxx = FindObjectOfType<XxxController> (); |
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
| .xxx | |
| +fontface('xxx', 'xxx/xxx-webfont') | |
| font-family: 'xxx' |
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 filterKey(key, attr) { | |
| return function(i, index){ | |
| if (i[key] == attr) return true; | |
| }; | |
| } | |
| //howto | |
| array.filter(filterKey('count', 1)); |
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 sortKey(key) { | |
| return function(a, b){ | |
| var x = a[key]; | |
| var y = b[key]; | |
| if (x > y) return 1; | |
| if (x < y) return -1; | |
| return 0; | |
| }; | |
| } |
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
| #!/bin/sh | |
| DIR=$(cd $(dirname $0); pwd) | |
| cd ${DIR} | |
| zip -r htdocs.zip htdocs |
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
| //from http://d.hatena.ne.jp/shunsuk/20100415/1271320619 | |
| obj = Struct.new('Obj', :title, :url, :image) | |
| item = obj.new('title', 'url', 'image') | |
| //other | |
| xxx = { | |
| :title => 'gists', | |
| :url => 'https://gist.github.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
| // prefixes mixin | |
| =prefixes($property, $value) | |
| $prefixes: -webkit-, -moz-, -ms-, -o-, '' | |
| @each $prefix in $prefixes | |
| #{$prefix}#{$property}: $value | |
| // howto | |
| =border-radius($value) | |
| +prefixes(border-radius, $value) |
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
| #if UNITY_IPHONE | |
| #endif |
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 | |
| <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
| //js | |
| var w = screen.width; | |
| if (w <= 480) document.getElementById("viewport").setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1"); | |
| else document.getElementById("viewport").setAttribute("content", "width=1024, maximum-scale=1"); | |
| } |