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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<script> | |
var workers = []; | |
for(var i=0; i<4; i++){ | |
var worker = new Worker("calc.js"); |
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 -rubygems -e 'p Gem::Specification.count' | |
560 | |
$ bundle exec ruby -rubygems -e 'p Gem::Specification.count' | |
78 | |
$ bundle exec ruby -rubygems -e 'Bundler.with_clean_env { p Gem::Specification.count }' | |
78 | |
$ bundle exec ruby -rubygems -e 'Bundler.with_clean_env { system("ruby -rubygems -e \"p Gem::Specification.count \"")}' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 hide-geolocation-at-google-search | |
// @namespace http://twitter.com/uu59 | |
// @version 1.0.0 | |
// @include http://*.google.*/search* | |
// ==/UserScript== | |
(function(w){ | |
var trap = w.document.getElementById('lc'); | |
trap.parentNode.removeChild(trap); |
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 (phantom.state.length === 0) { | |
if (phantom.args.length !== 1) { | |
console.log('Usage: aa.js imagename'); | |
phantom.exit(); | |
} else { | |
var address = 'http://amachang.sakura.ne.jp/misc/aamaker/'; | |
phantom.state = 'aamaker'; | |
phantom.viewportSize = { width: 600, height: 100 }; | |
phantom.open(address); | |
} |
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 (phantom.state.length === 0) { | |
var address = 'http://amachang.sakura.ne.jp/misc/aamaker/'; | |
phantom.state = 'aamaker'; | |
phantom.viewportSize = { width: 600, height: 100 }; | |
phantom.open(address); | |
} else { | |
try { | |
setInterval(function(){ | |
var m = document.getElementById('target').innerHTML; | |
console.log(m); |
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 (!phantom.state) { | |
// request process | |
phantom.state = 'betuyaku'; | |
var url = "http://portal.nifty.com/2011/01/index.htm"; | |
phantom.open(url); | |
} else { | |
// response process | |
(function(){ | |
var jquerySrc = "https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"; | |
var s = document.createElement('script'); |
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 | |
=begin | |
$ ruby checkurl.rb "http://www.yahoo.co.jp/" | |
301 http://www.yahoo.co.jp/s/88883 | |
301 http://www.yahoo.co.jp/r/c1 | |
301 http://www.yahoo.co.jp/r/c5 | |
301 http://www.yahoo.co.jp/r/c12 | |
301 http://www.yahoo.co.jp/s/88793 | |
301 http://www.yahoo.co.jp/r/c2 |
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 Tumblr Auto Image Expansion | |
// @namespace http://twitter.com/uu59 | |
// @include http://www.tumblr.com/* | |
// ==/UserScript== | |
(function(){ | |
function auto_image_expansion(target) { | |
var doc = target || document; | |
var img = doc.querySelectorAll('div.post_content p img.inline_external_image'); |
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
while :;do curl -I http://www.kantei.go.jp/jp/kikikanri/jisin/20110311miyagi/ 2>/dev/null|ruby -rtime -e"p Time.parse STDIN.read.match( /L.*?:(.*)/)[1]";sleep 9;done |
OlderNewer