jQuery と google-code-prettify が必要
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
javascript:void((function() { | |
var match, lst, i, imax, dict, tid; | |
match = /conc\.setup\(\[(.+?)\]\)/.exec($(document).text()); | |
if (!match) return; | |
lst = match[1].split(','); | |
dict = {}; | |
for (i = 0, imax = lst.length; i < imax; i++) { | |
if (lst[i] in dict) { |
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 python | |
# -*- coding: utf-8 -*- | |
import math, array, random | |
import threading | |
import pyaudio | |
from gevent import pywsgi | |
from geventwebsocket.handler import WebSocketHandler | |
PI2 = math.pi * 2 |
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
ブログ記事 | |
JavaScriptでリアルタイムに音を出すときに簡単便利なやつつくった - つまみ食う | |
http://d.hatena.ne.jp/mohayonao/20111106/1320538394 | |
WebWorkersで別タブ選択中もきっちり動く無敵タイマーをつくる - つまみ食う | |
http://d.hatena.ne.jp/mohayonao/20111108/1320756534 | |
デモページ | |
http://mohayonao.herokuapp.com/pico-player |
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 python | |
# -*- coding: utf-8 -*- | |
import re | |
import mechanize | |
class MixiProfileImage: | |
MIXI_URL = "http://mixi.jp/" |
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 python | |
# -*- coding: utf-8 -*- | |
import os, sys, tempfile, zipfile | |
from CoreGraphics import * | |
def pdf2zip(pdf_path, zip_path=None, size=640, verbose=True): | |
"""PDFをZIPに変換する""" | |
if not pdf_path.endswith(".pdf"): |
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 python | |
# -*- coding: utf-8 -*- | |
import os, sys | |
import datetime | |
import dateutil.parser | |
def growl(message): | |
title = u"髪切った?".encode("utf-8") | |
message = message.encode("utf-8") |
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
otononaruhatenamodule.callback.stdkit([44100,"CAD6/+r9lf27/Qb+Cv5n/an89/uL+1b7U/sp+8v6Rfpl+eP3f/VK8qvvee427svttOvx5/fjFeHx4BPk1Ohy6yHrBOkd5obj8eDU3uXdG97f3t3fxODi4Evg8t9b4F7h0OLw4y7kS+M94nzh8OC64NTgTuFD4vHjVOWY5OXh/d5J3sDg1eII4xfjcuM35BrkY+Oa5Wrq0+vK5/XgNN364MvlQ+YU48ffuOL+6FXs5ev56HPoF+uo7HfqSeT84e/o/vFx9i/ytueY3q3Yidj54ZTzPgI/AdvpGM7IxzzYi/hgFnMksR0zBb3nk8yavaW768OczwfgEPvVG+40bi97CgDkeMswx1DU2uby9Uj4r+3z2tDMf8mE08bn3gEzIi1BwlPxUJw4fxjEAfP6oAX+Fg4kzyOVF94ISAFkCLAZDS5pOb46TDT7KyIpFC3xNdU6ezYSKJ4bXxzuLAtJYGGIaghex0OYKAQW3RHKGAYneDV+QlhLwExwR5M/WT4fSmpbPmU+Yi9R5jy9KwAiByIKKws9nFIGYphkclq3ScU8nTQrMn82tUECUyViXmYpXg9NpDogLzMv6DoDS/VYyl3/WGJN7kApO11AAUz0VJlaTlrJVG9NeEkzS1FRkVfeWSpZblYZVZNUlFIUTsRIOkl2UIJZW2CmYVJe31jCUrtNdUqNS65R2VaSVetRSk+UTtpOEU3wSgZKAEkVR4JFcUQZQ9ZBH0FDQOA+qj2dPIQ7Wjo1OQ44xjaDNXQ0aTMPMn0wIS8tLlstgizQKywrMCr1KMIn5yZ/JiYmjCWAJPgiIyGwH74esx1+HEgbNxpMGWMYbxduFmgVWhRAEy4SMhFdEHwPRg7sDNALFgu0CnkKLwrDCSgJbAjDBxoHbAb9BeEFEwZrBmgG7QVZBfUE0QSvBIYESATyA7gDpgOhA2YDAQOkAmECNgINAtEBgAEDAWMA4P+l/2L/vP7f/Qf9iv |
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 LifeGame = (function() { | |
var LifeGame = (function() { | |
var LifeGame = function() { | |
initialize.apply(this, arguments); | |
}, $this = LifeGame.prototype; | |
LifeGame.recentInstance = null; | |
var initialize = function(options) { |
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 MutekiTimer = (function() { | |
var MutekiTimer = function() { | |
initialize.apply(this, arguments); | |
}, $this = MutekiTimer.prototype; | |
var TIMER_PATH = (function() { | |
var BlobBuilder, URL, builder; | |
BlobBuilder = window.WebKitBlobBuilder || window.MozBlobBuilder; | |
URL = window.URL || window.webkitURL; | |
if (BlobBuilder && URL) { |