(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.
| #!/bin/bash | |
| rm .nginx.conf | |
| while [[ $# > 1 ]] | |
| do | |
| key="$1" | |
| case $key in | |
| -p|--port) | |
| PORT="$2" |
(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.
| source 'https://rubygems.org' | |
| gem 'rails' | |
| gem 'haml-rails' | |
| gem 'coffee-rails' | |
| gem 'sass-rails' | |
| # Build process dependencies | |
| gem 'uglifier' # javascript compression | |
| gem 'yui-compressor' # css compression |
| class Page | |
| require 'uri' | |
| require 'json' | |
| require 'net/http' | |
| require 'net/https' | |
| def initialize(name, markup, css) | |
| @name = name | |
| @markup = markup | |
| @css = css |
| class window.Bindable | |
| constructor: (context=$('body'), @dataKey='bindable')-> | |
| @bindables = $("[data-#{@dataKey}]", context) | |
| @instanceKey = "#{@dataKey}-instance" | |
| bindAll: -> | |
| @bind(el) for el in @bindables |
| index.html: docs/index.md | |
| markdown < $< \ | |
| | cat head.html - tail.html \ | |
| > $@ |
| @mixin ie6 { * html & { @content } } | |
| #logo { | |
| background-image: url("/images/logo.png"); | |
| @include ie6 { background-image: url("/images/logo.gif"); } | |
| } |
| package com.boyajian.ui | |
| { | |
| import com.greensock.TweenLite; | |
| import flash.display.DisplayObject; | |
| import flash.display.DisplayObjectContainer; | |
| import flash.display.Sprite; | |
| import flash.display.Stage; | |
| import flash.events.Event; |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |