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
// Example | |
// measuring performance for on-time delivery | |
var on_time_poor = 25; | |
var on_time_good = 50; | |
var ontime_markers = build_bullet_markers_higher_better(100, on_time_poor, on_time_good); | |
var on_time_percentage = 40; | |
draw_bullet_graph($('#ontime_placeholder'), 0, 100, null, on_time_percentage, ontime_markers, 0); | |
/** |
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
""" | |
Get django-sekizai, django-compessor (and django-cms) playing nicely together | |
re: https://github.com/ojii/django-sekizai/issues/4 | |
using: https://github.com/jezdez/django_compressor.git | |
and: https://github.com/ojii/[email protected] | |
""" | |
from compressor.templatetags.compress import CompressorNode | |
from django.template.base import * | |
def compress(data, name): |
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
# coding=utf-8 | |
import cStringIO | |
import csv | |
import codecs | |
__author__ = 'shaun_stanworth' | |
class UnicodeWriter: | |
""" | |
A CSV writer which will write rows to CSV file "f", |
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
console.log('Hello, World!'); | |
var fs = require('fs'); | |
var amqp = require('amqp'); | |
var connection = amqp.createConnection({ url: 'amqp://subbydev/base64tests' }); | |
// Wait for connection to become established. | |
connection.on('ready', function () { | |
// Create a queue and bind to all messages. | |
// Use the default 'amq.topic' exchange |
NewerOlder