Skip to content

Instantly share code, notes, and snippets.

View hejrobin's full-sized avatar
👠

Robin Grass hejrobin

👠
View GitHub Profile
[
{
"featureType": "all",
"elementType": "labels",
"stylers": [
{ "visibility": labelVisibility }
]
}, {
"featureType": "road",
"elementType": "geometry.fill",
{
"/": "DefaultController",
"foo": "DefaultController",
"user": {
":uri": "AccountController::getPerson",
(function(y, o, d, a) {
var i = o.createElement(d);
i.scrolling = 'off'; i.frameborder = '0';
i.src = a; o.body.appendChild(i);
})(window, document, 'iframe', '//somedomain.tld');
@hejrobin
hejrobin / Hyrulean-Rupees.markdown
Created May 10, 2014 10:44
A Pen by Robin Grass.
(function(window, jQuery) {
/**
* ensure
*
* Only invokes callback if selector matches at least one node.
*
* @param string selector
* @param function callback
*
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?