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
; 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 |
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
/** | |
* 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', | |
} ); |
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
# 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) |
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 trace($toTrace) { | |
echo '<pre>'; | |
var_dump($toTrace); | |
echo '</pre>'; | |
} |