Skip to content

Instantly share code, notes, and snippets.

@focusandflow
focusandflow / ticker_metadata.py
Created June 24, 2023 02:42 — forked from vvksh/ticker_metadata.py
get ticker company name and market cap from yfinance in python
# pip3 install yfinance
from typing import Dict
def get_ticker_metadata(ticker: str) -> Dict[str, str]:
"""
:param ticker: stock ticker
:return: Dictionary containing some metadata
"""
result = {"company_name": "not_found",
@focusandflow
focusandflow / Wistia-download-videos.md
Created June 30, 2024 17:33 — forked from szepeviktor/Wistia-download-videos.md
Download Wistia videos - Please do not misuse it!

Download Wistia videos

  1. right-click on the playing video, select Copy link
  2. find Wistia video ID in the copied link e.g. wvideo=tra6gsm6rl
    • alternative: look for e.g. hashedId=tra6gsm6rl in the page source
  3. load http://fast.wistia.net/embed/iframe/ + video ID in your browser
  4. look for "type":"original" in the page source and copy the URL from the next line e.g. "url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
  • alternative: look for "type":"hd_mp4_video"
@focusandflow
focusandflow / code-editor-rules.md
Created February 21, 2025 04:09 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]