This widget creates a growl-like notification on a website using CanJS framework.
JavaScript
steal('can/construct',
'can/construct/super',
'can/construct/proxy',
'can/control',
DELETE | |
DELETE _template/{name} | |
DELETE {index} | |
DELETE {index}/_alias/{name} | |
DELETE {index}/_query | |
DELETE {index}/_warmer | |
DELETE {index}/_warmer/{name} | |
DELETE {index}/{type} | |
DELETE {index}/{type}/_mapping | |
DELETE {index}/{type}/_query |
There are many different provisioning tools out there, the most popular of which are Chef and Puppet. Chef uses Ruby, Puppet uses a DSL (Domain Specific Language), there are others that use simple bash too, but today we're going to focus on Chef Solo.
To get Chef working properly on your local machine you need a few things.
Make sure you use Ruby 1.9.x and not Ruby 2.x as you will get errors with the json 1.6.1 gem on 2.x. Use rbenv or RVM to manage several different Rubies on the one machine.
A simple dictation robot.
echo 'Přečti mi něco, prosím!' | ruby dictator.rb
cat data.txt | ruby dictator.rb
cat data.txt | SPEED=1.5 ruby dictator.rb
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.