2015-10-21
- jennifer
- martym
| from collections import defaultdict | |
| class Graph: | |
| def __init__(self, start, end): | |
| self.nodes = set() | |
| self.edges = defaultdict(list) | |
| self.distances = {} | |
| self.start = start | |
| self.end = end | |
| def add_node(self, value): |
| #! /bin/bash | |
| if [[ $1 == 'me' ]]; then | |
| cat "$(which show)" | |
| elif [[ $1 == 'loc' ]]; then | |
| echo `which show` | |
| elif [[ $1 == 'install' ]]; then | |
| echo "Ensure to place this file in `usr/local/bin` and read instructions on https://gist.github.com/swaathi/8c18be3a437e498034a5a3ede54d0ce9/." | |
| brew install fortune | |
| brew install cowsay | |
| brew install lolcat |
| [user] | |
| name = <username> | |
| email = <email> | |
| [credential] | |
| helper = osxkeychain | |
| [alias] | |
| ci = commit | |
| fu = fetch upstream | |
| mum = merge upstream/master | |
| pom = push origin master |
| PWD = File.expand_path(File.dirname(__FILE__)) | |
| VARIABLE_REGEX = %r{\<[A-Z\-]*\>} | |
| class MTEngineError | |
| class << self | |
| def not_a_file(filepath) | |
| raise "#{filepath} is not a file or does not exist" | |
| end | |
| end | |
| end |