(Too big for a single gist, so see first reply for the rest)
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 required modules | |
| from bs4 import BeautifulSoup | |
| import ast | |
| import pandas as pd | |
| import re | |
| import requests | |
| from datetime import datetime | |
| def get_stock_price(ticker): | |
| # pass a ticker name to i3investor website url |
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 json | |
| import glob | |
| all_bookmarks = [] | |
| md_file = open("bookmarks.md", "w+") # saving in markdown file, if no file exists using '+' creates one | |
| files = [file for file in glob.glob("JSONBookmarks/*")] # using glob to read all files from the folder | |
| for file_name in files: | |
| print(file_name) | |
| with open(file_name) as bk: |
For a version without the collapsible details sections (so you can search the whole thing in your browser), click here.
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 random | |
| import pandas as pd | |
| import numpy as np | |
| # import requests | |
| # from bs4 import BeautifulSoup as bs | |
| # base_setlist_url = "https://allthings.umphreys.com/setlists/2020.html" | |
| df= pd.read_csv('https://gist.githubusercontent.com/duncangh/f732e79528c809c6affcfcbfaa087cba/raw/393a5861d749b0f1b60879038ce70eca99fe3517/songs.csv') |
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 lib import appsync | |
| def lambda_handler(event, context): | |
| print(event) | |
| input = { | |
| 'name': 'test123', | |
| 'description': 'some cool description' | |
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
so, why is oil's price negative?
(note: I am a software developer who has an interest in finance. This is my understanding. I am not a professional.)
first, what does that even mean? so, the "price of oil" is the price of "WTI Crude", which is a specific kind of oil. There are multiple kinds of oil with multiple prices.
Why is it negative? to understand this, we also have to understand why WTI is the price of oil: that is, it's the kind of oil that underpins the New York Mercantile Exchange's oil futures contracts. The NYMEX is kind of like the stock market, but for commodities, aka stuff.