Skip to content

Instantly share code, notes, and snippets.

View Fridus's full-sized avatar
🤔
It's delicate ...

Florent Fridus

🤔
It's delicate ...
View GitHub Profile
@Fridus
Fridus / Default (OSX).sublime-keymap
Created December 4, 2013 09:46
Sublime Text Config
[
{ "keys": ["super+alt+f"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["super+r"], "command": "show_panel", "args": {"panel": "replace"} },
{ "keys": ["super+alt+n"], "command": "clone_file" },
{ "keys": ["ctrl+t"], "command": "side_bar_new_file2" },
{ "keys": ["f2"], "command": "side_bar_rename" },
{ "keys": ["ctrl+alt+f"], "command": "side_bar_find_files_path_containing" },
{ "keys": ["super+shift+h"], "command": "encode_html_entities" }
]
@Fridus
Fridus / jQuery.getScripts.js
Created November 28, 2014 10:57
jQuery getScript multiple
jQuery.getScripts = function(scripts, callback) {
var progress = 0;
var _getScript = function() {
if (progress == scripts.length) { return callback(); }
$.getScript(scripts[progress], function() {
progress++;
_getScript();
});
};
@Fridus
Fridus / install.sh
Last active August 19, 2016 10:06
Install wkhtmltopdf
#!/usr/bin/env bash
_UVERSION=${1:-precise}
_WVERSION=0.12.2.1
_WVERSION_M=`echo $_WVERSION | awk -F. '{print $1"."$2}'`
FILENAME="wkhtmltox-${_WVERSION}_linux-${_UVERSION}-amd64.deb"
URL="http://download.gna.org/wkhtmltopdf/${_WVERSION_M}/${_WVERSION}/${FILENAME}"
apt-get update