Skip to content

Instantly share code, notes, and snippets.

Frédéric Bolduc ferdbold

Block or report user

Report or block ferdbold

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ferdbold
ferdbold / win7-snipping-tool-hotkey
Created Jun 7, 2016
Bind your Print Screen key to Snipping Tool in Windows 7
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

@ferdbold
ferdbold / localsettings.js
Created Oct 2, 2015
Parsoid local settings
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',
} );
@ferdbold
ferdbold / mediane.py
Last active Aug 29, 2015
Median value of two same-length sorted lists
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)
@ferdbold
ferdbold / gist:8534327
Created Jan 21, 2014
Simple PHP trace
View gist:8534327
function trace($toTrace) {
echo '<pre>';
var_dump($toTrace);
echo '</pre>';
}
You can’t perform that action at this time.