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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:68dde4e98d73981470a2678c04c4a291b230afea11aa551a38bac92ec836e42e" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
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 | |
"""Extend HITs as assignments are completed. | |
If a HIT takes up a lot of bandwidth, then you may only want to have a | |
few workers doing it at a time. This script monitors how many | |
assignments are currently being worked on, and as they are completed, | |
extends the HIT with new assignments until a specified upper limit is | |
reached. |
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) |
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): |
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
<!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> |
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
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
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: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer