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
require! { | |
\twitter : Twitter | |
} | |
class TwitterProxy | |
(keys, targetScreenName) -> | |
@account = new Twitter keys | |
@rules = [] | |
(stream) <~ @account.stream \user, _ |
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> | |
<title>Isshu-Shuffle</title> | |
</head> | |
<body> | |
<h1>百人一首シャッフルくん</h1> | |
<script> | |
var hyakunin = [["秋の田の","かりほの庵の","苫をあらみ","我が衣手は","露にぬれつつ"],["春過ぎて","夏来にけらし","白妙の","衣ほすてふ","天の香具山"],["あしびきの","山鳥の尾の","しだり尾の","ながながし夜を","ひとりかも寝む"],["田子の浦に","うちいでてみれば","白妙の","富士の高嶺に","雪は降りつつ"],["奥山に","もみぢふみわけ","なく鹿の","声聞く時ぞ","秋はかなしき"],["かささぎの","渡せる橋に","おく霜の","白きをみれば","夜ぞふけにける"],["天の原","ふりさけみれば","春日なる","三笠の山に","いでし月かも"],["わが庵は","都のたつみ","しかぞすむ","世をうぢ山と","人はいふなり"],["花の色は","うつりにけりな","いたづらに","わが身よにふる","ながめせしまに"],["これやこの","行くも帰るも","わかれては","しるもしらぬも","逢坂の関"],["わたの原","八十島かけて","こぎいでぬと","人にはつげよ","あまのつり舟"],["天つ風","雲のかよひ路","吹きとぢよ","をとめの姿","しばしとどめむ"],["つくばねの","峰よりおつる","みなの川","恋ぞつもりて","淵となりぬる"],["みちのくの","しのぶもぢずり","誰ゆゑに","みだれそめにし","我ならなくに"],["君がため","春の野に出でて","若菜つむ","わが衣手に","雪はふりつつ"],["立ちわかれ","いなばの山の","峰に生ふる","まつとし聞かば","いまかへりこむ"],["ちはやぶる","神代もきかず","竜田川","からくれなゐに","水くくるとは"],["住の江の","岸による波","よるさへや","夢のかよひ路","人目よくらむ"],["難波潟","みじかき蘆の","ふしのまも","あはでこの世を","すぐしてよとや"],["わびぬれば","いまはたおなじ","難波なる","身をつくしても","あはむとぞ思ふ"],["今こむと","いひしばかりに" |
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
'use strict'; | |
var spawn = require('child_process').spawn; | |
var MeCab = module.exports = function (mecabPath) { | |
this.mecabPath = mecabPath || '/usr/local/bin/mecab'; | |
this.process = spawn(this.mecabPath); | |
}; | |
MeCab.prototype.end = function () { |
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
$GPGSA,M,1,,,,,,,,,,,,,,,*12 | |
$GPRMC,082516.802,V,,,,,,,130715,,,N*4E | |
$GPGGA,082517.801,,,,,0,00,,,M,0.0,M,,0000*56 | |
$GPGSA,M,1,,,,,,,,,,,,,,,*12 | |
$GPRMC,082517.801,V,,,,,,,130715,,,N*4C | |
$GPGGA,082518.797,,,,,0,00,,,M,0.0,M,,0000*59 | |
$GPGSA,M,1,,,,,,,,,,,,,,,*12 | |
$GPGSV,3,1,12,01,63,038,11,17,28,312,20,23,16,154,19,27,73,049,*7B | |
$GPGSV,3,2,12,57,54,225,,28,44,262,,11,42,085,,04,39,068,*7A | |
$GPGSV,3,3,12,14,25,080,,19,21,126,,20,10,046,,02,10,272,*7B |
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'> | |
<link rel='stylesheet' href='./main.css'> | |
</head> | |
<body> | |
<div id='all'> | |
<h1>モンテカルロ法による円周率算出</h1> | |
<canvas></canvas> |
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
#include <stdio.h> | |
#define ID_LEN 12 | |
int main() { | |
char id[ID_LEN] = { | |
0x30, 0x31, 0x30, 0x30, | |
0x30, 0x37, 0x33, 0x34, |
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 spawn = require('child_process').spawn; | |
var fs = require('fs'); | |
var rs = fs.createReadStream('./kani.txt'); | |
var mecab = spawn('/usr/local/bin/mecab'); | |
// Read ストリーム --> MeCab --> 標準出力 | |
// ってかんじでデータをわたしていく | |
rs.pipe(mecab.stdin); | |
mecab.stdout.pipe(process.stdout); |
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
require! { | |
child_process | |
twitter:Twitter | |
merge | |
} | |
tw = new Twitter { | |
consumer_key : process.env.IKR7GYAZO_CONSUMER_KEY | |
consumer_secret : process.env.IKR7GYAZO_CONSUMER_SECRET | |
access_token_key : process.env.IKR7GYAZO_ACCESS_TOKEN_KEY |
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
(function(global){ | |
var cUtils = {}; | |
cUtils.override = function(CanvasRenderingContext2D){ | |
CanvasRenderingContext2D.prototype.flush = function(){ | |
this.clearRect(0, 0, this.canvas.width, this.canvas.height); | |
}; |
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
#include "mbed.h" | |
#include "USBKeyboard.h" | |
USBKeyboard kbd; | |
int main() { | |
kbd.putc('z'); | |
wait(1); | |
kbd.putc('/'); | |
} |