Skip to content

Instantly share code, notes, and snippets.

Waiting for autumn

Wang Dàpéng wong2

Waiting for autumn
View GitHub Profile
ravageralpha /
Created Oct 27, 2012
shell script get subtitle from
# Author: RA <>
echo "Usage:$(basename $0) [eng] files..."
[ $# -eq 0 ] && USAGE && exit 0
nikcub /
Created Oct 4, 2012
Facebook PHP Source Code from August 2007
lepture /
Last active Oct 8, 2015





反攻 反攻 反攻大陸去

piscisaureus /
Created Aug 13, 2012
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
mynameisfiber / gist:2853066
Created Jun 1, 2012
Golang http close body blocking problem
View gist:2853066
package main
import (
toji / triangle-collision.js
Created May 27, 2012
Javascript Swept-Sphere/Triangle Collision Detection
View triangle-collision.js
* Copyright (c) 2012 Brandon Jones
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
paulmillr /
Last active Jul 24, 2021
Most active GitHub users (by contributions).

Most active GitHub users (

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at from Tue, 06 Dec 2016 17:06:46 GMT till Wed, 06 Dec 2017 17:06:46 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

  .filter(user => user.followers > 1000)
View whyhaskelliscool.lhs
Haskell is cool!
Here are some reasons why.
(This is a Literate Haskell file, so you can load it and then follow
along with the examples by running `ghci whyhaskelliscool.lhs`)
"Pattern matching" syntax for defining functions is cool, letting you
avoid 'if' statements and simply write out the different behaviors of
a function:
View example.js
// Example 1 = 'Doug';
mediator.subscribe('nameChange', function(arg){
console.log(; = arg;
mediator.publish('nameChange', 'Jorn');