Skip to content

Instantly share code, notes, and snippets.

@rduplain
rduplain / responsive_d3_example.html
Created Apr 18, 2012 — forked from mattalcock/responsive_d3_example.html
Responsive d3.js D3 Javascript Histogram Example
View responsive_d3_example.html
<!DOCTYPE html>
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<style>
body {
font: 10px sans-serif;
}
rect {
@rduplain
rduplain / gist:2017517
Created Mar 11, 2012 — forked from ask/gist:2014539
celery consumer service using boot-steps.
View gist:2017517
from celery import abstract
from celery import current_app
from kombu import Exchange, Queue
from kombu.mixins import ConsumerMixin
# need to subclass the result backend so that it uses a topic exchange
# instead of direct, and send the results for tasks using a routing_key
# of the format: