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
module Termtter | |
class Client | |
def self.<< val | |
puts val | |
end | |
end | |
class Command | |
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 termtter_user_checker | |
// @namespace http://jugyo.org/ | |
// @include http://tweetrush.com/byclientdata/gettotdaytopclientusers/1303/* | |
// @description Let's visit http://tweetrush.com/byclientdata/gettotdaytopclientusers/1303/395 | |
// ==/UserScript== | |
(function() { | |
/* source: http://www.hoge256.net/2007/08/64.html */ | |
function computeDate(year, month, day, addDays) { |
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 'sinatra' | |
get '/' do | |
'Hello World!!' | |
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
/* | |
CSS for rails-footnotes plugin. | |
See also http://github.com/drnic/rails-footnotes/tree/master | |
*/ | |
#tm_footnotes_debug { | |
color: white !important; | |
margin: 0 !important; | |
padding: 0 !important; | |
background-color: red; |
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 -*- | |
config.plugins.mark.set_default(:text, '<on_green>' + (' ' * 30) + '#mark' + (' ' * 30) + '</on_green>') | |
Termtter::Client.register_command( | |
:name => :mark, :alias => :m, | |
:exec => lambda {|arg| | |
puts TermColor.parse(config.plugins.mark.text) | |
} | |
) |
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
% sequel sqlite://test.db |
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
# Output SQL to growl | |
# The library 'g' is required. Install as follows: | |
# sudo gem install g | |
require 'g' | |
module ActiveRecord::ConnectionAdapters # :nodoc: | |
class AbstractAdapter | |
protected | |
def log_info_with_feature(sql, name, runtime) | |
if /insert|update/i =~ sql |
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
ι£γΉη©,jugyo,Rust/OGAWA ,fistfvck,tsuyoshikawa,tomitakazutaka,tatsuo,jishiha,cesare | |
γ«γ¬γΌ,5,5,5,1,3,5,5,5 | |
δΈθ―,3,5,3,5,2,3,4,3 | |
ηΌγθ,3,5,2,2,5,4,4,2 | |
γγγ,4,5,2,0,4,5,2,3 | |
γγγγγγ―,2,3,3,4,3,5,3,2 | |
γΉγγ²γγγ£,3,3,2,3,3,3,3,4 | |
η εε,4,1,0,5,2,1,4,1 | |
γ‘γγ³,3,4,5,1,5,0,2,4 |
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
# A OpenX example using ruby | |
require 'rubygems' | |
require 'sinatra' | |
require 'openx' | |
configure do | |
OpenX::Services::Base.configuration = { | |
'root' => 'http://localhost/openx/www/', | |
} | |
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
require 'yaml' | |
yaml = <<YAML | |
--- | |
default: &default | |
a: foo | |
b: bar | |
data1: | |
<<: *default |