$ time pip-outdated.py --clear
rebuilding package-cache...
# bad package name, skipping...
# bad package name, skipping...
# bad package name, skipping...
# bad package name, skipping...
altgraph (0.9 != 0.10.2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import gc | |
import inspect | |
import weakref | |
from django.core.management.base import BaseCommand, CommandError | |
from django.dispatch import Signal, saferef | |
from optparse import make_option |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Django Docs Banner removal | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.0.2 | |
// @description Removes the annoying "dev-warning" at the top of the website. | |
// @include https://docs.djangoproject.com/* | |
// @copyright 2013+, Jeff Triplett (Update by @fcurella) | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import pytz | |
import requests | |
import time as time_mod | |
FORECAST_TEMPLATE = 'https://api.forecast.io/forecast/{apikey}/{latitude},{longitude}{time}{si}' | |
class Forecast(object): |
I modified bracket-maker and ran my own custom dataset. KU came out the winner 4 out of the first 7 times I ran the data. Hardly scientific but I liked the results so I thought it might be fun to post publicly. If only the actual tournament worked like this.
Louisville (1) vs. North Carolina A&T (16)
winner: Louisville (1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
from urllib.parse import parse_qs | |
parse_qs # placate pyflakes | |
except ImportError: | |
try: | |
from urlparse import parse_qs | |
except ImportError: | |
# fall back for Python 2.5 | |
from cgi import parse_qs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Demo adapted from this stackoverflow question: | |
http://stackoverflow.com/questions/2922874/how-to-stream-an-httpresponse-with-django | |
- Updated `HttpResponse` to use `StreamingHttpResponse` | |
- I changed the blank spaces from 1024 to 10240 so that my browser would | |
update every second vs. every 4 seconds. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@server2013:~# cat /proc/cpuinfo | |
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 2 | |
model name : QEMU Virtual CPU version 1.0 | |
stepping : 3 | |
microcode : 0x1 | |
cpu MHz : 1999.999 | |
cache size : 4096 KB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) |