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 fb_jk_scroll | |
// @version 0.1 | |
// @description Scrolls wall posts with j/k key | |
// @include http://www.facebook.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js | |
// ==/UserScript== | |
$(document).ready(function(){ |
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 ldr_open_entry_w_v | |
// @include http://reader.livedoor.com/reader/* | |
// @version 0.1 | |
// ==/UserScript== | |
window.addEventListener("load", function() { | |
with(unsafeWindow){ | |
Keybind.remove("v"); | |
Keybind.add('v', function(){ |
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
#!/usr/bin/python | |
#!-*-coding:utf-8-*- | |
import sched,time | |
import gntp.notifier | |
from AppKit import NSWorkspace | |
CHECK_INTERVAL=10 #Seconds | |
ALLOW_NAME=["iTerm","Emacs","Preview"] |
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
[difftool.latex] | |
cmd = ~/bin/git-latexdiff "$LOCAL" "$REMOTE" | |
[difftool] | |
prompt = false | |
[alias] | |
ldiff = difftool -t latex |
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
#!/bin/bash | |
case $2 in | |
contents/*.tex) | |
latexdiff -e utf8 "$1" "$2" > "$2".diff | |
echo Finished writing diff to "$2".diff | |
;; | |
esac |
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
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
public class HitAndBlow{ | |
private List<Integer> hiddenNumber; | |
private int length; | |
private int tryCount; |
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-*- | |
#Usage: python tunes-alarm.py -t "2012-06-04 07:00:00" -p "Playlist" | |
import sched, time | |
import datetime | |
import os | |
from optparse import OptionParser | |
def playTunes(playlist): | |
script = """osascript -e ' |
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-*- | |
#Usage: python tunes-alarm.py -t "2012-06-04 07:00:00" -p "Playlist" | |
import sched, time | |
import datetime | |
import os | |
from optparse import OptionParser | |
def playTunes(playlist): | |
script = """osascript -e ' |
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
#!/bin/bash | |
case $2 in | |
contents/*.tex) | |
latexdiff -e utf8 "$1" "$2" > "$2".diff | |
echo Finished writing diff to "$2".diff | |
;; | |
esac |
OlderNewer