View guid.js
function createUuid() {
var rFours;
rFours = function rFours() {
return Math.floor(0x10000 * (1 + Math.random())).toString(16).substring(1);
};
return rFours() + rFours() + '-' + rFours() + '-' + "4" + rFours().substr(0, 3) + '-' + rFours() + '-' + rFours() + rFours() + rFours();
}
View 404
444444444 000000000 444444444
4::::::::4 00:::::::::00 4::::::::4
4:::::::::4 00:::::::::::::00 4:::::::::4
4::::44::::4 0:::::::000:::::::0 4::::44::::4
4::::4 4::::4 0::::::0 0::::::0 4::::4 4::::4
4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
4::::444444::::444 0:::::0 000 0:::::0 4::::444444::::444
4::::::::::::::::4 0:::::0 000 0:::::0 4::::::::::::::::4
4444444444:::::444 0:::::0 0:::::0 4444444444:::::444
View typeOf.js
function typeOf(what, compare) {
what = Object.prototype.toString.call(what || null).replace(/\[object\s|\]/g, "").toLowerCase();
if (!!compare) {
return (what === compare.toLowerCase());
}
return what;
}
View what.md

I've got a Story about an Improvement of Tech Debt limiting Bug Interruptions while completing an Epic Task...

A Client Issue started an Investigation into an Outage of QA Debt creating a New Feature forcing the Working Group to code well into the night.

View jasmine-matcher.md
  • toBe - compares with ===
  • toEqual - works for simple literals and variables & object
  • toMatch - for regular expression
  • toBeDefined - compares against undefined
  • toBeUndefined - compares against undefined
  • toBeNull - compares against null
  • toBeTruthy - for boolean casting testing
  • toBeFalsy - for boolean casting testing
  • toContain - for finding an item in an Array
  • toBeLessThan - for mathematical comparisons
View 1-restify-server-cheatsheet.js
// Restify Server CheatSheet.
// More about the API: http://mcavage.me/node-restify/#server-api
// Install restify with npm install restify
// 1.1. Creating a Server.
// http://mcavage.me/node-restify/#Creating-a-Server
var restify = require('restify');
View broncos.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19177328050136566</real>
<key>Green Component</key>
<real>0.15017002820968628</real>
View queryString2Obj.js
function queryString2Obj(str) {
var ampArr = str.replace(/(^\?)/, '').split('&');
function decode(estr) {
return decodeURIComponent(estr).replace(/\+/g, ' ');
}
function mapHandler(cv) {
cv = cv.split('=');
this[cv[0]] = decode(cv[1]);
View ratelimit.nginxconf
upstream myapp {
server 127.0.0.1:8081;
}
limit_req_zone $binary_remote_addr zone=login:10m rate=1r/s;
server {
listen 443 ssl spdy;
server_name _;