Skip to content

Instantly share code, notes, and snippets.

Zach Duey zduey

Block or report user

Report or block zduey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .vimrc
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
@zduey
zduey / luigi_backup.py
Created Sep 18, 2016
Example of using Luigi for backup to S3
View luigi_backup.py
import os
import boto3
import luigi
import shutil
import datetime
from luigi.s3 import S3Target
# Globals
today = datetime.datetime.today().strftime(format='%Y_%m_%d')
folder_to_archive = ''
@zduey
zduey / lstm_exploration.ipynb
Created Jan 29, 2017
LSTM model parameters and model accuracy
View lstm_exploration.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zduey
zduey / fork_from_child.c
Created Feb 6, 2018
POC: Calling fork() from a child process
View fork_from_child.c
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
// Sample program to convince myself that you can call fork() from a child process
// Since all processes in UNIX derive from init, this seemed like it would have to
// be true, but just chekcing.
int main() {
pid_t pid_1;
@zduey
zduey / convert_xlserialdate.py
Created Oct 9, 2016
Convert between Excel serialdate and Python datetime with adjustment for 1900 leap year bug
View convert_xlserialdate.py
def xlserialdate_to_datetime(xlserialdate):
"""
Converts a Microsoft Excel serial date to datetime object
Arguments:
-----------
xlserialdate : int
Microsoft Excel serial date
@zduey
zduey / iex.py
Created Mar 4, 2017
Simple Real-Time Stock Streaming with Bokeh
View iex.py
import io
import requests
import pandas as pd
from bokeh.models import ColumnDataSource, HoverTool, ResizeTool, SaveTool
from bokeh.models.widgets import TextInput, Button
from bokeh.plotting import figure, curdoc
from bokeh.layouts import row, widgetbox
TICKER = ""
You can’t perform that action at this time.