View win7-snipping-tool-hotkey
; Win7 doesn't allow for binding the PrintScrn key to a shortcut. So instead, you can use
; this Autohotkey script to intercept the key and rebind it to another hotkey
; (here Ctrl+Alt+1), that can be set inside the properties of the Snipping tool shortcut.
; Enjoy!
SendMode, Input
PrintScreen::
Send, ^!{1}
return
View gist:f5616cb83b028a1ce301

title: Google OAuth2 及 Analytics Data API 的应用 description: < greatghoul - 西安GDG - 2013/03 > theme: ../themes/remark-dark.css name: inverse layout: true class: inverse


class: center middle

View localsettings.js
/**
* Parsoid web service configuration file.
* This file is managed by Puppet.
*/
exports.setup = function( parsoidConfig ) {
parsoidConfig.setMwApi( {
prefix: 'localhost',
domain: '127.0.0.1',
uri: 'http://127.0.0.1:8080/w/api.php',
} );
View mediane.py
# Returns the two median values of two same-length sorted lists
# Algorithm complexity: O(lg n), n being the length of the lists
# Usage: mediane.py [firstlist] [secondlist]
# Input lists as integers separated by spaces (wrap list in quotemarks to input it as one command line argument)
import math, sys
def mediane(X, Y):
n = len(X)
View gist:8534327
function trace($toTrace) {
echo '<pre>';
var_dump($toTrace);
echo '</pre>';
}