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
CONDA_CHANNELS=anaconda,conda-forge,maciejkula python3 flows/my_flow.py --environment=conda --datastore=s3 --no-pylint run 130 ? | |
Metaflow 2.2.5 executing MyFlow for user:ghilston | |
Validating your flow... | |
The graph looks good! | |
cli.py about to create a MetaflowPackage | |
MetaflowPackage about to init_environment for flow {flow} in environment {environment} | |
2020-12-11 09:47:33.212 Bootstrapping conda environment...(this could take a few minutes)! | |
step <bound method MyFlow.start of <__main__.MyFlow object at 0x7fb8c833ff98>> of type <class 'method'> | |
deco conda<decorated libraries={} python=None disabled=True> of type <class 'metaflow.plugins.conda.conda_step_decorator.CondaStepDecorator'> | |
step <bound method MyFlow.get_data of <__main__.MyFlow object at 0x |
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
CONDA_CHANNELS=anaconda,conda-forge,maciejkula python3 flows/my_flow.py --environment=conda --no-pylint run 130 ? | |
Metaflow 2.2.5 executing MyFlow for user:ghilston | |
Validating your flow... | |
The graph looks good! | |
cli.py about to create a MetaflowPackage | |
MetaflowPackage about to init_environment for flow {flow} in environment {environment} | |
2020-12-11 09:47:30.165 Bootstrapping conda environment...(this could take a few minutes)! | |
step <bound method MyFlow.start of <__main__.MyFlow object at 0x7fbfb89cff98>> of type <class 'method'> | |
deco conda<decorated libraries={} python=None disabled=True> of type <class 'metaflow.plugins.conda.conda_step_decorator.CondaStepDecorator'> | |
step <bound method MyFlow.get_data of <__main__.MyFlow object at 0x |
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
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=US | |
network={ | |
ssid="" | |
psk="" | |
key_mgmt=WPA2-PSK | |
} |
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
# Hey everyone, I was having a tough time cleaning up my ROMs, as there would be multiple versions of the same game, like: | |
# Super-Smash(Japan).rom | |
# Super-Smash(Europe).rom | |
# Super-Smash(USA).rom | |
# I ended up writing this small Python (3.6) script that you can use to cleanup duplicate files. | |
# Execution looks like this, if you want to keep only USA files: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Data from NASA on meteorite landings | |
df = pd.read_json(data_directory + "y77d-th95.json") |
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
# ensure our graphs are displayed inline | |
%matplotlib inline | |
import os | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sb | |
import numpy as np | |
import folium | |
from folium import plugins |
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/local/bin/phantomjs | |
var page = require('webpage').create(); | |
var system = require('system'); | |
// ***** Argument handling | |
function isInt(value) { | |
return !isNaN(value) && | |
parseInt(Number(value)) == value && |
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
# contains helpful premade actions we'll be using later. | |
# Anything that starts with os. came from this | |
import os | |
# gets a list of all the items in the current directory | |
file_names = os.listdir(".") | |
# we'll loop over every file in the current directory | |
for file_name in file_names: | |
# define the prefix we're looking to remove |
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 sys | |
def eprint(*args, **kwargs): | |
"""Prints a message to stderr | |
:param args: variable amount of arg Strings to print to stderr | |
:param kwargs: variable amount of keyword arg Strings to print to stderr | |
""" |
NewerOlder