| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
| # download libpng 1.4.x (1.5 didn't work yet with GraphicsMagick 1.3.12) | |
| ./configure --prefix=$HOME/INST && make && make install | |
| # download libjpeg | |
| ./configure --prefix=$HOME/INST && make && make install | |
| # download GraphicsMagick | |
| CFLAGS=-I$HOME/INST/include LDFLAGS=-L$HOME/INST/lib ./configure --prefix=$HOME/INST --disable-openmp --disable-openmp-slow && make && make install |
| index.html: docs/index.md | |
| markdown < $< \ | |
| | cat head.html - tail.html \ | |
| > $@ |
#Four Ways To Do Pub/Sub With jQuery and jQuery UI (in the future)
Between jQuery 1.7 and some of work going into future versions of jQuery UI, there are a ton of hot new ways for you to get your publish/subscribe on. Here are just four of them, three of which are new.
(PS: If you're unfamiliar with pub/sub, read the guide to it that Julian Aubourg and I wrote here http://msdn.microsoft.com/en-us/scriptjunkie/hh201955.aspx)
##Option 1: Using jQuery 1.7's $.Callbacks() feature:
| #!/usr/bin/env node | |
| var express = require("/Users/ironman/.node_libraries/express"); | |
| var startPort = 4567; | |
| var app = express.createServer(); | |
| app.configure(function(){ | |
| app.use(express.static(process.cwd() + '/')); | |
| app.use(express.directory(process.cwd() + '/',{ icons:true })); |
| Dear soon-to-be-former user, | |
| We've got some fantastic news! Well, it's great news for us anyway. You, on | |
| the other hand, are fucked. | |
| We've just been acquired by: | |
| // | |
| // Usage: require('./pid')("myapp"); | |
| // | |
| var fs = require('fs'); | |
| module.exports = function(appname){ | |
| process.title = appname; | |
| var PID_FILE = "/usr/local/var/run/"+process.title+".pid"; |
| var ED = ED || {}; | |
| // Utility functions | |
| ED.util = (function() { | |
| // Data structure functions | |
| function each(object, callback) { | |
| if (object === null) return; |
| This playbook has been removed as it is now very outdated. |
| function tabname { | |
| printf "\e]1;$1\a" | |
| } | |
| if [ x`type -t cd` == "xfunction" ]; then | |
| # previously wrapped cd | |
| eval $(type cd | grep -v 'cd is a function' | sed 's/^cd/original_cd/' | sed 's/^}/;}/' ) | |
| else | |
| # builtin | |
| eval "original_cd() { builtin cd \$*; }" |