Skip to content

Instantly share code, notes, and snippets.

View ChicagoDev's full-sized avatar
🇺🇸

Blake Gideon ChicagoDev

🇺🇸
View GitHub Profile
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 = []
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()
"""
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 = []
#!/usr/bin/perl
use warnings;
use strict;
my @a = (1..9);
for(@a){
print("$_","\n");
}
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)
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
<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>
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;
#! /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 = []