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
#!/bin/bash | |
if test "$1" = "video"; then | |
youtube-dl --merge-output-format mkv -o './%(upload_date)s_%(title)s.%(ext)s' $2 | |
elif test "$1" = "music"; then | |
youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 0 -o './%(upload_date)s_%(title)s.%(ext)s' $2 | |
elif test "$1" = "playlist-video"; then | |
youtube-dl --merge-output-format mkv -o './%(playlist_index)s_%(title)s.%(ext)s' $2 | |
elif test "$1" = "playlist-music"; then | |
youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 0 -o './%(playlist_index)s_%(title)s.%(ext)s' $2 |
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 matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
def air_density(altitude): | |
""" | |
Air density altitude profile. | |
:param altitude: (m) | |
:return: density (kg/m3) |
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 argparse | |
import webbrowser | |
import numpy as np | |
import pandas as pd | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--csv-file', default='./WATCHLIST.csv') | |
parser.add_argument('--n', default=5) |