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
#!/usr/bin/env xsbtscript | |
!# | |
/*** | |
scalaVersion := "2.9.2" | |
*/ | |
import scala.xml.XML | |
import scala.io.Source |
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
// ==UserScript== | |
// @name We are irof | |
// @namespace http://shizone.github.com/ | |
// @description irof Advent Calendar 2012/12/09. | |
// @include http://atnd.org/events/34079 | |
// ==/UserScript== | |
(function() { | |
document.body.innerHTML = document.body.innerHTML.replace( | |
/<a href=\"\/users\/.*<\/a>/g, |
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
・好きな言語は? | |
・好きなメソッドは? | |
・好きなアニメは? | |
・好きなガンダムシリーズは? | |
・githubアカウントは? | |
・英語しゃべれる? | |
・最近気になるテクノロジーは? | |
・最近行った勉強会は? | |
・最近登壇した勉強会は? | |
・iPhone落とした事ある? |
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
var cookie = document.getElementById("bigCookie"); | |
var e = document.createEvent("MouseEvents"); | |
e.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, | |
false, false, false, 0, null); | |
window.setInterval( function() { | |
cookie.dispatchEvent(e); | |
}, 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
#python3.3 is inside | |
def checkio(els): | |
return reduce(lambda x,y: x+y, els[0:3]) | |
if checkio([1, 2, 3, 4, 5, 6]) == 6: | |
print('Done!') |
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
1位 サツバツ・ナイト・バイ・ナイト 283票 | |
2位 ファスト・アズ・ライトニング、コールド・アズ・ウインター 251票 | |
3位 フー・キルド・ニンジャスレイヤー? 234票 | |
4位 ノーホーマー・ノーサヴァイヴ 214票 | |
5位 モータードリヴン・ブルース 195票 | |
6位 リヴィング・ウェル・イズ・ザ・ベスト・リヴェンジ 178票 | |
7位 ヘイル・トゥ・ザ・シェード・オブ・ブッダスピード 165票 | |
8位 レプリカ・ミッシング・リンク 134票 | |
9位 キリング・フィールド・サップーケイ 127票 | |
10位 リボルバー・アンド・ヌンチャク 123票 |
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
import java.util.Random | |
val s = List( | |
"Koutarou Ishizaki", | |
"ryosms", | |
"Takafumi Yoshida", | |
"英吉", | |
"Katsuhiro Masaki", | |
"山本裕介", | |
"Tomohiko Himura", |
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
// ==UserScript== | |
// @name DanKogai | |
// @namespace http://shizone.github.io/ | |
// @description DanKogai | |
// @include http://droidkaigi.github.io/ | |
// ==/UserScript== | |
(function() { | |
document.title = document.title.replace( | |
/DroidKaigi/g, "DanKogai"); |
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
(defn reverse [x] | |
(loop [result nil acc (vec x)] | |
(if (empty? acc) | |
(apply str result) | |
(recur (conj result (first acc)) | |
(rest acc))))) | |
(reverse "qwerty") | |
"ytrewq" |
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
(defn greatest-common-divisor [x y] | |
(loop [n (min x y)] | |
(if (and (= (rem x n) 0) (= (rem y n) 0)) | |
n | |
(recur (dec n)) | |
) | |
) | |
) | |
(greatest-common-divisor 12 18) |