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
#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 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 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 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 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 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) |
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
fn main() { | |
println!("Hello, world!"); | |
} |
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
[package] | |
name = "hello_world" | |
version = "0.1.0" | |
authors = [ "Your name <you@example.com>" ] |
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
// ==UserScript== | |
// @name Joudai | |
// @namespace http://shizone.github.io/ | |
// @description Joudai | |
// @include http://www.apple.com/jp/ipad-pro/ | |
// ==/UserScript== | |
(function() { | |
document.body.innerHTML = document.body.innerHTML.replace( | |
/壮大/g, "状大"); |
OlderNewer