Skip to content

Instantly share code, notes, and snippets.

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

Kaz jugyo

🏠
Working from home
  • The League
  • New Jersey
View GitHub Profile
module Termtter
class Client
def self.<< val
puts val
end
end
class Command
end
// ==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) {
@jugyo
jugyo / app.rb
Created April 20, 2009 14:43
Sinatra on GAE
require 'rubygems'
require 'sinatra'
get '/' do
'Hello World!!'
end
/*
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;
# -*- 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)
}
)
% sequel sqlite://test.db
# 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
食べ物,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
# A OpenX example using ruby
require 'rubygems'
require 'sinatra'
require 'openx'
configure do
OpenX::Services::Base.configuration = {
'root' => 'http://localhost/openx/www/',
}
end
require 'yaml'
yaml = <<YAML
---
default: &default
a: foo
b: bar
data1:
<<: *default