Skip to content

Instantly share code, notes, and snippets.

View erikhazzard's full-sized avatar

Erik Hazzard erikhazzard

View GitHub Profile
function Chart(name){
console.log('Yo new chart created');
this.name = name;
this.nonPrototypeFunc = function(){
console.log('what up chart : ' + this.name + ' || this: ', this);
};
return this;
}
@erikhazzard
erikhazzard / _.md
Last active August 29, 2015 14:08
dns-sup
@erikhazzard
erikhazzard / _.md
Last active August 29, 2015 14:15
pre-attentive grid by @enoex
@erikhazzard
erikhazzard / output examples
Last active August 29, 2015 14:18
Replace all links in a string with <a> tags
Examples:
"Hello there google.com" becomes "Hello there <a href='http://google.com' target='_blank'>google.com</a>"
"Hello there http://google.com" becomes "Hello there <a href='http://google.com' target='_blank'>http://google.com</a>"
"Hello there http://google.com?q=test" becomes "Hello there <a href='http://google.com?q=test' target='_blank'>http://google.com?q=test</a>"
1) Generate CSR
`openssl req -new -newkey rsa:2048 -nodes -keyout files.mysite.key -out files.mysite.csr`
.csr is the -----BEGIN CERTIFICATE REQUEST----- file
.key is the private key ( namePrivatekey.key )
* CRT file is the following files cat'ed together in order: *
var _ = require('lodash');
var a = {};
_.set(a, 'a.b.c', 5);
console.log(a);
// output = { a: { b: { c: 5 } } }
@erikhazzard
erikhazzard / README.md
Last active September 9, 2015 02:21
data yoga 1

hello markdown

@erikhazzard
erikhazzard / README.md
Last active September 9, 2015 02:23
breathe

hello markdown

@erikhazzard
erikhazzard / README.md
Created September 9, 2015 02:26
breathe

hello markdown

@erikhazzard
erikhazzard / README.md
Created September 9, 2015 02:33
fresh block

hello markdown