create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/usr/bin/env ruby -w | |
# pnginator.rb: pack a .js file into a PNG image with an HTML payload; | |
# when saved with an .html extension and opened in a browser, the HTML extracts and executes | |
# the javascript. | |
# Usage: ruby pnginator.rb input.js output.png.html | |
# By Gasman <http://matt.west.co.tt/> | |
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos |
/* Simple JS template rendering function */ | |
function render(obj, template) { | |
var re, v; | |
re = new RegExp("\\[\\[([^\\]]+)\\]\\]"); | |
while (match = re.exec(template)) { | |
val = obj[match[1]] || ''; | |
template = template.replace(match[0], val); | |
} | |
return template; | |
} |
function fmtWholeNum (num) { | |
var n = parseFloat(num.toString().replace(/[^\d\.]+/, '')), | |
s = Math.floor(n).toString(); | |
return s.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") | |
} |
function Color(r, g, b) { | |
if (Array.isArray(r)) { | |
colors = r; | |
} else if (!g && !b) { | |
colors = this.asRGB(r); | |
} else { | |
colors = [r, g, b]; | |
} | |
this.r = colors[0]; | |
this.g = colors[1]; |
// language exceptions | |
var exceptions = { | |
"are": "were", | |
"eat": "ate", | |
"go": "went", | |
"have": "had", | |
"inherit": "inherited", | |
"is": "was", | |
"run": "ran", | |
"sit": "sat", |
// add to Preferences > Key Bindings - User | |
// see http://stackoverflow.com/a/26619524 for context | |
{ "keys": ["tab"], "command": "expand_abbreviation_by_tab", | |
"context": [ | |
{ | |
"operand": "source.js", | |
"operator": "equal", | |
"match_all": true, | |
"key": "selector" |