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 'rubygems' | |
require 'uri' | |
require 'net/http' | |
require 'nokogiri' | |
class Corpse | |
def initialize(uri=URI.parse('http://theoria.s284.xrea.com/corpse/index.html')) | |
@uri=uri | |
@contents=nil | |
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
// ==UserScript== | |
// @name atnd-user-link | |
// @namespace http://d.hatena.ne.jp/gnarl/ | |
// @include http://atnd.org/events/* | |
// ==/UserScript== | |
(function() { | |
function external_link_of(icon_url,user_name) { | |
if(/wwwhatena/.exec(icon_url)) { | |
return 'http://www.hatena.ne.jp/'+user_name; |
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/ruby | |
# this script based on http://d.hatena.ne.jp/shibason/20090802/1249204953 | |
require 'rubygems' | |
require 'pit' | |
require 'oauth' | |
print 'Pit name: ' | |
pit_name=gets.chomp.strip |
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
import static org.hamcrest.Matchers.*; | |
import static org.junit.Assert.*; | |
import static org.mockito.Mockito.*; | |
import java.lang.reflect.InvocationHandler; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Proxy; | |
import java.util.Map; |
NewerOlder