Skip to content

Instantly share code, notes, and snippets.

View sthware's full-sized avatar

Spencer Hoffman sthware

View GitHub Profile
@sthware
sthware / foodbot.py
Last active June 3, 2017 01:22
Food Delivery Bot - simple delivery routing system demo
#!/usr/bin/env python3
"""Foodbot test program
Simple food delivery bot. Accepts a grid size and list of coordinates
representing dropoff locations (represented by the string 'D')
Plots a route to each of those locations, displaying the steps it used to
get there in NEWS format.
"""
@sthware
sthware / nn_from_scratch.py
Last active December 22, 2016 07:51
A partially-refactored, variable-name-expanded, heavily commented version of Britz's "Neural Network from scratch" code.
#!/usr/bin/env python
## NAME
## Neural Network from scratch
##
## DESCRIPTION
## A partially-refactored, variable-name-expanded, heavily commented version
## of Denny Britz's code. Original blog post:
## http://www.wildml.com/2015/09/implementing-a-neural-network-from-scratch/
##
@sthware
sthware / .zshrc
Last active December 11, 2015 22:39
zshrc for git color output and git status
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr 'M'
zstyle ':vcs_info:*' unstagedstr 'M'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' actionformats '%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
zstyle ':vcs_info:*' formats \
'%F{5}[%F{2}%b%F{5}] %F{2}%c%F{3}%u%f'
zstyle ':vcs_info:git*+set-message:*' hooks git-untracked
zstyle ':vcs_info:*' enable git