(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
A summary of the Rails Guides on Routes, plus other tips.
The Rails router recognizes URLs and dispatches them to a controller's action. It can also generate paths and URLs, avoiding the need to hardcode strings in your views.
Examples
# Redirects /orders/report to orders#report.
get 'orders/report', to: 'orders#report'
<?php | |
/** | |
* | |
* Helper Class to output correct Twitter Bootstrap Markup. | |
* Only option for now is the horizontal Form. | |
* | |
* Usage : | |
* | |
$form = new BootstrapForm('add_user'); | |
$form->addInput('text-input', 'user_name', 'Your name:', true); |
#!/bin/bash | |
# | |
# video conversion script for publishing as HTML 5 video, via videojs (with hd button extension) | |
# 2011 by zpea | |
# feel free to use as public domain / Creative Commons CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
# | |
FFMPEG=/usr/bin/ffmpeg | |
HD_SUFFIX='_hd' |
var express = require('express'), | |
app = express.createServer(), | |
Post = require('./models/post'); | |
app.configure(function () { | |
app.use(express.methodOverride()); | |
app.use(express.bodyDecoder()); | |
app.use(express.staticProvider(__dirname + '/public')); | |
app.use(express.compiler({src: __dirname + '/public', enable: ['sass']})); | |
app.use(express.logger()); |