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
function cmd_hello_world() { | |
displayMessage("Hello, World! yo."); | |
} |
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
require 'yaml' | |
require 'twitter' | |
require 'graphviz' | |
config = YAML.load_file('twitter.yml') | |
twit = Twitter::Base.new(config['username'], config['password']) | |
user_name = config['username'] | |
def load_user(twit, user_name) |
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
var cookie_mgr = Components.classes["@mozilla.org/cookiemanager;1"].getService(Components.interfaces.nsICookieManager); | |
CmdUtils.CreateCommand({ | |
name: 'digest', | |
icon: 'http://delicious.com/favicon.ico', | |
description: 'List your recent bookmarks on delicious.com, optionally specify a tag', | |
help: 'digest <tags>', |
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
CmdUtils.CreateCommand({ | |
name: 'pastie', | |
description: 'paste selected text to pastie', | |
help: 'pastie', | |
homepage: 'http://www.reality.hk', | |
author: { |
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 FBQuizMuter | |
// @namespace hk.reality | |
// @description Mute those quiz! | |
// @include http://www.facebook.com/home.php* | |
// @include http://www.facebook.com/profile.php* | |
// ==/UserScript== | |
// Add jQuery | |
var $; |
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
# scRUBYt script that parse tvb scheule and return XML | |
# Sample Output: http://gist.github.com/120827 | |
# | |
require 'rubygems' | |
require 'scrubyt' | |
tvb = Scrubyt::Extractor.define do | |
fetch "http://schedule.tvb.com/j2/20090531.html?category=all" |
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
<root> | |
<schedule> | |
<program> | |
<time>06:00 am</time> | |
<name>360˚音樂無邊</name> | |
</program> | |
<program> | |
<time>07:00 am</time> | |
<name>世界正美麗 III</name> | |
</program> |
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
# Retrieve Latest Links From Popgo, scRUBYt style | |
# Sample Output: http://gist.github.com/120864 | |
require 'rubygems' | |
require 'scrubyt' | |
require 'iconv' | |
popgo = Scrubyt::Extractor.define do | |
fetch 'http://bt.popgo.net/' |
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
<root> | |
<torrents> | |
<file> | |
<details> | |
<name>[漫游字幕组] CROSS_GAME 幸运四叶草 第09话 RMVB</name> | |
<url> | |
<link> | |
<info>http://bt.popgo.net//stats/stats_be45e18e49a4cef899376af3d35936cde8fe1208.html</info> | |
<download>http://bt.popgo.net/down/down.php?hash=be45e18e49a4cef899376af3d35936cde8fe1208</download> | |
</link> |
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
require 'rubygems' | |
require 'scrubyt' | |
require 'iconv' | |
# Fetch the seatplan for the schedule | |
movies = Scrubyt::Extractor.define do | |
# use a proper schedule link here | |
fetch "http://www2.cinema.com.hk/revamp/html/show_seat.php?lang=c&show_id=13105241" | |
# schedule info |
OlderNewer