Skip to content

Instantly share code, notes, and snippets.

View JamesCropcho's full-sized avatar

James Cropcho JamesCropcho

  • New York City
View GitHub Profile
@JamesCropcho
JamesCropcho / Backtesting a Wary Strategy.ipynb
Created October 25, 2017 22:24
Backtesting a Wary Strategy
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JamesCropcho
JamesCropcho / differences.py
Created September 8, 2017 23:27
num_pairs(numbers, sum)
#!/usr/bin/env python
import logging
import unittest
from collections import defaultdict
def num_pairs(numbers, sum):
'''
Computes the number of integer (ℤ) pairs whose sum is equal to the
@JamesCropcho
JamesCropcho / Applying+a+Hadamard+Gate+to+a+Qubit.ipynb
Last active October 11, 2017 16:45
Applying a Hadamard Gate to a Qubit
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JamesCropcho
JamesCropcho / .block
Last active April 28, 2016 14:51 — forked from mbostock/.block
Isometric II
license: gpl-3.0