- hackmd version: https://hackmd.io/1eeNAS1oQuSvMA0q6y_QuA?view
- gist version: https://gist.github.com/bluet/23e7697b86144561c4a3d804903d059d
[TOC]
- Extract 部份:取出要的資料、去雜訊、資料標準化、parsing...
- Transform:aggregation、mapping 、combined、Change Data Types
| # Put this function to your .bashrc file. | |
| # Usage: mv oldfilename | |
| # If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
| # Original mv is called when it's called with more than one argument. | |
| # It's useful when you want to change just a few letters in a long name. | |
| # | |
| # Also see: | |
| # - imv from renameutils | |
| # - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
| """ | |
| Investing Analytics | |
| Author: Elijah Lopez | |
| Version: 2.1 | |
| Created: April 3rd 2020 | |
| Updated: July 1st 2023 | |
| https://gist.github.com/elibroftw/2c374e9f58229d7cea1c14c6c4194d27 | |
| Resources: | |
| Black-Scholes variables: |
[TOC]
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import argparse | |
| import logging | |
| from datetime import datetime, timedelta | |
| from typing import List, Optional | |
| from collections import defaultdict |
| #!python3 | |
| ''' | |
| Directions: | |
| - install yt-dlp via Pip (e.g. using (StaSh)[https://github.com/ywangd/stash] - `pip install yt-dlp`) | |
| - add this script as a Share extension through Settings -> Share Extension Shortcuts | |
| - while watching a video in the YouTube site or app, just share the video to Pythonista and select this script | |
| - the video will download, and when it's done you can share the video file itself with any app (e.g. VLC) | |
| Advanced usage: |
| # Full instructions: http://manpages.ubuntu.com/manpages/bionic/en/man8/mmcli.8.html | |
| # Examples: http://manpages.ubuntu.com/manpages/bionic/en/man8/mmcli.8.html#examples | |
| # Supported modems: https://www.freedesktop.org/wiki/Software/ModemManager/SupportedDevices/ | |
| # Get list of connected modems. | |
| mmcli --list-modems | |
| # Output: | |
| # Found 1 modems: | |
| # /org/freedesktop/ModemManager1/Modem/1 [huawei] E3531 | |
| # The number at the end of the path is the modem index. |