Skip to content

Instantly share code, notes, and snippets.

Colin Wood Anaphase

Block or report user

Report or block Anaphase

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View coffeescript-class-cheatsheet.coffee
class ClassName
# shared via closure over constructor
# class and instance functions have access to this variable
privateVariable = 'privateVariable'
# shared via closure over constructor
# not exposed in instance
# doesn't have access to instance
# @ is the window object
View reddit-stream-js-example.js
var RedditStream, auth, comment_stream;
RedditStream = require('reddit-stream');
comment_stream = new RedditStream('comments', 'all', 'unique user agent for my-supercool-bot');
auth = {
username: 'my-supercool-bot',
password: 'password',
app: {
You can’t perform that action at this time.