Skip to content

Instantly share code, notes, and snippets.

View RyanCPeters's full-sized avatar

Ryan Peters RyanCPeters

  • Seattle, WA
View GitHub Profile
from bs4 import BeautifulSoup
from urllib.request import urlopen as uReq
import time
import datetime
import pandas as pd
# setting up url address paths
weather_data_url = 'https://www.ndbc.noaa.gov/station_page.php?station=44013'
tide_table_url = 'https://www.tide-forecast.com/locations/Castle-Island-Boston-Harbor-Massachusetts/tides/latest'
@RyanCPeters
RyanCPeters / team_generation_with_goofy_player_filler.py
Last active June 13, 2019 21:14
Sample code for quickly generating fantasy football player combinations that satisfy teams of: 1QB, 1TE, 2RB, 4WR, and 1 DST
import itertools
import os
import pickle
import random
from collections import namedtuple
import multiprocessing as mp
try:
# you can get PySimpleGUI by making the following call from the command terminal:
# pip install pysimplegui
import PySimpleGUI as sg
#!/usr/bin/env python3
from tensorboard import default
from tensorboard import program
import re
# ToDo: Low Priority
# Investigate if there is a way to derive the default port without having to hard code
# magic numbers like this.
default_port = 6006
@RyanCPeters
RyanCPeters / logger_control_script.py
Last active May 30, 2019 02:13
A custom logging control script for setting up formatted loggers of various levels
# yup... I am a dirty windows user ;) otherwise the sha-bang would have been here
import sys
import logging
try:
# This is only needed in order to detect if we are in debug mode when running in Pycharm IDE
import pydevd
DEBUGGING = True
except ImportError: