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
TAP version 13 | |
ok 1 sgemm: 128x128 . 128x128 | |
# 7.567 GFlops/sec ±5.50% n = 61 µ = 1ms | |
ok 2 sgemm: 128x256 . 256x128 | |
# 4.195 GFlops/sec ±129.98% n = 38 µ = 2ms | |
ok 3 sgemm: 256x256 . 256x256 | |
# 25.376 GFlops/sec ±5.82% n = 55 µ = 1ms | |
ok 4 sgemm: 512x256 . 256x512 | |
# 42.685 GFlops/sec ±6.32% n = 53 µ = 3ms | |
ok 5 sgemm: 256x512 . 512x256 |
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
""" | |
Various options for a JSON type for Python. | |
My best effort at using these libraries naturally for reading and writing JSON. | |
https://nelsonslog.wordpress.com/2016/01/08/a-better-python-object-for-json/ | |
""" | |
import json, copy | |
import dotmap, attrdict, easydict, addict |
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 python | |
# this script filters output from ipython notebooks, for use in git repos | |
# http://stackoverflow.com/questions/18734739/using-ipython-notebooks-under-version-control | |
# | |
# put this file in a `bin` directory in your home directory, then run the following commands: | |
# | |
# chmod a+x ~/bin/ipynb_output_filter.py | |
# echo -e "*.ipynb \t filter=dropoutput_ipynb" >> ~/.gitattributes | |
# git config --global core.attributesfile ~/.gitattributes | |
# git config --global filter.dropoutput_ipynb.clean ~/bin/ipynb_output_filter.py |
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 | |
## create an ubuntu 14.04 hvm instance, then from your home directory: | |
# 1. download this script | |
# wget https://gist.githubusercontent.com/waylonflinn/506f563573600d944923/raw/install-python-data-science.sh | |
# 2. make it executable | |
# chmod a+x install-python-data-science.sh |
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> | |
<canvas id="c" width="128" height="128"></canvas> | |
<script src="glutil.js"></script> | |
<script id="vshader" type="text/plain"> | |
attribute vec2 vtxpos; | |
varying vec2 texpos; | |
void main() { | |
texpos = (vtxpos / 2.) + vec2(0.5, 0.5); | |
gl_Position = vec4(vtxpos, 0, 1); |