Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #!/bin/sh | |
| # | |
| # Runs node.js against script, logging to a logfile. We have to do | |
| # this because there's no way to call node directly and have start-stop-daemon | |
| # redirect stdout to a logfile. | |
| # | |
| LOGFILE=/var/log/node/node-application.log | |
| NODE=/usr/local/bin/node | |
| JAVASCRIPT=/var/apps/node-application/app.js |
| // If you don't use underscore.js, use it (http://documentcloud.github.com/underscore/) | |
| // Then, use underscore's mixin method to extend it with all your other utility methods | |
| // like so: | |
| _.mixin({ | |
| escapeHtml: function () { | |
| return this.replace(/&/g,'&') | |
| .replace(/>/g,'>') | |
| .replace(/</g,'<') | |
| .replace(/"/g,'"') | |
| .replace(/'/g,'''); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Backbone example</title> | |
| <script type="text/javascript" src="jquery.min.js"></script> | |
| <script type="text/javascript" src="underscore.js"></script> | |
| <script type="text/javascript" src="backbone.js"></script> |
| $ sudo easy_install --upgrade twisted | |
| Password: | |
| install_dir /Library/Python/2.6/site-packages/ | |
| Searching for twisted | |
| Reading http://pypi.python.org/simple/twisted/ | |
| Reading http://twistedmatrix.com/ | |
| Reading http://tmrc.mit.edu/mirror/twisted/Twisted/10.0/ | |
| Reading http://www.twistedmatrix.com | |
| Reading http://twistedmatrix.com/products/download | |
| Reading http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/ |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| class ActionDispatch::Routing::Mapper | |
| def draw(routes_name) | |
| instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
| end | |
| end | |
| BCX::Application.routes.draw do | |
| draw :api | |
| draw :account | |
| draw :session |
Custom checkboxes for Obsidian. (Karol's version)
Based on:
| Surce mode | Live Preview / Reading mode |
|---|