Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rstuven on github.
  • I am rstuven (https://keybase.io/rstuven) on keybase.
  • I have a public key ASCvswj47nbKDyvCzWQYojvzynbYJTZvyxRkTFPmtX0GDAo

To claim this, I am signing this object:

@rstuven
rstuven / decorate.coffee
Last active July 12, 2017 23:15
Decorators in CoffeeScript
###
`decorate` can apply decorators using the API proposed in
https://github.com/wycats/javascript-decorators
which is supported in Babel 5+ and TypeScript 1.5
Usage:
Foo = decorate F("color"), G, class Foo
@rstuven
rstuven / traits-tutorial.coffee
Last active September 30, 2015 20:08
traits.js tutorial in CoffeeScript
# See http://soft.vub.ac.be/~tvcutsem/traitsjs/tutorial.html
Trait = require('traits').Trait
EnumerableTrait = Trait
# the trait requires these properties
forEach: Trait.required
# the trait provides these properties:
map: (fun) ->
@rstuven
rstuven / plugin_handler.php
Created February 7, 2012 16:27
PluginHandler
<?php
//File: /app/controllers/components/plugin_handler.php
/**
* PluginHandler component adds a basic functionality
* required for the plugin development. Main features
* are plugin configuration autoloading and callbacks
* from the controller.
*
* @author Sky_l3ppard