This file contains hidden or 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
| youtube-dl --extract-audio --audio-format mp3 <youtube-url> |
This file contains hidden or 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
| const years = [2020, 2021, 2022]; | |
| const months = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; | |
| const days = Array.from({length:31},(v,k)=>k+1) | |
| var dailyConditions = []; | |
| var titleRegex = /\(([^)]+)\)/; | |
| years.forEach(year => { | |
| months.forEach(month => { | |
| days.forEach(day => { |
This file contains hidden or 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
| https://stackoverflow.com/questions/26288042/error-installing-psycopg2-library-not-found-for-lssl | |
| $ env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install psycopg2 |
This file contains hidden or 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
| body = { | |
| 'sid': 'DENthr', | |
| 'sdate': '2018-01-01', | |
| 'edate': '2018-06-31', | |
| 'output': 'json', # csv or json | |
| 'elems': [ | |
| { | |
| "name": "avgt", | |
| "interval": "mly", | |
| "duration": "mly", |
This file contains hidden or 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
| # List each file in order | |
| file '/path/to/file1.mov' | |
| file '/path/to/file2.mov' | |
| file '/path/to/file3.mov' |
This file contains hidden or 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
| from __future__ import print_function | |
| import numpy as np | |
| import pandas as pd | |
| import talib as ta | |
| import pandas_datareader as web | |
| from sklearn.linear_model import LinearRegression | |
| from sklearn.linear_model import Ridge | |
| from sklearn.model_selection import cross_val_score |
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 hidden or 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 json | |
| import re | |
| import sys | |
| import urllib2 | |
| # Parse the command-line arguments | |
| argparser = argparse.ArgumentParser() | |
| argparser.add_argument('date_start', help='Start Date') | |
| argparser.add_argument('date_end', help='End Date') |
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 hidden or 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 requests | |
| import smtplib | |
| import sys | |
| import time | |
| from email.MIMEMultipart import MIMEMultipart | |
| from email.MIMEBase import MIMEBase | |
| from email.MIMEText import MIMEText | |
| from email.MIMEImage import MIMEImage | |
| from email import Encoders |