See also:
The bash has three default file descriptors for each process:
var Dog = (function () { | |
var init, create; | |
/** | |
* Encapsulated Constructor, | |
*/ | |
init = function (name, age) { | |
this.name = name; | |
this.age = age; | |
}; |
/** | |
* Juan's leaving card: http://is.gd/juan_leaving | |
*/ | |
(function() { | |
'use strict'; | |
var message = [ | |
' gg ', | |
' dP8, ', | |
' dP Yb ', |
const scope = {}; | |
function def(id, fn) { | |
scope[id] = fn; | |
} | |
function explode(id) { | |
return scope[id] ? [id] : id.split('\u200d'); | |
} | |
function getFns(id) { | |
return explode(id).map(function(ii) { | |
if (!scope[ii]) |
#!/bin/bash | |
# | |
# This script will make a webcam snapshot every commit. The jpg file will have | |
# the commit id as the filename. | |
# | |
# This script requires imagesnap. Install with: 'brew install imagesnap' | |
# | |
# Put this file in the '.git/hooks/' name it 'post-commit' and chmod it by: | |
# 'chmod +x .git/hooks/post-commit' | |
# |
/** | |
* Converts an image to a dataURL | |
* @param {String} src The src of the image | |
* @param {Function} callback | |
* @param {String} outputFormat [outputFormat='image/png'] | |
* @url https://gist.github.com/HaNdTriX/7704632/ | |
* @docs https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement#Methods | |
* @author HaNdTriX | |
* @example | |
* |
See also:
The bash has three default file descriptors for each process:
| HEADER | EMPHASIS | HORIZONTAL_LINE | LIST | TABLE
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |