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== [email protected] |
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
/* Controlling cheap USB LED notifiers with node-hid */ | |
var Notifier = function(hid) { | |
this.hid = hid; | |
this.colors = ['OFF', 'BLUE', 'RED', 'GREEN', 'CYAN', 'PURPLE', 'YELLOW', 'WHITE']; | |
}; | |
Notifier.prototype.write = function(arBytes) { | |
this.hid.write(arBytes); | |
}; | |
Notifier.prototype.color = function(value) { |
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
function iwlistParse(str) { | |
var out = str.replace(/^\s+/mg, ''); | |
out = out.split('\n'); | |
var cells = []; | |
var line; | |
var info = {}; | |
var fields = { | |
'mac' : /^Cell \d+ - Address: (.*)/, | |
'ssid' : /^ESSID:"(.*)"/, | |
'protocol' : /^Protocol:(.*)/, |
OlderNewer