Skip to content

Instantly share code, notes, and snippets.

View stacked_bar.csv
State Under 5 Years 5 to 13 Years 14 to 17 Years 18 to 24 Years 25 to 44 Years 45 to 64 Years 65 Years and Over
AL 310504 552339 259034 450818 1231572 1215966 641667
AK 52083 85640 42153 74257 198724 183159 50277
AZ 515910 828669 362642 601943 1804762 1523681 862573
AR 202070 343207 157204 264160 754420 727124 407205
CA 2704659 4499890 2159981 3853788 10604510 8819342 4114496
CO 358280 587154 261701 466194 1464939 1290094 511094
CT 211637 403658 196918 325110 916955 968967 478007
DE 59319 99496 47414 84464 230183 230528 121688
DC 36352 50439 25225 75569 193557 140043 70648
@agconti
agconti / stripe_card_token_generator.py
Last active Aug 29, 2015
A simple class to help you easily create stripe tokens for testing purposes.
View stripe_card_token_generator.py
import stripe
from config import settings
class StripeCardTokenGenerator:
def __init__(self, card_type="normal"):
stripe.api_key = settings.STRIPE_API_KEY
self.card_type = card_type
self.card_number = {
View notit_feature_set.md

NotIt!

NotIt! is a better “noes goes”. It randomly chooses a finger thats touching the screen, allowing you to make decisions for the group.

App:

After two or more users touch the screen, the app selects one at random.

Initial state:

  • Blank screen
  • Red border
  • CTA asking users to touch
View PhotoFire_feature_set.md

PhotoFire

A simple service that abstracts the process of uploading images and optimizing them for mobile. PhotoFire will have libraries for popular web frameworks that will allow developers specify to their desired file sizes and PhotoFire will directly upload the photos to S3 and will process them to the correct sizes. Photos will then be hosted via Cloud Front.

MVP

Upload photos

  • Photos should be streamed directly to S3
  • Request can contain an array of desired sizes

Image Processing

View git-workflow.md

Goal

Make an ansychrous workflow that allows the team to collaborate seemlessly, on their terms.

Background

What we had

Git Flow

  • You've probably used to it.
@agconti
agconti / slugify.js
Created Oct 21, 2015 — forked from mathewbyrne/slugify.js
Javascript Slugify
View slugify.js
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}
View using-docs.md

Setup docs

Create and activate a virtualenv:

virtualenv env
source env/bin/activate

Install dependencies:

@agconti
agconti / fizzBuzz.swift
Created Dec 14, 2015
FrizzBuzz in swift
View fizzBuzz.swift
func frizzBuzz(range:Int) -> Void {
for num in 1..<range {
var output:String = "";
if num % 3 == 0 {
output = "frizz";
}
if num % 5 == 0 {
output += "buzz";
@agconti
agconti / _.md
Last active Dec 21, 2015
bar colors
View _.md