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
//&cls&node %0&pause > nul&exit /b 0 | |
var cp = require('child_process'); | |
var p = console.log; | |
function $(a){ | |
r = ""+cp.execSync(a); | |
p("$ "+a+"\n => "+r); | |
return r; | |
} |
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
#&cls&coffee %0&pause > nul&exit /b 0 | |
cp = require('child_process') | |
p = console.log | |
$ = (a) -> | |
r = ""+cp.execSync(a) | |
p "$ #{a}\n => #{r}" | |
return r |
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
<a class="twitter-timeline" href="https://twitter.com/search?q=%23%E3%81%8F%E3%81%BE%E3%81%98%E3%82%93" data-widget-id="454428910218784768">Twitterの反応</a> | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | |
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
bullet(label='downAccel') | |
direction 270 | |
speed 2 | |
action | |
accel | |
vertical 3 | |
term 120 |
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> | |
<head> | |
<meta charset="utf-8"/> | |
<title>transdb JSON</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script src="jquery.csv.js"></script> | |
<script> | |
var csv_urls = |
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
WWW www = new WWW ("http://mfk.sakura.ne.jp/sblo_files/kumaden/image/transdb.json"); | |
yield www; | |
var langdb = JsonFx.Json.JsonReader.Deserialize<LangDB>(www.text); | |
Debug.Log( langdb.JA["FREE to download"] ); | |
//---- | |
[System.Serializable] | |
public class LangDB | |
{ | |
public Dictionary<string, Dictionary<string, string>> EN; |
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
$.get("http://mfk.sakura.ne.jp/sblo_files/kumaden/image/transdb.json", function(data){ | |
var langdb = eval(data); | |
console.log( langdb["JA"]["FREE to download"] ); //ロケール→英文で指定 | |
}); | |
//結果 | |
//> 無料ダウンロード | |
// |
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
#!-*- coding:utf-8 -*- | |
#!/usr/bin/env python | |
#おまじない------------- | |
import sys | |
stdin = sys.stdin | |
stdout = sys.stdout | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
sys.stdin = stdin |