Skip to content

Instantly share code, notes, and snippets.

View mvolkmann's full-sized avatar

Mark Volkmann mvolkmann

View GitHub Profile
@mvolkmann
mvolkmann / pong.js
Created May 17, 2012 16:35
RabbitMQ client code
var amqp = require('amqp');
var count = 3;
var exchangeName = 'apto';
var pubQueue = 'pong-queue';
var subQueue = 'ping-queue';
var connOptions = {
host: 'localhost',
port: 5672,
@mvolkmann
mvolkmann / gist:1223437
Created September 17, 2011 00:11
CoffeeScript indentation
a = b = c = 0
# This works.
# Note how the 2nd line is indented so "b" in 2nd line
# is in the same column as "a" in 1st line.
if a is b and
b is c
console.log 'works'
# This also works, but is ugly.