This file contains 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
def getRouteNumber(lineNumber): | |
for name in colToRoute: | |
if lineNumber in colToRoute[name]: | |
return name | |
return "not found" | |
def amOrPm(row, col): | |
result = "AM" |
This file contains 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
amFile = open('am', 'r') | |
pmFile = open('pm', 'r') | |
extraAmFile = open('extraAm', 'r') | |
stopSchedules = {} | |
#isPM = True | |
names = ["Fremont", "Union City", "South Hayward", "Hayward", "Bay Fair", "San Leandro", "Coliseum", "Fruitvale", "Lake Merritt", "12th St. Oakland City Center", "19th St. Oakland", "MacArthur", "Ashby", "Downtown Berkeley", "North Berkeley", "El Cerrito Plaza", "El Cerrito del Norte", "Richmond"] | |
for line in amFile.readlines(): |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
* PyUDev | |
Input devices: | |
============== | |
event1 Power Button | |
event0 Power Button | |
event2 Logitech Unifying Device. Wireless PID:4002 | |
event3 Logitech Unifying Device. Wireless PID:4011 | |
event4 Dell WMI hotkeys |