Skip to content

Instantly share code, notes, and snippets.

View adunkman's full-sized avatar

Andrew Dunkman (he/him) adunkman

View GitHub Profile
@adunkman
adunkman / index.html
Created January 14, 2012 15:33
Relay messages from RabbitMQ to a browser using Socket.io - client
<!DOCTYPE html>
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script>
(function () {
var onMessage = function (data) {
// Do something with the message data
};
@adunkman
adunkman / index.html
Created January 14, 2012 15:28
Relay messages from RabbitMQ to a browser using Socket.io
<!DOCTYPE html>
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script>
(function () {
var onMessage = function (data) {
// Do something with the message data
};
@adunkman
adunkman / lessjs.rb
Created April 14, 2011 21:53 — forked from andyfowler/lessjs.rb
Jekyll plugin to render LESS (lesscss.org) files during generation.
module Jekyll
class LessCssFile < StaticFile
def write(dest)
# do nothing
end
end
class LessJsGenerator < Generator
safe true