Skip to content

Instantly share code, notes, and snippets.

@tarao
tarao / hatena_diary_fs.rb
Created November 2, 2009 18:25 — forked from hotchpotch/hatena_diary_fs.rb
HatenaDiaryFS
#! /usr/bin/env ruby
require 'rubygems'
require 'pit'
require 'fusefs'
require 'atomutil'
require 'time'
module REXML
class Text
def clone
// ==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];
// ==UserScript==
// @name h2.hatena.ne.jp
// @namespace http://orezdnu.org/
// @include http://h2.hatena.ne.jp/*
// ==/UserScript==
(function() {
var stretch = {
q: true,
};
def main
maze, start, goal = read(ARGF)
path = start.dijkstra
write(maze, path, goal)
end
def read(input)
start = nil
goal = nil
prev = []
// ==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');
// ==UserScript==
// @name preventLargeFlash
// @namespace http://orezdnu.org/
// @include http://*
// ==/UserScript==
(function(d) {
var tags = [ 'object', 'embed' ];
var t = 0.95; // threshold
var wait = 300;
@tarao
tarao / primes.java
Created April 15, 2010 16:08
Enumerating prime numbers in Featherweight Java
////////////////////////////////////////////////
// Lazy evaluation
class Obj extends Object {
Obj(){ super(); } Obj eval(){ return this; }
}
////////////////////////////////////////////////
// Error indicator
// ==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;
};
// ==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');
@tarao
tarao / footer.html
Last active September 5, 2015 02:54
My hatena diary style files