Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker, Ph.D. dmd

View GitHub Profile
@dmd
dmd / -
Created April 29, 2017 01:13
#!/usr/bin/env python
import pandas as pd
import numpy as np
import datetime
top = 50
raw = pd.read_csv('leader.csv')
raw['date'] = pd.to_datetime(raw['date'])
lastmonth = (datetime.date.today().replace(day=1) - datetime.timedelta(days=1)).strftime("%Y-%m")
print "Report for {}".format(lastmonth)
#!/usr/bin/env python
import pandas as pd
import numpy as np
import datetime
top = 50
raw = pd.read_csv('leader.csv')
raw['date'] = pd.to_datetime(raw['date'])
lastmonth = (datetime.date.today().replace(day=1) - datetime.timedelta(days=1)).strftime("%Y-%m")
print "Report for {}".format(lastmonth)
▄▄▄▄▄▄▄ ▄ ▄▄ ▄▄▄▄▄▄▄
█ ▄▄▄ █ ██ ▀▄ █ ▄▄▄ █
█ ███ █ ▄▀ ▀▄ █ ███ █
█▄▄▄▄▄█ █ ▄▀█ █▄▄▄▄▄█
▄▄ ▄ ▄▄▀██▀▀ ▄▄▄ ▄▄
██▀█▀ ▄▄▀▀▄ ▄▄▀ ██▀█
▄▀█▀█▄▄ ▀▄▀▄ ▄ ▄▀ ██
▄▄▄▄▄▄▄ █▄█▀ ▄ █▀▀ ▄▀
█ ▄▄▄ █ █ █▀▀▄██ ▄
█ ███ █ ▀█ ▀▄ ▀▄▄▀▀█
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar 20 2017 15:55:48)
Included patches: 1-494
Compiled by [email protected]
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_sgr +tag_old_static
+arabic +find_in_path -mouse_sysmouse -tag_any_white
+autocmd +float +mouse_urxvt -tcl
+balloon_eval +folding +mouse_xterm +termguicolors
+browse -footer +multi_byte +terminfo
++builtin_terms +fork() +multi_lang +termresponse
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 8 2017 14:36:11)
Included patches: 1-396
Compiled by [email protected]
Normal version with GTK2 GUI. Features included (+) or not (-):
+acl -farsi -mouse_netterm +syntax
-arabic +file_in_path -mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
+balloon_eval +float -mouse_urxvt -tag_any_white
+browse +folding +mouse_xterm -tcl
+builtin_terms -footer +multi_byte +terminfo
@dmd
dmd / -
Created May 12, 2017 00:06
#!/bin/bash
# initialize CAN and the robot
# these functions allow us to source a calfile
s() {
eval s_$1=$2;
}
ok() {
:
}
@dmd
dmd / -
Created May 12, 2017 17:07
##################################################
##################################################
#### ###### ## ## ####
#### ########## ########## ## ########## ####
#### ## ## ## ## ###### ## ## ####
#### ## ## ########## ## ## ## ####
#### ## ## #### ## ## ## ## ####
#### ########## #### #### ########## ####
#### ## ## ## ## ####
#################### ## ########################
@dmd
dmd / -
Created May 19, 2017 14:30
#!/u/ddrucker/python32/bin/python
# coding: utf-8
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import matplotlib.dates as dates
from matplotlib.ticker import MaxNLocator
import numpy as np
from datetime import date, datetime, timedelta, time
@dmd
dmd / -
Created May 23, 2017 01:53
answer();
log( "buttbuttinated" );
say("Welcome to butts lol.");
butts=record("Please say the word butts",
{
beep:true, silenceTimeout: 1, maxTime:3, timeout:5,
// onRecord:function(butts )
// { say("you said " + butts.recordURI ) }
} );
@dmd
dmd / -
Created May 26, 2017 20:02
diff --git a/config.js b/config.js
index 61087fe..e1a5626 100644
--- a/config.js
+++ b/config.js
@@ -1,8 +1,8 @@
const config = {
// url
- root: 'http://localhost:9091',
- csv: '/history.csv',
- json: '/data.json',