JSConf.eu opening song - JavaScript Will Listen - Bella Morningstar
- Plask - Dean McNamee
- Plask
| # Utility method for saying individual characters in a string | |
| sayNumber = lambda { |text| | |
| if text.nil? then | |
| say "Please enter a valid number" | |
| else | |
| text.split("").each do |c| | |
| say c | |
| end | |
| end | |
| } |
| (function(self) { | |
| self.Model = Backbone.Model.extend({ | |
| defaults: { | |
| beverage: 'Orange Soda', | |
| yogurt: false, | |
| fruits: ['Apple', 'Plum', 'Watermelon'] | |
| } | |
| }); |
| [INFO] Error compiling asset application.js: | |
| [INFO] NameError: uninitialized constant JavaLang | |
| [INFO] (in /home/kristian/projects/sandbox/rails3.1/rails3.1-ar-rc4/app/assets/javascripts/users.js.coffee) | |
| [INFO] Served asset /application.js - 500 Internal Server Error |
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| end |
| description "ConnFu demo application" | |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| console none | |
| # the following ensures that the process is restarted when it should die unexpectedly | |
| respawn | |
| exec sudo -u randomuser -H bash -c "cd /home/randomuser/connfu-demo; PORT=14080 /home/randomuser/.rvm/rubies/jruby-1.5.6/bin/ruby -J-Xmx256m -J-Xms128m -J-Xmn64m --server --headless connfu-demo-server" |