These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Web Workers</title> | |
| </head> | |
| <body> | |
| <script id="worker" type="app/worker"> | |
| addEventListener('message', function() { | |
| postMessage('What up, sucka.'); |
| full_width = 80 | |
| columns = 12 | |
| gutter = 1 | |
| .container | |
| width unit(full_width, '%') | |
| margin auto | |
| overflow hidden | |
| div[class^="grid_"] |
| alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
| import java.util.concurrent.CountDownLatch; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.LinkedBlockingQueue; | |
| import java.util.concurrent.ThreadPoolExecutor; | |
| import java.util.concurrent.TimeUnit; | |
| import java.util.concurrent.atomic.AtomicReference; | |
| public class CallbackB { | |
| /** |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| var bogart = require('bogart'); | |
| var Q = require('promised-io/lib/promise'); | |
| var mongoose = require('mongoose'); | |
| var PostSchema = new mongoose.Schema({ | |
| title: String, | |
| body: String, | |
| comments: [ CommentSchema ] | |
| }); |
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf to /usr/local/etc/nginx/default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plist to /Library/LaunchDaemons/| /*! = $rembase: 14px | |
| -------------------------------------------------------------- | |
| * hmtl { font-size: 87.5%; } | |
| * body { font-size: 14px; font-size: 1rem; line-height: 1; } | |
| * 4px 0.28571429rem | |
| * 8px 0.571428571rem | |
| * 12px 0.857142857rem | |
| * 13px 0.928571429rem | |
| * 14px 1rem | |
| * 16px 1.142857143rem |
| // This is your typical Express app. | |
| // We have already worked with something like this | |
| var express = require('express') | |
| , path = require('path'); | |
| var app = express(); | |
| app.configure( function () { | |
| 'use strict'; | |
| app.set('view engine', 'jade'); |
Press minus + shift + s and return to chop/fold long lines!