Skip to content

Instantly share code, notes, and snippets.

// ==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';
perl -MXML::Feed -e 'print((XML::Feed->parse(URI->new("http://www.isitchristmas.com/rss.xml"))->items)[0]->content->body eq "HAI" && "Merry Xmas!")'
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"
// ==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;
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));
@youpy
youpy / love.rb
Created February 4, 2009 18:21
love ☆☆☆☆☆ track
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'rubygems'
require 'json'
require 'pp'
require 'digest/md5'
require 'net/https'
require 'pit'
require 'cgi'
// ==UserScript==
// @name zShare redirect
// @namespace http://d.hatena.ne.jp/youpy/
// @include http://www.zshare.net/audio/*
// @include http://www.zshare.net/download/*
// @description best to use with zshare_bypass plus(http://userscripts.org/scripts/show/35182)
// ==/UserScript==
(function() {
if(location.href.match(/^http:\/\/www\.zshare\.net\/audio\/(.+)$/)) {
@youpy
youpy / Makefile
Created February 16, 2009 12:28
Makefile for using SuperCollider on OSX + Emacs
# ;; .emacs
#
# ;; load-path
# (setq load-path
# (append
# (list
# (expand-file-name "~/.elisp")
# (expand-file-name "~/.elisp/sclang")
# load-path)))
#
#!/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
#!/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