Skip to content

Instantly share code, notes, and snippets.

View marks's full-sized avatar

Mark Silverberg marks

View GitHub Profile
RUN \
export CUDA_HOME=/usr/local/cuda-7.5 && \
export CUDA_ROOT="/usr/local/cuda-7.5/bin" && \
export PATH=/usr/local/cuda-7.5/bin:$PATH && \
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64 && \
cd ~ && \
wget https://app.dominodatalab.com/johnjoo/cuDNN_for_TF/raw/latest/cudnn-7.5-linux-x64-v5.1.tgz -O cudnn-7.5-linux-x64-v5.1.tgz.gz && \
gunzip cudnn-7.5-linux-x64-v5.1.tgz.gz && \
tar xvzf cudnn-7.5-linux-x64-v5.1.tgz && \
cp cuda/include/cudnn.h /usr/local/cuda-7.5/include && \

Keybase proof

I hereby claim:

  • I am marks on github.
  • I am marksilverberg (https://keybase.io/marksilverberg) on keybase.
  • I have a public key whose fingerprint is F54F 3773 563C 8D5D A0DE 0EBF 5B8B CB60 347A 037E

To claim this, I am signing this object:

@marks
marks / test.sas
Last active October 18, 2016 21:35
/*
This SAS code file should output three files:
- sas_output.html (pretty HTML output)
- sas_output.lst (plain text ASCII output)
- sas.log (logs, not results)
*/
ods html file='/mnt/sas_output.html';
PROC PRINTTO LOG='/mnt/sas.log' PRINT='/mnt/sas_output.lst';
@marks
marks / kick_off_runs.sh
Last active August 24, 2016 13:37
Quick bash script with CSV file to queue up multiple Domino runs. Run this with `sh kick_off_runs.sh runs_to_do.csv`
#!/bin/bash
IFS=","
while read file args
do
echo "++ Kicking off Domino run with 'domino run $file $args' ++"
domino run --no-sync $file $args
done < $1
from domino import Domino
import pandas as pd
import json
import os
# connect to domino; be sure to have DOMINO_USER_API_KEY env set. Domino automatically includes this for you
domino = Domino("nick/digits", api_key=os.environ['DOMINO_USER_API_KEY'], host="https://app.dominodatalab.com")
raw_runs = domino.runs_list()['data']
print raw_runs
var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") {
return pivotModule(require("jquery"), require("c3"));
} else if (typeof define === "function" && define.amd) {
return define(["jquery", "c3"], pivotModule);
} else {
return pivotModule(jQuery, c3);
}
(function() {
var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") {
return pivotModule(require("jquery"), require("c3"));
} else if (typeof define === "function" && define.amd) {
return define(["jquery", "c3"], pivotModule);
} else {
return pivotModule(jQuery, c3);
@marks
marks / query.url
Last active May 13, 2016 20:22
Query for the 5 features (rows) closest to 47.59815,-122.334540 in https://data.seattle.gov/d/82su-5fxf
https://data.seattle.gov/resource/3c4b-gdxv.json?$select=*,DISTANCE_IN_METERS(location, 'POINT(-122.334540 47.59815)') AS distance_in_meters&$limit=5&$order=distance_in_meters asc
{
"version": "2",
"header": {
"title": "Sample of Combined NNDSS Table II Data (2016)",
"description": "<strong style='font-size:16px;'><a href='https://data.cdc.gov/'>Data from multiple data.cdc.gov datasets</a> </strong> | This page by mark.silverberg@socrata.com <br><br>In these tables, all conditions with a 5-year average annual national total of more than or equals 1,000 cases but less than or equals 10,000 cases will be displayed (≥ 1,000 and ≤ 10,000). The Table includes total number of cases reported in the United States, by region and by states, in accordance with the current method of displaying MMWR data. Data on United States exclude counts from US territories.",
"navigation": [
{
"url": "https://cdc-science.demo.socrata.com/dataset/Sample-of-Combined-NNDSS-datasets/nmaj-nshg",
"label": "Full dataset"
},
@marks
marks / Nominees.markdown
Last active March 12, 2016 21:09
Nominees