This file contains hidden or 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 python | |
#############IP FINDING SCRIPT###### | |
# This script takes a file and prints all the ips found per line to stdout. | |
# | |
# | |
####################################### | |
import os, sys, re, socket |
This file contains hidden or 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
# I was following the Udacity Programming Languages course and this one was actually challenging and fun to figure out. | |
# Roberto S. 1/20/2013 | |
edges = { (1,'h'):[3,2], | |
(3,'h'):[3], | |
(2,'h'):[3], | |
(2,'t'):[4], | |
(4,'m'):[5], | |
(5,'l'):[6] } | |
accepting = [6] |