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 Motsu Tabetai | |
// @namespace http://ikenie.com/ | |
// @include * | |
// @require http://gist.github.com/raw/3242/1a7950e033a207efcfc233ae8d9939b676bdbf46 | |
// @require http://gist.github.com/raw/34615/04333b7e307eb029462680e4f4cf961f72f4324c | |
// ==/UserScript== | |
(function() { | |
var DATABASE_URL = 'http://wedata.net/databases/Motsu/items.json'; |
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
perl -MXML::Feed -e 'print((XML::Feed->parse(URI->new("http://www.isitchristmas.com/rss.xml"))->items)[0]->content->body eq "HAI" && "Merry Xmas!")' |
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
tell application "iTunes" | |
set iname to name of current track | |
set iartist to artist of current track | |
if iartist is not equal to "" then | |
set iartist to iartist & " - " | |
end if | |
tell application "Keychain Scripting" | |
set twitter_key to first Internet key of current keychain whose server is "twitter.com" |
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 delicious rainbow | |
// @namespace http://d.hatena.ne.jp/youpy/ | |
// @include http://delicious.com/* | |
// @require http://gist.github.com/raw/3242/1a7950e033a207efcfc233ae8d9939b676bdbf46 | |
// ==/UserScript== | |
function rainbow(doc) { | |
$X('//div[starts-with(@class, "savers")]', doc).forEach(function(e) { | |
var url = e.childNodes[1].href; |
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
String.prototype.fix = function() { | |
var newString = []; | |
var x, y, z, c; | |
for(var i = 0; i < this.length; i ++) { | |
c = this.charCodeAt(i); | |
if((c & 0xe0) == 0xe0) { | |
if((x = c ^ 0xe0) > 0xf) { | |
newString.push(String.fromCharCode(c)); |
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 | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'json' | |
require 'pp' | |
require 'digest/md5' | |
require 'net/https' | |
require 'pit' | |
require 'cgi' |
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
# ;; .emacs | |
# | |
# ;; load-path | |
# (setq load-path | |
# (append | |
# (list | |
# (expand-file-name "~/.elisp") | |
# (expand-file-name "~/.elisp/sclang") | |
# load-path))) | |
# |
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 | |
# remove key frame information from AVI (codec: Cinepak) | |
# example result http://www.vimeo.com/3334387 | |
# a name of AVI file | |
filename = ARGV.shift | |
f = open(filename) | |
data = f.read | |
f.close |
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 | |
# remove key frame information from AVI file(codec: xvid) | |
# a name of AVI file | |
filename = ARGV.shift | |
f = open(filename) | |
data = f.read | |
f.close | |