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 __init__(self, mta_week_numbers): | |
""" | |
MtaRidership class constructor | |
:param mta_week_numbers: A list of YYMMDD strings for the turnstile week files to load. | |
:return: MtaRidership | |
""" | |
self.turnstiles_df = [] | |
self.turnstiles_daily = [] |
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 getMvp(self, N): | |
""" | |
Our Minimum Viable Product. Creates a bar graph with the top | |
N highest trafficked MTA stations. | |
:param N: Number of top stations (e.g. Top 10, Top 5) to use in the graph | |
:type N: int | |
:return: Seaborn figure to be shown with plt.show() | |
""" |
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 __init__(self, mta_week_numbers): | |
""" | |
MtaRidership class constructor | |
:param mta_week_numbers: A list of YYMMDD strings for the turnstile week files to load. | |
:return: MtaRidership | |
""" | |
self.turnstiles_df = [] | |
self.turnstiles_daily = [] |
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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
my @a = (1..9); | |
for(@a){ | |
print("$_","\n"); | |
} |
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
import googlemaps | |
import json | |
from pprint import pprint | |
import time | |
## Import API Key | |
with open('config.json') as config_file: | |
config_data = json.load(config_file) |
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
to setup | |
clear-all | |
create-turtles 100 | |
ask turtles | |
move-to one-of patches with [not any? turtles-here]] | |
ask patches [ |
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
while (true) { /////////////////////////////// E | |
Date now = new Date() ///////////////// I | |
secs_str = now.format("ss"). ///////////////// F | |
secs_int = secs_str.toInteger(). ///////////////// C | |
println secs_int///////////////// | |
if (secs_int % 15 == 0) { /////////////////////// B |
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
<dependencies> | |
<dependency> | |
<groupId>com.twilio.sdk</groupId> | |
<artifactId>twilio</artifactId> | |
<version>8.21.0</version> | |
</dependency> | |
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core --> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> |
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
import com.fasterxml.jackson.databind.ObjectMapper; | |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; | |
import java.net.URI; | |
import java.util.HashMap; |
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
#! /Users/bgideon/PycharmProjects/KeywordComparison/venv/bin/python | |
### !!!! Your interpreter path will be different! Find it with `which python3` | |
import sys | |
def get_kws(): | |
py_kws = [] | |
c_kws = [] |