Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| 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 | 
| # this can be put in [repo]/.git/config for local settings | |
| # or ~/.gitconfig for global settings | |
| # create a difftool "nodiff" that just returns true | |
| # this path is for Mac. On linux it's /bin/true i guess | |
| [diff "nodiff"] | |
| command = /usr/bin/true | |
| # make git ignore white space differences, many different possibilites here | 
| <meta property="og:site_name" content="{Title}" /> | |
| <meta property="fb:app_id" content="FB_APP_ID" /> | |
| <meta property="fb:admins" content="FB_ADMIN_ID" /> | |
| <meta property="og:description" content="{MetaDescription}" /> | |
| <meta property="og:locale" content="en_US" /> | |
| {block:IndexPage} | |
| <meta property="og:image" content="{PortraitURL-128}" /> | |
| <meta property="og:title" content="SITE_NAME" /> | |
| <meta property="og:type" content="blog" /> | 
| default_run_options[:pty] = true # Must be set for the password prompt from git to work | |
| # WebFaction user account | |
| # This is the server user account | |
| set :server_user, "<server_username>" | |
| # Server Domain | |
| set :domain, "<domain_name>" | |
| set :user, server_user | |
| # Repository User | 
| @mixin respond-to($media, $retina: true) { | |
| // Settings | |
| $small : 320px; | |
| $medium : 700px; | |
| $large : 1300px; | |
| @if $media == 'small' { | |
| @if $retina == true { | |
| @media | 
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| var myCanvasView = new View({ | |
| x:100, y:100, | |
| width:200, height:200 | |
| }) | |
| // Add a nice background color so we see it | |
| myCanvasView.style.backgroundColor = "rgba(255,0,0,.5)" | |
| // This is the tricky bit, we create a canvas element (so we have a reference to it) and insert it into the view | 
| // config -> settings.html | |
| // Make sure you have the same number of quantity breaks as product variants | |
| <fieldset> | |
| <legend>Quantity Breaks</legend> | |
| <table class="standard-table"> | |
| <tr><td>Enter quantity breaks in ascending order separated by a comma (e.g. 5, 10, 20, 50)</td><td><input type="text" name="breaks" size="50" /></td></tr> | |
| </table> | |
| </fieldset> | |
| class root.utils.ViewportHeight | |
| 'The VH unit is not well supported. Use data-tags instead. | |
| data-viewport-unit="line-height: 100vh; height: 100vh;' | |
| constructor: ({@element, @styles}={}) -> | |
| @$element = $ @element | |
| @$window = $ window | |
| @_bindHandlers() | |
| _getStyles: -> | 
(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.