Skip to content

Instantly share code, notes, and snippets.

View toastdriven's full-sized avatar

Daniel Lindsley toastdriven

View GitHub Profile
import os
import sys
import subprocess
def simplify_pg_index_line(line):
"""
Given a postgres index file line returns it's simplified form.
Returns None for comments
"""

Rules

  1. Nothing Gets Built Ahead Of Time

Ideas and/or pencil & paper (not digital) mockups ONLY before the competition.

  1. 48 Hours To Build

Starts 00:00 AM CDT on August 13 and ends 48 hours later at 11:59 PM CDT August 14.

var sys = require('sys');
var http = require('http');
var url = require('url');
http.createServer(function (req, res) {
var name = 'World';
if(req.method == 'GET') {
data = require('url').parse(req.url, true);
@toastdriven
toastdriven / WIP_base.html
Created July 30, 2010 14:18
Last night's distraction
<!DOCTYPE html>
<html>
<head>
<title>My Whisper Blog</title>
</head>
<body>
<section>
<header><a href='/'>My Whisper Blog</a></header>
{{error}}
@toastdriven
toastdriven / rebuild_environment.sh
Last active December 3, 2019 19:12
Rebuild Environment
brew install git
brew update
brew install readline
brew link readline
brew install python
brew install postgres
brew install tmux
brew install pip
brew install nginx
brew install libevent
import datetime
import gevent
from gevent import wsgi, pywsgi
# Configuration bits.
PORT = 8081
LOG_PATH = '/Users/daniellindsley/Desktop/LoggingFramework/benchmarks/receiver/logs/gevent_test.log'
# ============
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set bell-action none
set-option -g status-left ""
set-option -g status-right "#S"
set -g status-bg black
set -g status-fg white
set utf8-default on
Dear <Senator/Representative>,
As a concerned United States citizen and active voter, the recent dealings between Google &
Verizon are cause for concern. The wording of their most recent deal gives way to the loss of net
neutrality.
Net Neutrality (the idea that all people who use Internet are given equal access to any site) is
part of the core of the Internet and is the part of the reason for its rapid expansion as well as
the freedom with which information can be distributed.
/*
dashbot.js
==========
Because the last thing you need during the competition is a heartless automaton
breathing down your neck...
Installation:
-------------