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 / 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
Send, ^!{1}
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 / 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: '',
uri: '',
} );
ferdbold /
Last active Aug 29, 2015
Median value of two same-length sorted lists
# Returns the two median values of two same-length sorted lists
# Algorithm complexity: O(lg n), n being the length of the lists
# Usage: [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 / gist:8534327
Created Jan 21, 2014
Simple PHP trace
View gist:8534327
function trace($toTrace) {
echo '<pre>';
echo '</pre>';
You can’t perform that action at this time.