Skip to content

Instantly share code, notes, and snippets.

View tdtds's full-sized avatar
🐱
🐱

Tada, Tadashi tdtds

🐱
🐱
View GitHub Profile
#!/home/sho/bin/ruby19
class Template
def initialize( &block )
@child = []
instance_eval( &block )
end
def result
@child.join( "\n" )
@tdtds
tdtds / tsite.rb
Created February 7, 2010 05:37
getting current T-Point by scraping tsite.jp.
#! /usr/bin/env ruby
#
# tsite.rb: getting current T-Point by scraping tsite.jp.
#
# Copyright (C) 2011 by TADA Tadashi <[email protected]>
# Distributed under GPL.
#
require 'rubygems'
require 'mechanize'
@tdtds
tdtds / mixi2gmail.diff
Created March 22, 2009 13:03
yoosee作mixi2gmailのバグfix差分
--- mixi2gmail.rb.20080404 2008-04-08 11:17:42.000000000 +0900
+++ mixi2gmail.rb 2009-03-22 14:11:33.000000000 +0900
@@ -34,7 +34,14 @@
rescue LoadError
end
require 'nkf'
+
require 'mechanize'
+require 'hpricot'
+begin