This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<title>Riot Demo</title> | |
</head> | |
<body> | |
<!-- ここに、yabaiのコンポーネントができてほしい --> | |
<yabai></yabai> | |
<!-- 「yabaiタグ」の定義 (外部ファイルに書いて、srcで読み込んでもよい) --> |
This file contains 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
# オリジナルのアイコン画像を original.png とする | |
# iPhone・Android通して最大のアイコンサイズは180x180なので、original.pngはそれ以上のサイズで用意 | |
# ios | |
$ convert -resize 120x120 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon_app\@2x.png | |
$ convert -resize 180x180 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon_app\@3x.png | |
$ convert -resize 80x80 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon_spotlight\@2x.png | |
$ convert -resize 120x120 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon_spotlight\@3x.png | |
$ convert -resize 58x58 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon\@2x.png | |
$ convert -resize 87x87 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon\@3x.png |
This file contains 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
# project_aを含むファイルを、すべてproject_bに置き換えて保存 | |
ag -l project_a | xargs sed -i '' -e 's/project_a/project_b/g' |
This file contains 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
export url=$1 | |
while : | |
do | |
likes=$(curl "http://graph.facebook.com/$url" -s | jq '.shares') | |
tweets=$(curl "http://urls.api.twitter.com/1/urls/count.json?url=$url" -s | jq '.count') | |
clear | |
echo $url | |
echo " - likes: $likes" |
This file contains 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
var context = new window.AudioContext(); |
This file contains 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
var system = require('system'); | |
var url = system.args[1]; | |
if (!/^https?:\/\//.test(url)) { | |
console.error('Pass a url!'); | |
phantom.exit(); | |
} | |
phantom.onError = function(msg, trace) { | |
var msgStack = ['PHANTOM ERROR: ' + msg]; |
This file contains 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
var shellLines = require('./lib/shellLines'); | |
exports.template = function (grunt, init, done) { | |
init.process( {}, [ | |
init.prompt('name'), | |
init.prompt('description') | |
], function(err, props) { | |
// write package.json | |
init.writePackageJSON('package.json', pkg); |
This file contains 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
// 簡易な非同期処理 | |
var async = function (fns) { | |
(function exec (index) { | |
if (!fns[index]) { | |
return; | |
} | |
fns[index](function () { | |
exec(index + 1); | |
}); | |
})(0); |
This file contains 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
npm install --save-dev grunt-release |
This file contains 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
options: [ | |
"options.default.json", | |
"options.dev.json" | |
] |
NewerOlder