Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am deradam on github.
  • I am deradam (https://keybase.io/deradam) on keybase.
  • I have a public key whose fingerprint is 10E0 84FD 9405 64B5 F803 9348 E930 CA1C CED1 9AF4

To claim this, I am signing this object:

@deradam
deradam / brainstorm.js
Created February 17, 2012 10:03
Brainstorm API
/**
* Brainstorm API Examples
*
* User: giemza
* Date: 17.02.12
* Time: 10:46
*/
var User = function User(username, screenname, id) {
this.username = username || '';
@deradam
deradam / object.js
Created January 6, 2012 13:59 — forked from dernils/object.js
JavaScript Object Inheritance
/**
* Just a test for JavaScript object inheritance
*
* User: giemza
* Date: 06.01.12
* Time: 10:38
*/
// Human constructor, type is 'Function'
var Human = function(firstname, lastname) {
@deradam
deradam / object.js
Created January 6, 2012 10:54
JavaScript Object Inheritance
/**
* Just a test for JavaScript object inheritance
*/
// Human constructor, type is 'Function'
var Human = function(firstname, lastname) {
// public fields, accessible from outside
this.firstname = firstname;
this.lastname = lastname;
// private field, only accessible from inside, e.g., getFullname function