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
#!ruby -Ku | |
class << (_ = × = 来週も見てくださいね! = 'ひだまりスケッチ×365 ') | |
def / x=/_/x | |
sub! /(.*)/, ''; print $1 | |
self | |
end | |
def < x=/_/x | |
print open(caller.first.split(':').first).read.split(/\s/)[-2..-1].join(' ') | |
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 Autopagerize for haiku | |
// @namespace http://rails2u.com/ | |
// @include http://h.hatena.ne.jp/* | |
// @include http://h.hatena.com/* | |
// ==/UserScript== | |
var THRESHOLD = 800; | |
var w = unsafeWindow; |
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 gist.user.js | |
// @namespace http://github.com/hotchpotch | |
// @description install greasemonkey (user.js) | |
// @include http://gist.github.com/* | |
// @include https://gist.github.com/* | |
// ==/UserScript== | |
(function() { | |
$X('id("files")//div[@class="info"]/span').forEach(function(e) { |
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
@-moz-document domain("github.com") { | |
.userbox { | |
position: absolute; | |
right: 10px; | |
} | |
} |
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
def foo | |
puts 'hello world' | |
end | |
foo |
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
begin | |
require 'rubygems' | |
require 'readline/history/restore/auto_save' | |
Readline::History::Restore::AutoSave.scriptname | |
#require 'active_support' | |
rescue Exception | |
end | |
module Kernel | |
def r(arg) |
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
if exists("g:perl_test_class_test") | |
finish | |
endif | |
let g:perl_test_class_test = 1 | |
function! s:PerlTestClassMethodRun() | |
let re = '\vsub\s+(\w+)\s*:\s*Test' | |
let line = search(re, 'bn') | |
if line |
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
*** jptemplate.vim.orig 2008-08-20 11:08:51.000000000 +0900 | |
--- jptemplate.vim 2008-08-20 11:37:16.000000000 +0900 | |
*************** | |
*** 23,29 **** | |
" Reserved variable names | |
! let s:reservedVariables = ['date','shell','interactive_shell'] | |
" Variable value history |
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 'pit' | |
require 'fusefs' | |
require 'atomutil' | |
require 'time' | |
module Atompub | |
class HatenaClient < Client | |
def publish_entry(uri) | |
@hatena_publish = true |
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
#!/usr/bin/env ruby | |
$LOAD_PATH << '/opt/local/lib/ruby/gems/1.8/gems/rubyosa-0.4.0/lib' | |
require 'rbosa' | |
require 'pp' | |
require 'nkf' | |
$KCODE = 'u' | |
OSA.utf8_strings = true | |
OlderNewer