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
def fetch_bundle(files): | |
''' | |
Aggregate the contents of several files into one string. | |
''' | |
try: | |
return ''.join([fetch(file) for file in files]) | |
except IOError: | |
return fetch_bundle([os.path.join(files, f) for f in os.listdir(files)]) | |
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
// Make your card constructor again here, but make sure to use private | |
// variables! | |
function Card(s, n) { | |
var suit = s; | |
var number = n; | |
this.getSuit = function() { | |
return suit; | |
}; | |
this.getNumber = function() { | |
return number; |
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
page.item('Form', { | |
'ref': 'myform', | |
'title': 'Test Form', | |
'hint': 'This is just an example of a form thingy', | |
'text': 'Some kind of form here. Just add a few simple\ | |
elements and suchlike. Maybe I could make this\ | |
API make more sense, or just be cleaner. Maybe\ | |
make things more functional or OO.', | |
'fields': [ | |
['Dropdown', { |
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 client = ChatClient; | |
var ui = UIManager; | |
ui.on('settings.open', function( e, ui ) { | |
page = e.settings.page('Main'); | |
var orig = {}; | |
orig.theme = replaceAll(client.ui.settings.theme, 'wsct_', ''); | |
orig.clock = client.ui.clock(); | |
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
info: Welcome to Nodejitsu photofroggy | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in server.js | |
warn: Local version appears to be old | |
warn: Your package.json version will be incremented for you automatically | |
warn: About to write /Users/Henry/Code/pond/package.json | |
warn: Using '*' as version for dependencies may eventually cause issues. | |
warn: Please use specific versions for dependencies to avoid future problems. | |
data: |
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 io = require('socket.io').listen(server); |
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
info: Welcome to Nodejitsu photofroggy | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in server.js | |
info: Creating snapshot 0.0.6 | |
info: Updating app pond | |
info: Activating snapshot 0.0.6 for pond | |
info: Starting app pond | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error |
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
function proxy( app ) { | |
var serve = http.createServer(); | |
serve.listen(3900); | |
wsserve = new wss({ | |
httpServer: serve, | |
autoAcceptConnections: false | |
}); | |
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
{ | |
"name": "pond", | |
"subdomain": "pond", | |
"scripts": { | |
"start": "server.js" | |
}, | |
"version": "0.0.5", | |
"engines": { | |
"node": "0.6.x" | |
}, |
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
info: Welcome to Nodejitsu photofroggy | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in server.js | |
info: Creating snapshot 0.0.4 | |
info: Updating app pond | |
info: Activating snapshot 0.0.4 for pond | |
info: Starting app pond | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error |