Skip to content

Instantly share code, notes, and snippets.

View justinabrahms's full-sized avatar

Justin Abrahms justinabrahms

View GitHub Profile
@justinabrahms
justinabrahms / gist:1638664
Created January 19, 2012 08:02
notes for "You and Your Research"
* You and Your Research
http://www.cs.virginia.edu/~robins/YouAndYourResearch.html
** Necessities for Success
*** Courage
It seems as though the speaker said this as if this was also
synonymous with confidence. Asking impossible questions, etc. Maybe
brazenness would be a reasonable quality too.
*** Thinking
*** Age
Math folks are best when young. Composers best when old. His theory is
@justinabrahms
justinabrahms / gist:1810217
Created February 12, 2012 18:50
A product request I filed with openstudy.com in 2010. Why doesn't this exist right now?
Ideal online learning experience:
1. Lessons that are applicable to me.
a. CompSci data structures
b. CompSci algorithms
c. CompSci operating systems
d. CompSci (sensing a theme?) database design
2. Variety of questions which are in increasing difficulty (with approximate levels for each question)
3. The ability to have someone validate my answers (I'd pay for this, not sure if its per-question, per-lesson or per-"semester")
4. A bit of code that would evolve over the course of the "semester"
2166 ± : ruby github-services.rb [7d0h36m] ✹
WARN The gem environment is out-of-date or has yet to be bootstrapped.
Runnning script/bootstrap to remedy this situation...
bundle install requires at least 0 argument: "bundle install".
/Users/justinlilly/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.0/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find rake-0.8.7 in any of the sources (Bundler::GemNotFound)
from /Users/justinlilly/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.0/lib/bundler/spec_set.rb:83:in `map!'
from /Users/justinlilly/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.0/lib/bundler/spec_set.rb:83:in `materialize'
from /Users/justinlilly/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.0/lib/bundler/definition.rb:113:in `specs'
from /Users/justinlilly/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.0/lib
; setup dev environment w/ ponymode.
(defun pony-time ()
(interactive)
(if virtualenv-workon-session
(progn
(pony-runserver)
(pony-manage-run '("celeryd" "-lINFO" "--traceback" "--autoreload"))
(pony-shell)
(sql-mysql))
@justinabrahms
justinabrahms / gist:3830804
Created October 4, 2012 00:34
pretty time formatting in python
def nice_time(delta):
"""
Gets time delta in seconds and returns a pretty string
representing it in the format of 1w2d9h16m44s
"""
weeks = 0
days = 0
hours = 0
@justinabrahms
justinabrahms / gist:4199302
Created December 4, 2012 00:16
virtualenv code saves 2 minutes per build on our boxen.
# Installing things takes a while. Skip if if nothing has changed.
# jenkins requires things to be html escaped to work properly, hence the weird command below
VENV_DIR=`md5sum requirements/* | md5sum 2>&1 | awk '{print $1}'`
if [ -e $VENV_DIR ]; then
. /tmp/$VENV_DIR/bin/activate
else
virtualenv --no-site-packages /tmp/$VENV_DIR
. /tmp/$VENV_DIR/bin/activate
pip install --download-cache /var/lib/jenkins/.pip_download_cache -r requirements/ci.txt
fi
description "autoreply - twitter bot which redirects users to new acccount"
author "Justin Abrahms <justin@abrah.ms>"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
respawn
env LOGFILE=/srv/justinlilly-autoreply/history.json
env ENV_ROOT=/srv/justinlilly-autoreply/env
env APP_ROOT=/srv/justinlilly-autoreply/autoreply
@justinabrahms
justinabrahms / gist:4227986
Created December 6, 2012 20:21
Response to recruiter emails.
Hey,
I just want to say thanks so much for getting in touch. While I'm not
looking for work directly at this moment, I do think a partnership
could be possible. Have you seen https://sprint.ly/ ? Its a really
great, next-gen project management tool that helps connect business
users to developers in ways that make sense to both sides. Maybe your
company or a company you know might be able to make use of it? There
are a great number of companies already shipping great software with
it and there is a 30 day free trial, no questions asked.
@justinabrahms
justinabrahms / gist:4232768
Created December 7, 2012 11:43
Sprint.ly Deploy API GET response.
[{
"environment": "staging",
"items": [{
"status": "completed",
"product": {
"archived": false,
"id": 1,
"name": "sprint.ly"
},
"description": "http://support.sprint.ly/discussions/problems/222-not-sure-what-some-things-mean",
@justinabrahms
justinabrahms / gist:4232813
Created December 7, 2012 11:53
Sprint.ly Deploy API POST response.
{
"environment": "staging",
"items": [{
"status": "completed",
"product": {
"archived": false,
"id": 1,
"name": "sprint.ly"
},
"description": "http://support.sprint.ly/discussions/problems/222-not-sure-what-some-things-mean",