Skip to content

Instantly share code, notes, and snippets.

@wesleybliss
wesleybliss / js_classical_inheritance_02__person_nihonjin
Created February 5, 2015 05:37
JavaScript Classical Inheritance #2
var Person = function() {
this.helloMessage = 'Hello';
};
Person.prototype.sayHello = function() {
console.log( this.helloMessage );
};
var Nihonjin = function() {
@wesleybliss
wesleybliss / js_classical_inheritance_01__person_olympian
Created August 28, 2014 16:27
JavaScript Classical Inheritance #1
var Person = function( name ) {
this.name = name;
};
Person.prototype.hello = function() {
console.log( this.name + ' says hello!' );
};
Person.prototype.walk = function( distance ) {
@rxin
rxin / ramdisk.sh
Last active December 13, 2023 02:40
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then