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
# ------------------------------------------------------- | |
# Makefile to build whatever you want. | |
# It tries to find all the sources you have and builds | |
# dependencies, to detect header file changes. | |
# This is especially helpful for C/C++ beginners, | |
# who don't want to edit a Makefile. | |
# https://gist.github.com/2552967 | |
# Written by David Halter <[email protected]> | |
# ------------------------------------------------------- | |
CC=g++ |
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
#!/usr/bin/env python | |
import os | |
import json | |
import grooveshark | |
client = grooveshark.Client() | |
client.init() | |
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
""" | |
Transforms a normal Python file to pep484 annotations using Jedi. | |
Usage: | |
pep484transform.py <file> [-d] | |
Options: | |
-d, --debug Show Jedi's debug output. | |
""" | |
from os.path import abspath |
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 socket | |
import pdb | |
def pytest_addoption(parser): | |
parser.addoption("--remote-pdb", action='store_true', | |
help="Opens a remote pdb on localhost:8050. Works with xdist") | |
def pytest_exception_interact(node, call, report): | |
if node.config.option.remote_pdb: | |
tb = call.excinfo._excinfo[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
import logging | |
import pdb | |
import time | |
from contextlib import contextmanager | |
from django.core.management.base import BaseCommand | |
from django.test import Client | |
from django.conf import settings | |
from django.db import connection | |