Skip to content

Instantly share code, notes, and snippets.

@cmheisel
cmheisel / instructions.md
Last active February 23, 2016 19:54
Kabbage Code Sample

User story

As a Kabbage developer, I want to see how you code a lightweight application, so that I can get a feel for your skills and strengths.

Acceptance Criteria:

  1. Given a user, when they access your application, then they should be presented with a search box prompting them for a topic
  2. Given a user, when they enter a topic, results from Twitter should be returned
  3. Given a user, when they enter a topic, results from Wikipedia should be returned
  4. Given a user who's performed a search, when they hit the browser's refresh button, results should be refreshed under the same search criteria.
@acolyer
acolyer / service-checklist.md
Last active January 30, 2024 17:39
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@hrldcpr
hrldcpr / tree.md
Last active May 1, 2024 00:11
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

@zmcghee
zmcghee / gist:1243366
Created September 26, 2011 20:49
Croddy (to the tune of Shaft)
[4:47pm] dslipakoff: You see this cat Croddy is a bad mother--
[4:47pm] cmheisel: Shut your croddy
[4:47pm] dslipakoff: But I'm talking about Croddy
[4:47pm] cmheisel: Then we can croddy it
[4:47pm] dslipakoff: He's a complicated man
[4:47pm] cmheisel: And no one understands him but his TTY
[4:48pm] mchace: That's a sex machine to all the chicks
[4:48pm] cmheisel: Croddy!
[4:48pm] dslipakoff: Who's the white Ops Guys
[4:48pm] dslipakoff: that's a HotFixing machine to all the servers ?
brew install git
brew update
brew install readline
brew link readline
brew install python
brew install postgres
brew install postgis
brew install gdal
brew install geos
brew install git
We couldn’t find that file to show.
@unbracketed
unbracketed / virtualenv_komodo_project.py
Created July 2, 2010 04:42
Util for generating a Komodo project file that works with virtualenv
"""
A sample utility for customizing virtualenv creation based
on the postmkvirtualenv hook provided by virtualenvwrapper.
This script will generate a Komodo project file suitable for
use in Komodo Edit (and presumably Komodo IDE). The project preferences
are automatically customized so that the Python path contains the
new virtualenv's site-packages directory.
(Project Properties -> Languages -> Python in the GUI)