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
%matplotlib inline | |
from matplotlib import pyplot as plt | |
import numpy as np | |
import os | |
import tensorflow as tf | |
import urllib2 | |
from datasets import imagenet |
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
class PimpedDispatchRequest(req: Request) { | |
private val HEADER_FORMAT = "--header '%s: %s'" | |
def toCurl(): String = { | |
"curl " + | |
req.headers.map({ | |
case (name, value) => HEADER_FORMAT.format(name, value) | |
}).mkString(" ") + | |
req.body.map(EntityUtils.toString).map(" --data '%s' ".format(_)).getOrElse("") + | |
" " + | |
req.host + req.path |
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 | |
filename="${1}" | |
no_extension=${filename%.*} | |
# echo "Converting Markdown to LaTeX..." | |
# multimarkdown -t latex ${no_extension}.md > ${no_extension}.tex | |
echo "Running LaTeX..." | |
latex -interaction=nonstopmode ${no_extension} > /dev/null |