In Ember, the application's state manager handles routing. Let's take a look at a simple example:
App.stateManager = Ember.StateManager.create({
start: Ember.State.extend({
index: Ember.State.extend({
route "/",
require "rubygems" | |
require "kramdown" | |
require "albino" | |
class Kramdown::Parser::AlbinoKramdown < Kramdown::Parser::Kramdown | |
def replace_code(code, ptrn, f = false) | |
if /\A\|(.+?)(!?)\|(?!\Z)/ =~ code then | |
lang = $1 | |
run = $2 |
class GridModel extends RW.Model | |
defaults: | |
area: | |
selector: '.G_area' | |
dimensions: ['h', 'v'] | |
h: | |
unit: null | |
count: 12 | |
gutter: 20 |
// ==UserScript== | |
// @name Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/> | |
// @link http://git.io/data-markdown | |
// @match * | |
// ==/UserScript== | |
// If you're not using this as a userscript just delete from this line up. It's cool, homey. |
Gemfile.lock |
/** | |
* A `tail -f` implementation in Node.js. | |
* | |
* Bratish Goswami | |
* bratishgoswami AT gmail DOT com | |
* | |
*/ | |
var sys = require("sys"), | |
fs = require('fs'), |
web: node app.js | |
worker: node consumer.js |
var cluster = require('cluster'); | |
var http = require('http'); | |
var numCPUs = require('os').cpus().length; | |
if (cluster.isMaster) { | |
// Fork workers. | |
for (var i = 0; i < numCPUs; i++) { | |
cluster.fork(); | |
} | |
cluster.on('exit', function(worker, code, signal) { |
There have been several HOWTOs posted regarding streaming the 2012 Olympics using HTTP / SOCKS proxies via SSH and other similar methods. None of these actually work using the latest Flash on Mountain Lion (with Firefox, Chrome or Safari). Additionally, the third-party streaming sites don't provide BBC's amazing interface, which lets you quickly skip to individual competitors and events. However, setting up an OpenVPN server does work, with some tweaks. You'll get the exact same UX that people in England receive.
Get a Linode VM in the UK. The 512MB server for $20 works just fine. (If you want to use my referral link, go for it: http://bit.ly/OuzdVe)
Follow the standard OpenVPN installation documentation. (Basically, 'apt-get install openvpn' or 'yum install openvpn' and then follow these docs: http://openvpn.net/index.php/open-source/documentation/howto.html). For an OS X client, I prefer Viscosity: http://www.thesparklabs
{ | |
"name": "tower", | |
"version": "0.4.1", | |
"description": "Full Stack Web Framework for Node.js and the Browser", | |
"homepage": "http://viatropos.github.com/tower", | |
"main": "./index.js", | |
"author": "Lance Pollard <[email protected]>", | |
"keywords": [ | |
"framework", | |
"rails", |