Skip to content

Instantly share code, notes, and snippets.

View itochan's full-sized avatar
🏯

Kazunori Jo itochan

🏯
View GitHub Profile
# run on OS X
for uri in {276699271267500032,127058766691713024,49090663752531968,40888946921574401}; do sleep 0.5; open http://twitter.com/i315/status/$uri; done
# -*- coding: utf-8 -*-
require "twitter"
require "json"
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
OAUTH_TOKEN = ""
OAUTH_TOKEN_SECRET = ""
git_noglob () {
case $1 in
(reset|diff)
noglob git "$@"
;;
(*)
git "$@"
;;
esac
}
一度くらい!!!!!!! で、とにかく幸せを手にしたくて、ルビーストがジャバッでVimmerで断Vim中でごVim愛くださいで個人の見解で `alias 一読='echo 一度くらい'` で叙々苑、それは概念で僕なんかと付き合ってくれそうなJK紹介してくだされ〜〜です。
#!/bin/sh
# repoconfig.sh
# (C) itochan 2012
# MIT License
NAME=foo
[email protected]
SCRIPTDIR=`pwd`
@itochan
itochan / Makefile
Created June 4, 2012 16:34
make love
# make love
# MIT License
# (C) itochan 2012
love:
@echo \
" _____ __ .__ \n" \
" / \ _____ | | __ ____ | | _______ __ ____ \n" \
" / \ / \\__ \ | |/ // __ \ | | / _ \ \/ // __ \ \n" \
"/ Y \/ __ \| <\ ___/ | |_( <_> ) /\ ___/ \n" \
open(URL[:player]) do |source|
player = Tempfile::new("player.swf") do |f|
f.binmode
f.puts source.read
f.path
end
end
# -*- coding: utf-8 -*-
require "net/http"
require "rexml/document"
require "growl"
XML_PATH = "http://www.j-wave.co.jp/top/xml/now_on_air_song.xml"
TITLE = "ソラガール"
ARTIST = "PACO"
diff --git lib/photo_draw.rb lib/photo_draw.rb
index ed2c9a9..91cb44e 100644
--- lib/photo_draw.rb
+++ lib/photo_draw.rb
@@ -56,7 +56,12 @@ class PhotoDraw
draw.draw(img)
- img.resize_to_fit!(600, 1200) if mode == "show"
+ case mode
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe Cacherite do
before do
@cr = Cacherite.new(File.join(File.dirname(__FILE__), "tmp"))
end
it "set lifetime" do
@cr.lifetime = 216000
end