Skip to content

Instantly share code, notes, and snippets.

Dave Paola dpaola2

Block or report user

Report or block dpaola2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:549779
fab clean:stage
fab deploy:production
fab deploy:192.168.1.102
View gist:549781
STAGE = 'stage.example.com'
PRODUCTION = 'www.example.com'
HOSTS = {
'stage':STAGE,
'production':PRODUCTION
}
View gist:549787
def _resolve_host(func):
def resolve(host, *args, **kwargs):
if host in HOSTS:
return func(HOSTS[host], **kwargs)
return func(host, *args, **kwargs)
return resolve
@dpaola2
dpaola2 / pyrocfile.py
Created Nov 14, 2011 — forked from testac/pyrocfile.py
pyrocfile - 100 line Procfile manager in Python
View pyrocfile.py
# Pyrocfile - Simple Python impementation of Procfile manager
# Written by Chris Testa (http://testa.co/) in 2011
# Released in the Public Domain
import argparse, logging, os.path, random, re, select, signal, subprocess
def _new_logger(name, color=None):
logger = logging.getLogger(name)
hdlr = logging.StreamHandler()
color, end_color = '\033[9%dm' % (color or random.randint(1, 6)), '\033[0m'
View gist:1641838
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
/Users/dpaola2/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
Gem files will remain installed in /Users/dpaola2/.rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.7.2 for inspection.
Results logged to /Users/dpaola2/.rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.7.2/./gem_make.out
View gist:1773759
course-name: How to build a URL shortener
other-metadata: foobar
author: dave paola
chapters:
chapter:
name: chapter 1
markdown: chapters/chapter1.md
command: rspec whatever.rspec
chapter:
name: chapter 2
View gist:1880324
~ $ cat config/
database.yml .env
~ $ cat config/database.yml
<%
require 'cgi'
require 'uri'
begin
uri = URI.parse(ENV["DATABASE_URL"])
View gist:1996624
# common()
rake db:migrate
# production
maintenance mode on
git push heroku master
common()
maintenance mode off
View gist:2024773

I think these are the things we should be thinking and talking about post-LAUNCH:

  1. Revenue and pricing model -- free users behave very differently than paying users, and we need to ensure we're keeping both types in mind. We need to be very careful that we aren't optim
    izing around our free users.
  2. Customer acquisition -- collecting data about 60 uniques per day is not enough. We need 6000, or 60,000. Not unrealistic. Codecademy has millions of users -- we need to kick their ass.
    Making product decisions around a small number of free
View awesome.el
(global-hl-line-mode 1)
(set-face-background 'hl-line "#262626")
(defun awesome-color-theme ()
(interactive)
(color-theme-install
'(awesome-color-theme
((background-color . "#000000")
(background-mode . light)
(border-color . "#1a1a1a")
You can’t perform that action at this time.