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
#!/bin/bash | |
# update hooks; note that this hook will still execute its current version and not | |
# the updated one | |
#git pull --rebase &>/dev/null | |
branch_name=$( git rev-parse --abbrev-ref HEAD ) | |
is_special_branch=$( echo "${branch_name}" | grep -i "^\(hotfix\|develop\|master\|HEAD\)" ) | |
if [ ! "${is_special_branch}" ] |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA7XwkkW4nDqT1r668SFgTfadtOuIafNhe7dTRllM76rIfsjEc07nQovQLTU9t24whQr3HS0sEzPJ6Sz+F1SbjtfTCuliNNinmcizswDJbXcwr6Pe6kDeb+ulB2tnmQ76janpWDpxYFZdYxqFqggHSc+Un+ubenlENTUOB+sy7PVRn54lfe0Pjlk5HsmCLNNA81VV6O82/77XYTR+7VYMPEmj8J4GYmpYiuNG5bM7aUnXPxJ73fG0eQXtCsZ9fGCah9eaxubfTQ8UvO+t+2aKc0a0+unaFEvEndo/17uGIhVdZhIQzop9ygsi/hGQDp8IDLgxDGPhYuO/N8ozjWrPOYw== mauricesvay@Macbook-Pro-de-Maurice.local |
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
var assets = [ | |
'http://localhost/offline-assets/fancybox/jquery.fancybox-1.3.4.js', | |
'http://localhost/offline-assets/fancybox/jquery.fancybox-1.3.4.css' | |
]; | |
for (var i=0,l=assets.length; i<l; i++) { | |
loadAsset(assets[i]); | |
} | |
function loadAsset(url){ |
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
source "$HOME/.git-completion.bash" && | |
export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 && | |
export PS1='\e[35m\u@\h:\e[36m\W\e[0m\e[33m$(__git_ps1 " (%s)")\e[0m\$' |
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
//How to read RFID tags with a mir:ror and nodejs | |
//Requires https://github.com/hanshuebner/node-hid | |
var HID = require('HID'); | |
var devices = new HID.devices(7592, 4865); | |
var hid; | |
if (!devices.length) { | |
console.log("No mir:ror found"); | |
} else { | |
hid = new HID.HID(devices[0].path); |
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
<div> | |
<pre> | |
....Les whitespace (matérialisés par les points), sont significatifs et apparaissent dans le rendu. | |
....</pre> | |
</div> | |
----------------------------- | |
En display : inline ou inline-block, les whitespace entre les <li> a un impact sur le rendu. | |
Du coup, il est courant de supprimer ces espaces en particulier. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<h1>Hello world</h1> | |
</body> | |
</html> |
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 pp(object, depth, embedded) { | |
typeof(depth) == "number" || (depth = 0) | |
typeof(embedded) == "boolean" || (embedded = false) | |
var newline = false | |
var spacer = function(depth) { var spaces = ""; for (var i=0;i<depth;i++) { spaces += " "}; return spaces } | |
var pretty = "" | |
if ( typeof(object) == "undefined" ) { pretty += "undefined" } | |
else if ( typeof(object) == "boolean" || | |
typeof(object) == "number" ) { pretty += object.toString() } | |
else if ( typeof(object) == "string" ) { pretty += "\"" + object + "\"" } |
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
/** | |
* Plugin for hoxy proxy that dumps responses to disk | |
* https://github.com/greim/hoxy | |
* | |
* Saves to disk (almost) everything that goes to your browser (images, videos, etc.) | |
* Simply add to rules.txt: | |
* response:@dump() | |
*/ | |
var fs = require('fs'); |
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
var exec = require('child_process').exec; | |
var http = require("http"); | |
var fs = require('fs'); | |
var APIKEY = 'c8c4da831d5c'; | |
function showScrape(filename, callback) { | |
var url = "http://api.betaseries.com/shows/scraper.json?key=" + APIKEY + "&file="; | |
url = url + encodeURIComponent(filename); | |
http.get(url, function(res) { |
OlderNewer