This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |