Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| # Some good references are: | |
| # http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
| # http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
| # http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
| #1. Install PostgreSQL postgis and postgres | |
| brew install postgis | |
| initdb /usr/local/var/postgres | |
| pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
| #!/bin/sh | |
| # Just copy and paste the lines below (all at once, it won't work line by line!) | |
| # MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
| function abort { | |
| echo "$1" | |
| exit 1 | |
| } | |
| set -e |
| function average (arr) | |
| { | |
| return _.reduce(arr, function(memo, num) | |
| { | |
| return memo + num; | |
| }, 0) / arr.length; | |
| } |
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery-1.5.2.min.js"></script> | |
| <script src="http://burritopizza.local/socket.io/socket.io.js"></script> | |
| <script src="https://gist.github.com/raw/952547/f298c7e30d0978da0c78df0ff79436e883efbad2/gistfile1.txt"></script> | |
| <script src="http://popcornjs.org/code/players/youtube/popcorn.youtube.js"></script> | |
| <style type='text/css'> | |
| body { | |
| } |
| var encapsulate = (function() | |
| { | |
| var rGetFirstChar = /^([a-z])/; | |
| function isNumber (value) | |
| { | |
| return !isNaN(parseFloat(value)) && typeof value !== 'string'; | |
| } |
| /* modernizr-test.js | |
| * Daniel Ott | |
| * 3 March 2011 | |
| * Custom Tests using Modernizr's addTest API | |
| */ | |
| /* iOS | |
| * There may be times when we need a quick way to reference whether iOS is in play or not. | |
| * While a primative means, will be helpful for that. | |
| */ |
This is now an actual repo: