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 random import random as rand | |
from numpy import log | |
def SIM_MISSING(*args): | |
raise Exception('Simulator missing') | |
class Node: | |
def __init__(self, name='untitled'): | |
self.name = name | |
self.children = [] |
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 lxml import html | |
import requests | |
import sys | |
import urlparse | |
import os | |
import errno | |
# Gives fancy display string for links | |
def linkf(link): | |
return '"%s" (%s)' % (link.text, link.attrib['href']) |
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 utils as u | |
import numpy as np | |
from numpy.random import random as rand | |
# Hyperparameters for the distribution of mu | |
mu_hyp = 0.0 | |
sigma_hyp = 1.0 | |
# Hyperparameters for the distribution of sigma | |
k_hyp = 1.0 |
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
#!/bin/bash | |
# | |
# Script to copy various text fields from the Chase Bill Pay "Payee | |
# Details" page into rows of a spreadsheet. (There is an export tool | |
# for wire transfer payees, but no export for Bill Pay payees.) | |
# | |
# The hard-coded numbers are specific to the web page, browser, font | |
# sizes, etc. It was easier in this case to do automated mouse and key | |
# presses in the browser than to write a custom scraper. |
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
""" | |
Append-only dictionary that: | |
* Preserves insertion order | |
* Supports concise and efficient linear indexing into the sequence of `(key, | |
value)` pairs | |
* Supports concise and efficient linear indexing into the sequence of values. | |
Example: |