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
# run on OS X | |
for uri in {276699271267500032,127058766691713024,49090663752531968,40888946921574401}; do sleep 0.5; open http://twitter.com/i315/status/$uri; 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
# -*- coding: utf-8 -*- | |
require "twitter" | |
require "json" | |
CONSUMER_KEY = "" | |
CONSUMER_SECRET = "" | |
OAUTH_TOKEN = "" | |
OAUTH_TOKEN_SECRET = "" |
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
git_noglob () { | |
case $1 in | |
(reset|diff) | |
noglob git "$@" | |
;; | |
(*) | |
git "$@" | |
;; | |
esac | |
} |
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
一度くらい!!!!!!! で、とにかく幸せを手にしたくて、ルビーストがジャバッでVimmerで断Vim中でごVim愛くださいで個人の見解で `alias 一読='echo 一度くらい'` で叙々苑、それは概念で僕なんかと付き合ってくれそうなJK紹介してくだされ〜〜です。 |
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
#!/bin/sh | |
# repoconfig.sh | |
# (C) itochan 2012 | |
# MIT License | |
NAME=foo | |
[email protected] | |
SCRIPTDIR=`pwd` |
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
# make love | |
# MIT License | |
# (C) itochan 2012 | |
love: | |
@echo \ | |
" _____ __ .__ \n" \ | |
" / \ _____ | | __ ____ | | _______ __ ____ \n" \ | |
" / \ / \\__ \ | |/ // __ \ | | / _ \ \/ // __ \ \n" \ | |
"/ Y \/ __ \| <\ ___/ | |_( <_> ) /\ ___/ \n" \ |
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
open(URL[:player]) do |source| | |
player = Tempfile::new("player.swf") do |f| | |
f.binmode | |
f.puts source.read | |
f.path | |
end | |
end |
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
# -*- 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" |
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
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 |
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
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 |