Saturday, February 25, 2012

Getting Express project ready with Coffee.

#!/bin/sh
# Utility script to create express project and make it ready with coffee scripts
# Assumes the availability of (express, js2coffee) node modules on path.

PROJECTDIR="$1"

if [ "$PROJECTDIR" = "" ]; then
        echo "Usage: $0 projectname";
fi

express $PROJECTDIR

echo "   converting js to coffee and installing dependencies"

cd $PROJECTDIR
js2coffee app.js > app.coffee; rm app.js
js2coffee routes/index.js > routes/index.coffee; rm routes/index.js
npm install

echo "   \n$PROJECTDIR is ready now."
echo "   \$ cd $PROJECTDIR"
echo "   \$ coffee app.coffee"

Tuesday, February 21, 2012

PHPNohup - execute in background.

Finally got some breakthrough in executing the long-running stateless scripts on the server using PHP in background.

Checkout: phpnohup @github

Saturday, February 18, 2012

Cool markdown editors.

Markdown helps to get the quick documentation,
preview enabled editors makes it easy to get the formatted content ready to be used.

Thursday, February 16, 2012

Started with MacOSX Lion and got-off with setup hiccups

Following items came in handy:
  • http://code.google.com/p/qlcolorcode/
  • http://stackoverflow.com/a/4115544
Enjoying the full-screen mode feature - helps to stay away from too many window distractions!

This page is powered by Blogger. Isn't yours?