Skip to content

Instantly share code, notes, and snippets.

View osteth's full-sized avatar

Seth Wahle osteth

View GitHub Profile
import random
s_nouns = ["A dude", "My mom", "The king", "Some guy", "A cat with rabies", "A sloth", "Your homie", "This cool guy my gardener met yesterday", "Superman"]
p_nouns = ["These dudes", "Both of my moms", "All the kings of the world", "Some guys", "All of a cattery's cats", "The multitude of sloths living under your bed", "Your homies", "Like, these, like, all these people", "Supermen"]
s_verbs = ["eats", "kicks", "gives", "treats", "meets with", "creates", "hacks", "configures", "spies on", "retards", "meows on", "flees from", "tries to automate", "explodes"]
p_verbs = ["eat", "kick", "give", "treat", "meet with", "create", "hack", "configure", "spy on", "retard", "meow on", "flee from", "try to automate", "explode"]
infinitives = ["to make a pie.", "for no apparent reason.", "because the sky is green.", "for a disease.", "to be able to make toast explode.", "to know more about archeology."]
def sing_sen_maker():
'''Makes a random senctence from the different parts of speech. Uses a SINGULAR
import random
contests = ['3D printing', 'Abseiling', 'Acting', 'Action figure', 'Adventure racing',
'Aerobatics', 'Aeromodeling', 'Aggressive inline skating', 'Aid climbing',
'Aikido', 'Air hockey', 'Air racing', 'Air sports', 'Airbrushing', 'Aircraft Spotting',
'Airsoft', 'Airsofting', 'Aizkolaritza', 'Alpine skiing', 'Amateur Astronomy', 'Amateur Radio',
'Amateur astronomy', 'Amateur geology', 'Amateur pankration', 'Amateur radio', 'Amateur wrestling',
'American flag rugby', 'American football', 'American handball', 'American snooker', 'Ancient games',
'Angling', 'Animal fancy', 'Animals/pets/dogs', 'Antiquing', 'Antiquities', 'Aqua-lung',
'Aquarium', 'Aquathlon', 'Archery', 'Arena football', 'Arimaa', 'Arm wrestling', 'Art collecting',
'Artistic billiards', 'Artistic cycling', 'Artistic gymnastics', 'Artistic pool',
@osteth
osteth / Order_Tmobile_hotsports.py
Last active August 31, 2019 00:59
A selenium script that will order Free Tmobile promo wifi hot spots in bulk. Just set the variables with your own order info and run it. Requires Chromedriver. Suggest Anaconda.
# coding: utf-8
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__title__ = "Tmobile hotsport bulk order script."
__summary__ = "A selenium script that will order Free Tmobile promo wifi hot spots in bulk. Just set the variables with your own order info and run it. Requires Chromedriver. Suggest Anaconda."
__uri__ = "https://sethwahle.com"
__author__ = "Seth Wahle"
__copyright__ = "Copyright 2019, Seth Wahle"
@osteth
osteth / useful_pandas_snippets.py
Created August 15, 2018 15:32 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
# List unique values in a DataFrame column
# h/t @makmanalp for the updated syntax!
df['Column Name'].unique()
# Convert Series datatype to numeric (will error if column has non-numeric values)
# h/t @makmanalp
pd.to_numeric(df['Column Name'])
# Convert Series datatype to numeric, changing non-numeric values to NaN
# h/t @makmanalp for the updated syntax!
@osteth
osteth / keybase.md
Created October 22, 2017 15:59
keybase.md

Keybase proof

I hereby claim:

  • I am osteth on github.
  • I am osteth (https://keybase.io/osteth) on keybase.
  • I have a public key ASCfcX6plRcjTToA97kdR_-y7_xFtdJbBMNU3BBF4RnCkgo

To claim this, I am signing this object:

@osteth
osteth / newLLR.py
Created May 3, 2017 15:46
pulls latitude, longitude and calculates a radius based on scan/track values to make a list of circles for plotting on the map.
#!/usr/bin/python3
import json
def LLR():
table = []
llr_table = []
with open('MODIS_C6_Global_24h.json', 'r') as data_file:
@osteth
osteth / csv-json.py
Created April 29, 2017 16:24
converts MODIS data over to json fromat from the command line for use in making a REST API from the TXT data files provided
import csv
import json
import click
@click.group()
def cli(*args, **kwargs):
"""Command line utility to easily convert .csv data over to .json data. This utility was built for the NASA space apps challenge and is defaulted
to be used with cron to pull in data from https://earthdata.nasa.gov/earth-observation-data/near-real-time/firms/active-fire-data convert it to json