Preliminary experimenting with d3, "draw your feelings"
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 | |
""" | |
Takes NIH Toolbox data and transforms it from long (one row per score or | |
response) to wide (one row per participant, or 'PIN' as labeled in the NIH | |
Toolbox output. | |
Output from this will be fed to scorify, and the output from that will be fed | |
to ndaify.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 python3 | |
import sys | |
with open(sys.argv[1], 'r') as ballot_file: | |
lines = [line.rstrip() for line in ballot_file] | |
# Trim first header and final line | |
lines.pop(0) | |
lines.pop() |
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
BootStrap: docker | |
From: ubuntu:18.04 | |
%labels | |
Maintainer Dan Fitch | |
R_Version 3.6.3 | |
%apprun R | |
exec R "${@}" |
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 re | |
import requests | |
from requests_html import HTMLSession | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
session = HTMLSession() | |
r = session.get('https://covidresponse.wisc.edu/dashboard/') |
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
<?php | |
$target_dir = "uploads/"; | |
error_reporting(-1); | |
ini_set('display_errors', 'On'); | |
date_default_timezone_set('America/Chicago'); | |
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { | |
header('Content-Length: 0'); | |
header('Connection: keep-alive'); |
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
from __future__ import absolute_import, division, print_function | |
import time | |
import os | |
import sys | |
import threading | |
import logging | |
import ctypes |
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
dan@batman:~/git/gibber.graphics.lib$ gulp | |
[19:52:44] Warning: gulp version mismatch: | |
[19:52:44] Global gulp is 3.9.1 | |
[19:52:44] Local gulp is 3.8.11 | |
[19:52:44] Using gulpfile ~/git/gibber.graphics.lib/gulpfile.js | |
[19:52:44] Starting 'client'... | |
[19:52:44] 'client' errored after 22 ms | |
[19:52:44] TypeError: gulp.src(...).pipe(...).pipe is not a function | |
at Gulp.<anonymous> (/home/dan/git/gibber.graphics.lib/gulpfile.js:23:6) | |
at module.exports (/home/dan/git/gibber.graphics.lib/node_modules/orchestrator/lib/runTask.js:34:7) |
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
open FSharp.Data | |
open FSharp.Data.JsonExtensions | |
open System.Xml | |
open System.Net | |
open System.Web | |
open System.IO | |
open System.Text | |
(* |
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
#!/bin/sh | |
# git-checkpoint | |
# ============== | |
# Minimal version tracking with git using a single command. | |
# | |
# Intended to ease people new to git into easy versioning | |
# in a single server repository location, but they can also | |
# expand on their knowledge and use other git commands as | |
# they learn. |
NewerOlder