Skip to content

Instantly share code, notes, and snippets.

View hejrobin's full-sized avatar
👠

Robin Grass hejrobin

👠
View GitHub Profile
@hejrobin
hejrobin / Hyrulean-Rupees.markdown
Created May 10, 2014 10:44
A Pen by Robin Grass.
class Vessel
constructor: (@type, @name) ->
# Create a new ship!
ship = new Vessel('Schooner', 'Wasa')
console.debug ship.type #>> Schooner
class Vessel
constructor: (@type, @name) ->
class Schooner extends Vessel
constructor: (@name) ->
super(@name, @constructor.name)
class Person
constructor: (@name) ->
goodGreet: =>
"Hello, my name is #{@name}"
badGreet: ->
"I'm #{@name} and this won't work!"

Keybase proof

I hereby claim:

  • I am lessthanthree on github.
  • I am hejrobin (https://keybase.io/hejrobin) on keybase.
  • I have a public key whose fingerprint is 3815 4A4C D776 5029 45BB BB5F 6464 AECE 1CF6 A145

To claim this, I am signing this object:

@hejrobin
hejrobin / Grammar.coffee
Last active August 29, 2015 14:07
Grammar.coffee
a is not b
# a === !b << baad mkay?
a isnt b
# a !== b << mmh'guud!
unless a is not b
# a === !b << bara dumt, ok?
class Lost
@numbers: ->
console.log '4 8 15 16 23 42'
do Lost.numbers
# Lost.numbers()
CREATE TABLE IF NOT EXISTS geo_counties (
id INT (11) NOT NULL,
slug VARCHAR (64) NOT NULL,
name VARCHAR (64) NOT NULL,
name_long VARCHAR (64) NOT NULL,
PRIMARY KEY(id)
) ENGINE = MyISAM;
CREATE TABLE IF NOT EXISTS geo_counties (
<route path="login">
<controller>Authenticator</controller>
<request type="post" controllerCallback="validateLogin" />
<request type="get" controllerCallback="showLoginForm" />
<request type="ajax" controllerCallback="showJavaScriptModal" />
</route>
<route path="request">
<controller>Request</controller>
<request type="get" callback="get" />
<request type="post" callback="post" />
<request type="put" callback="put" />
<request type="delete" callback="delete" />
<request type="get" callback="getAjax" ajax="true" />