Skip to content

Instantly share code, notes, and snippets.

View Sixeight's full-sized avatar
🏠
Working from home

Tomohiro Nishimura Sixeight

🏠
Working from home
View GitHub Profile
@Sixeight
Sixeight / olm.rb
Created October 22, 2011 02:00 — forked from hitode909/olm.rb
One liner music player for Ruby. http://hitode909.appspot.com/one-liner-music/
require 'rubygems'
require 'ffi-portaudio'
def safe
r = nil
Thread.new {
$SAFE = 4
r = yield
}.join
r
// ==UserScript==
// @name coconutsfine
// @namespace http://d.hatena.ne.jp/coconutsfine/
// @description visit my page!!!
// @include *
// ==/UserScript==
(function () {
var mypage = 'http://d.hatena.ne.jp/coconutsfine/'
@Sixeight
Sixeight / gist:29957
Created November 28, 2008 10:01 — forked from ukstudio/gist:29937
# クラスオブジェクトを取得
module Foo
class Bar
def class_object
self.class.to_s.split(/::/).inject(Object) do |c, name|
c.const_get(name)
end
end
end
end
puts "hello, goodbye!"