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 os | |
import numpy as np | |
import scipy.misc | |
import scipy.io | |
import matplotlib.pyplot as plt | |
def reconstruct_3d(name, plot=True): | |
""" | |
Homework 2: 3D reconstruction from two Views |
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 os | |
import pandas as pd | |
from nbgrader.api import Gradebook | |
from nbformat import write as write_nb | |
from nbformat.v4 import new_notebook, new_markdown_cell | |
def gradebook(): | |
if os.environ.get('NBGRADER_DB_URL', ''): | |
gb = Gradebook(os.environ['NBGRADER_DB_URL']) |
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 jupyter/notebook | |
# Install nbgrader | |
RUN pip2 install nbgrader && pip3 install nbgrader | |
# Add any other dependencies you might want, e.g. numpy, scipy, etc. | |
#RUN pip2 install numpy scipy matplotlib | |
#RUN pip3 install numpy scipy matplotlib | |
# Configure grader user |
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
"""Return feedback to students that was generated with `nbgrader feedback`. | |
This must be run from the root of the nbgrader directory. You probably need to run | |
it with sudo since you need to write to other users' directories. | |
Usage: | |
sudo python return_feedback.py problem_set_name | |
""" |
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> |
Loading
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
import sys | |
import os | |
import logging | |
from logging.handlers import RotatingFileHandler | |
# This script assumes you have created a subdomain on DreamHost | |
# that is configured for Passenger. It also assumes you have created | |
# a Python virtual environment in the root of that subdomain and | |
# installed psiTurk inside it. |
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 bash | |
# | |
# Generate a set of TLS credentials that can be used to run development mode. | |
# | |
# Based on script by Ash Wilson (@smashwilson) | |
# https://github.com/cloudpipe/cloudpipe/pull/45/files#diff-15 | |
# | |
# usage: sh ./genkeys.sh NAME HOSTNAME IP | |
set -o errexit |
NewerOlder