Skip to content

Instantly share code, notes, and snippets.

View raypatterson's full-sized avatar
📈

Ray Patterson raypatterson

📈
  • Earth mostly
View GitHub Profile
@raypatterson
raypatterson / how-to-inherit-a-private-member-in-javascript.js
Created March 8, 2016 08:23
Using Douglas Crockford's power constructor pattern.
'use strict';
/**
*
* Q: https://stackoverflow.com/questions/1813113/how-to-inherit-a-private-member-in-javascript
* A: https://stackoverflow.com/a/1814037
*
*/
(function iife(window) {
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'