Skip to content

Instantly share code, notes, and snippets.

View jefftriplett's full-sized avatar
Living the dream

Jeff Triplett jefftriplett

Living the dream
View GitHub Profile
mkvirtualenv pythondotorg
workon pythondotorg
git clone (github url)
pip install -r pythondotorg/requirements.txt
add2virtualenv .
add2virtualenv pythondotorg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

app running on iOS screenshot

app running on OS-X screenshot

app layout

@jefftriplett
jefftriplett / spiked-cider.py
Last active August 29, 2015 14:08
Dump your homebrew config into a cider (https://github.com/msanders/cider) compatible json format
import click
import json
import subprocess
def run_command(cmd, as_list=True):
try:
output = subprocess.check_output(
cmd,
stderr=subprocess.STDOUT,
@jefftriplett
jefftriplett / url2markdown-cli.py
Last active August 29, 2015 14:13
Fetch a url and translate it to markdown in one command. Formally moved to: https://github.com/jefftriplett/url2markdown-cli
"""
Copyright (c) 2015, Jeff Triplett
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
### Keybase proof
I hereby claim:
* I am jefftriplett on github.
* I am jefftriplett (https://keybase.io/jefftriplett) on keybase.
* I have a public key whose fingerprint is B2E0 9BFC 00DD 3C24 B05F A80D 341C A25B 11B1 4EC6
To claim this, I am signing this object:
"""
Originaly code was taken from: http://djangosnippets.org/snippets/290/
But I was made some improvements like:
- print URL from what queries was
- don't show queries from static URLs (MEDIA_URL and STATIC_URL, also for /favicon.ico).
- If DEBUG is False tell to django to not use this middleware
- Remove guessing of terminal width (This breaks the rendered SQL)
"""
from clint.textui import colored, columns, indent, puts
@jefftriplett
jefftriplett / favorite-tv-shows.md
Last active August 29, 2015 14:21
My Favorite TV Shows of 2014

Jeff's Favorite TV Shows of 2014

Best:

  • Fargo
  • True Detective
  • Transparent
  • Lillyhammer
  • Top of the Lake
  • Black Mirror
@jefftriplett
jefftriplett / registration-open.md
Last active August 29, 2015 14:21
DjangoCon US Registration is open!

DjangoCon US Registration is open!

Registration is open! You may book your tickets and reserve your hotel accommodations for DjangoCon US!

We’ve worked hard to lower ticket prices this year, and thus have low prices for students and individuals. Financial assistance is also available to those with limited budgets.

Register for Djangocon 2015 here.

Reserve your hotel accommodation to take advantage of our discounted room rates. This year the daily room rate for single or double occupancy is $139. Please use the reservation code of DJANGO0915.

Give a Python a Pony by @kennethlove #djbday

A More Accessible Django Girls @laceynwilliams #djbday

How Django Is Good For Your Health by @craigbruce #djbday

Django: The Conspiracy by @andrewgodwin #djbday

Snakes, Ponies and Balloons: Stories of Teaching Django to Thousands of Women by @olasitarska #djbday