Category Archives: coding

Open all files in separate emacs windows

How to open everything in a directory with emacs, each in their own window: find . -type f -exec $SHELL -c ‘”$0″ “$@” &’ emacs {} \; Many thanks to ephemient at StackOverflow for the inspiration: http://stackoverflow.com/questions/853451/can-the-find-commands-exec-feature-start-a-program-in-the-background

Posted in coding | Tagged , , , | Comments Off on Open all files in separate emacs windows

How to conditionally display variables with EJS

Short version: <%= user.name ? user.name : ” %> When using EJS as a template language, it can be a bit of a mystery how to concisely display variables if and only if they are defined. For example, if you … Continue reading

Posted in coding, Development | Tagged , , , , | Comments Off on How to conditionally display variables with EJS

The World’s Simplest AutoTweeter (in node.js)

Last month, I set up a quick little autotweeter using Node.js to help me with Repeal Day Santa Barbara. I wrote a short blurb about it before hand, here’s what actually shipped. (Many thanks to the guys at the Santa … Continue reading

Posted in AutoTweeter, coding | Tagged , , , , , , , , , , | Comments Off on The World’s Simplest AutoTweeter (in node.js)

Towards a node.js Auto-Tweeter

I’ve been intrigued by node.js as a platform for highly-scalable server applications written in javascript and finally found a super simple application I wanted to try with it: an auto-tweeter that would let me schedule future tweets to my own … Continue reading

Posted in AutoTweeter, coding | Tagged , , , , , , | 6 Comments