Before doing anything else, install those:
- VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Vagrant: https://www.vagrantup.com/downloads.html
- git: http://git-scm.com/download/win
def flatten(x, depth=-1): | |
"""Flattens a list of lists into a single list.""" | |
if depth == 0: | |
return x | |
if isinstance(x, list): | |
result = [] | |
for el in x: | |
if hasattr(el, '__iter__') and not isinstance(el, str): | |
result.extend(flatten(el, depth - 1)) | |
else: |
// This constant is written in column C for rows for which an email | |
// has been sent successfully. | |
var EMAIL_SENT = "EMAIL_SENT"; | |
var RESULTCOL = 15; // O | |
var ASSIGNMENT = "09 - Blindwalk"; | |
var SUBJECT = "[MATLAB] Assignment " + ASSIGNMENT; | |
var messages = { | |
'1': "You successfully passed assignment " + ASSIGNMENT + ". Congrats!\n", | |
'1?': "You passed assignment " + ASSIGNMENT + ". We want to note that it was a rather close call. If you want more specific feedback come up to us in class/after lecture or send an email.\n", |
#!/usr/bin/env python3 | |
"""Script locating the cheapest AWS GPU compute spot instance for docker.""" | |
from argparse import ArgumentParser | |
from datetime import datetime, timedelta | |
from itertools import groupby | |
from operator import itemgetter | |
import boto3 | |
import numpy as np |
def kernel_images(name, x, pad=1, max_images=-1, summarize=True): | |
"""Create image summaries of 2d convolution kernel weights.""" | |
def factorization(n): | |
"""Calculates kernel grid dimensions.""" | |
for i in range(int(sqrt(float(n))), 0, -1): | |
if n % i == 0: | |
return i, n // i | |
with tf.name_scope(name): |
I'm Feeling Lucky : go : {google:baseURL}search?gfns=1&sourceid=navclient&q=%s | |
DuckDuckGo Cheat Sheets : cheat : https://duckduckgo.com/?q=cheat+sheet+%s&iax=1 | |
Down For Everyone Or Just Me : down : http://downforeveryoneorjustme.com/%s | |
OpenCV 3.1 : cv : http://docs.opencv.org/3.1.0/search/all_5.html?%s |
import React, { PropTypes } from 'react'; | |
import ImmutableTypes from 'react-immutable-proptypes'; | |
import classNames from 'classnames'; | |
class DataTable extends React.Component { | |
renderCell({ name, numeric }, row) { | |
const className = !numeric ? 'mdl-data-table__cell--non-numeric' : ''; | |
return <td key={name} className={className}>{row.get(name, '')}</td>; | |
} |
import os | |
import sys | |
import csv | |
import json | |
filename = sys.argv[1] | |
name, _ = os.path.splitext(filename) | |
header = ['geonameid', 'name', 'asciiname', 'alternatenames', | |
'latitude', 'longitude', 'featureclass', 'featurecode', |
license: gpl-3.0 |
<template name="meteor_reactive_var"> | |
<div>{{count}}</div> | |
<button>Increment Count</button> | |
</template> |
Before doing anything else, install those: