This file contains 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 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 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 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 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 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 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 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 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 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 |