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
#! /usr/bin/env ruby | |
require 'rubygems' | |
require 'pit' | |
require 'fusefs' | |
require 'atomutil' | |
require 'time' | |
module REXML | |
class Text | |
def clone |
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 run scala | |
// @namespace http://orezdnu.org/ | |
// @include http://*.g.hatena.ne.jp/* | |
// ==/UserScript== | |
(function(lang, url) { | |
var list = document.getElementsByTagName('pre'); | |
for (var i=0; i < list.length; i++) { | |
var pre = list[i]; |
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 h2.hatena.ne.jp | |
// @namespace http://orezdnu.org/ | |
// @include http://h2.hatena.ne.jp/* | |
// ==/UserScript== | |
(function() { | |
var stretch = { | |
q: true, | |
}; |
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
def main | |
maze, start, goal = read(ARGF) | |
path = start.dijkstra | |
write(maze, path, goal) | |
end | |
def read(input) | |
start = nil | |
goal = nil | |
prev = [] |
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 mixiAutoOpenFriendProfile | |
// @namespace http://orezdnu.org/ | |
// @include http://mixi.jp/* | |
// ==/UserScript== | |
(function() { | |
var link = document.getElementById('JS_show_more_profile'); | |
if (link) { | |
var evt = document.createEvent('MouseEvents'); |
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 preventLargeFlash | |
// @namespace http://orezdnu.org/ | |
// @include http://* | |
// ==/UserScript== | |
(function(d) { | |
var tags = [ 'object', 'embed' ]; | |
var t = 0.95; // threshold | |
var wait = 300; |
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
//////////////////////////////////////////////// | |
// Lazy evaluation | |
class Obj extends Object { | |
Obj(){ super(); } Obj eval(){ return this; } | |
} | |
//////////////////////////////////////////////// | |
// Error indicator |
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 HatenaDiaryDraftAutoPreview | |
// @namespace http://orezdnu.org/ | |
// @include http://d.hatena.ne.jp/*/draft?* | |
// ==/UserScript== | |
(function(d) { | |
var $ = function(id) { | |
return typeof id == 'string' ? d.getElementById(id) : id; | |
}; |
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 googlerightside | |
// @namespace http://orezdnu.org/ | |
// @include http://www.google.co.jp/search* | |
// @include http://www.google.com/search* | |
// ==/UserScript== | |
(function(d) { | |
var $ = function(id){ return d.getElementById(id); }; | |
var center = $('center_col'); |
OlderNewer