This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Usage: find . -name \*.hs | rerun make | |
# | |
# Install inotifywait using 'sudo apt-get install inotify-tools' or whatever. | |
# | |
# Automatically re-run a command when a file changes. Assumes that your | |
# text editor closes files after each write. Pipe file names on standard | |
# input. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Client-side Comet code. See comet_server.coffee for instructions. | |
client = new Faye.Client '/faye', timeout: 90 | |
# Attach a security key to all our subscription messages. | |
client.addExtension | |
outgoing: (msg, callback) -> | |
return callback(msg) unless msg.channel is '/meta/subscribe' | |
(msg.ext ?= {}).authToken = 'secret' | |
callback(msg) |