Skip to content

Instantly share code, notes, and snippets.

View paltman's full-sized avatar

Patrick Altman paltman

View GitHub Profile

A line chart with mouseover so that you can read the y-value based on the closest x-value. The x-value is found using d3.mouse and scale.invert. The y-value is then found by bisecting the data.

@paltman
paltman / README.md
Last active August 29, 2015 14:01 — forked from mbostock/.block
Ticket Sales Over Time

This chart should represent ticket sales over time and features a gradient fill as well as tooltips on data points.

It should look like:

Ticket Sales Over Time Mockup

Keybase proof

I hereby claim:

  • I am paltman on github.
  • I am paltman (https://keybase.io/paltman) on keybase.
  • I have a public key whose fingerprint is 39D5 579B 99C6 0CAB 2D52 348F 3DC6 7EBC 6F0F 5EDC

To claim this, I am signing this object:

from django.db import models
from django.template.defaultfilters import slugify
from django.utils import timezone
from django.contrib.auth.models import User
from kpitree.measurement.models import Metric, Measurement
from kpitree.organizations.models import Organization
from kpitree.types.period_types import PERIOD_TYPES, period_for_date, period_range, period_display, period_start_end
* 2.1 - #140 - https://trello.com/c/D1lfz7l8
* 0.4 - #190 - https://trello.com/c/4x34WPDN
* 6.4 - #192 - https://trello.com/c/5O8TsYpV
* 4.6 - #197 - https://trello.com/c/X4BdsmtT
* 1.1 - #198 - https://trello.com/c/NLVByTx0
* 0.3 - #218 - https://trello.com/c/0IhF6lTh
* 1.0 - #219 - https://trello.com/c/EcpnBCZ0
* 13.3 - #221 - https://trello.com/c/UpcmeWOE
* 6.0 - #234 - https://trello.com/c/jo0R7tSH
* 0.5 - #239 - https://trello.com/c/4Jnw678k
import decimal
import sys
from collections import defaultdict
import requests
BASE_URL = "https://api.trello.com"
TOKEN = "46815a201a51fa6e8ec61285477b7851086b3b842dc84caaf391376b8855d6db"
* 1.8 - #211 - https://trello.com/c/frd2h8B2
* 48.2 - #221 - https://trello.com/c/UpcmeWOE
* 2.0 - #260 - https://trello.com/c/VUwD5QRC
* 1.6 - #265 - https://trello.com/c/3hm9Aelh
* 0.8 - #271 - https://trello.com/c/WGalNhJl
* 10.5 - #272 - https://trello.com/c/x3ku3NDN
* 0.4 - #280 - https://trello.com/c/Tbr2myKt
* 2.0 - #285 - https://trello.com/c/2rTa3Q1G
* 2.1 - #290 - https://trello.com/c/sEfqEpdT
* 0.6 - #292 - https://trello.com/c/Ado1bEvA
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# jeff cai<jeff.cai.ming@gmail.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: django-user-accounts\n"
"Report-Msgid-Bugs-To: \n"
-
title: "A history lesson"
screen_name: "pmarca"
first_id: 488428182282858498
first_timestamp: "2014-07-13T16:02:07-05:00"
tweets:
- "2014-07-13T16:02:07-05:00 Common thing one hears in US is \"Political system broken; Founding Fathers never intended politics to be dominated by moneyed interests.\""
- "2014-07-13T16:03:08-05:00 But in 1776, voting \"restricted to property owners—most of whom are white male Protestants over the age of 21\". http://t.co/x2AVaTBaEa"
- "2014-07-13T16:03:51-05:00 In 1789, George Washington was elected President. \"Only 6% of the population can vote.\" http://t.co/PpX4aLQcM8"
- "2014-07-13T16:04:38-05:00 Not until 1856 was voting expanded even to all white men (eliminating property ownership requirement) -- http://t.co/PpX4aLQcM8"
@paltman
paltman / Capfile
Created July 27, 2008 04:10 — forked from trey/Capfile
set :application, "clever_name"
set :user, "deploy"
set :scm_username, "you"
set :repository, "git@github.com:#{scm_username}/#{application}.git"
set :deploy_to, "/var/www/apps/#{application}"
set :scm, :git
set :django_location, "/usr/local/django/trunk"
set :django_admin_media, "/django/contrib/admin/media"
set :domain, "example.com"