This file contains 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
# A template to demonstrate why we need to profile | |
# This instance written by Paul Ivanov (XXX: put your name / github id here) | |
import numpy as np | |
import random | |
def where_is_the_bottleneck(x): | |
return [random.randint(0, 100) for i in xrange(x)] |
This file contains 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
"""Convert 'tower of blocks' CPO files to SSO files.""" | |
# Standard | |
import os | |
import re | |
import colorsys | |
import sys | |
import pickle | |
# External | |
from path import path | |
import numpy as np |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
def update_docstring(name, olddoc): | |
# make sure it has a docstring | |
if olddoc is None: | |
return None | |
# new docstring | |
prefix = "%s: " % name | |
if len(olddoc.split(": ")) > 1: | |
newdoc = prefix + olddoc.split(": ")[1] | |
else: |
This file contains 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
From 1ebff43a47eea78643a903d85b13c91eb94d1e76 Mon Sep 17 00:00:00 2001 | |
From: "Jessica B. Hamrick" <jhamrick@berkeley.edu> | |
Date: Mon, 15 Apr 2013 16:51:38 -0700 | |
Subject: [PATCH] Look for OmniGraffle Professional 5 if OmniGraffle 5 does not | |
exist | |
--- | |
omnigraffle_export/omnigraffle.py | 5 ++++- | |
1 file changed, 4 insertions(+), 1 deletion(-) |
This file contains 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 requests as req | |
import pandas as pd | |
import dotenv | |
import os | |
import json | |
import subprocess as sp | |
from time import mktime | |
from datetime import datetime | |
from collections import OrderedDict |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title>CompCog Psychology Experiment</title> | |
<script src="static/lib/jquery.min.js" type="text/javascript"></script> | |
<script src="static/lib/bootstrap.min.js"></script> | |
<link rel="stylesheet" href="static/css/bootstrap.min.css"> | |
<link rel="stylesheet" type="text/css" href="static/css/general.css" media="screen" /> | |
</head> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 sys | |
from datetime import datetime, timedelta | |
try: | |
from IPython.display import clear_output | |
except ImportError: | |
clear_output = None | |
class Progress(object): |
This file contains 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 | |
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter | |
from boto.mturk.connection import MTurkConnection | |
import os | |
if __name__ == "__main__": | |
parser = ArgumentParser( | |
formatter_class=ArgumentDefaultsHelpFormatter) |