Skip to content

Instantly share code, notes, and snippets.

View shizone's full-sized avatar

SUMIDA Yuki shizone

View GitHub Profile
@shizone
shizone / njvote2014
Created March 5, 2014 03:26
#njvote2014 まとめ
1位 サツバツ・ナイト・バイ・ナイト 283票
2位 ファスト・アズ・ライトニング、コールド・アズ・ウインター 251票
3位 フー・キルド・ニンジャスレイヤー? 234票
4位 ノーホーマー・ノーサヴァイヴ 214票
5位 モータードリヴン・ブルース 195票
6位 リヴィング・ウェル・イズ・ザ・ベスト・リヴェンジ 178票
7位 ヘイル・トゥ・ザ・シェード・オブ・ブッダスピード 165票
8位 レプリカ・ミッシング・リンク 134票
9位 キリング・フィールド・サップーケイ 127票
10位 リボルバー・アンド・ヌンチャク 123票
@shizone
shizone / registration.py
Last active August 29, 2015 13:56
Check iOのRegistrationで怒られた
#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!')
@shizone
shizone / gist:6572029
Created September 15, 2013 16:05
Developer Consoleからコード突っ込んでクッキークリックしまくるやつ
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)
・好きな言語は?
・好きなメソッドは?
・好きなアニメは?
・好きなガンダムシリーズは?
・githubアカウントは?
・英語しゃべれる?
・最近気になるテクノロジーは?
・最近行った勉強会は?
・最近登壇した勉強会は?
・iPhone落とした事ある?
@shizone
shizone / irof.user.js
Created December 9, 2012 14:06
We are irof
// ==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,
@shizone
shizone / HentaiRank.scala
Created December 6, 2012 16:31
今まで変態AdventCalendarに記事をPostした数を集計して変態ランキングを作る
#!/usr/bin/env xsbtscript
!#
/***
scalaVersion := "2.9.2"
*/
import scala.xml.XML
import scala.io.Source
@shizone
shizone / hentai.scala
Created July 17, 2012 14:24
変態アドベントカレンダー in Summerに参加した物好きどもをTwitterのListに晒しあげるスクリプト
#!/usr/bin/env xsbtscript
!#
/***
scalaVersion := "2.9.2"
libraryDependencies ++= Seq(
"org.twitter4j" % "twitter4j-core" % "[2.2,)"
)
*/
@shizone
shizone / gist:3103324
Created July 13, 2012 07:19
java.util.Date#getTime同士の比較でズレが出る回数の検証
scala> import java.util.Date
def f(n: Int): Int =
if (new Date().getTime != new Date().getTime) n else f(n + 1)
f(0)
import java.util.Date
f: (n: Int)Int
res0: Int = 15090
scala> f(0)
res1: Int = 52401
@shizone
shizone / test.js
Created January 26, 2012 14:09
ocamljsが吐いたソースが怖い
// compiled by ocamlc 3.12.0, ocamljs 0.3
var ocamljs$caml_named_value = (function (){
var Match_failure$16g = "Match_failure";
var Out_of_memory$17g = "Out_of_memory";
var Stack_overflow$24g = "Stack_overflow";
var Invalid_argument$18g = "Invalid_argument";
var Failure$19g = "Failure";
var Not_found$20g = "Not_found";
var Sys_error$21g = "Sys_error";
var End_of_file$22g = "End_of_file";
@shizone
shizone / Scalaちゃん.svg
Created December 8, 2011 15:10
Scala Advent Calendar jp 2011向けに作ったScalaちゃんのSVG(DLして好きに弄り倒してください)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.