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
.ngx-souffleur { | |
position: relative; | |
} | |
.ngx-souffleur div, | |
.ngx-souffleur input { | |
position: absolute; | |
top: 0; | |
left: 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
license: gpl-3.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
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>; | |
} |
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
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 |
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 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): |
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
// 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", |
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
<template name="meteor_reactive_var"> | |
<div>{{count}}</div> | |
<button>Increment Count</button> | |
</template> |
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 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 |
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 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 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 sys | |
import csv | |
import json | |
filename = sys.argv[1] | |
name, _ = os.path.splitext(filename) | |
header = ['geonameid', 'name', 'asciiname', 'alternatenames', | |
'latitude', 'longitude', 'featureclass', 'featurecode', |
OlderNewer