Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # --- ↑↓ Do not remove these libs ↑↓ ----------------------------------------------------------------------------------- | |
| import argparse | |
| import json | |
| import time | |
| import re | |
| import requests | |
| # ---- ↑ Do not remove these libs ↑ ------------------------------------------------------------------------------------ |
Use Python to:
| // This Regexp tries to grep a price from a string. | |
| // 1. The number must makes sense. it may contain "." or "," i.e 1 1.000,99 10,0 etc | |
| // 2. The String must conatin a currency identifier like EUR,USD,€ or $. | |
| // 2a) The currency identifer may be at the begining or at the end of the matching string | |
| // 2b) There may be a space between value and currency identifier | |
| // This regexp is based upon http://stackoverflow.com/questions/1547574/regex-for-prices | |
| (USD|EUR|€|\$|£)\s?(\d{1,}(?:[.,]\d{3})*(?:[.,]\d{2}))|(\d{1,3}(?:[.,]\d{3})*(?:[.,]\d{2})?)\s?(USD|EUR) | |
| updated Version (also matches numbers without delimiters in between like $2 $34 thx PepsiX for pointing out this issue: |
install nodejs 12
run with node app.js cameraRootDir
Almost works with Blitzwolf BW-SHC2 (no audio for me).
Not tested on windows, but probably changing the ffmpeg in the first two function-returns to something like ffmpeg.exe will make this work.
The script will recursively walk on every sudir, group the files ased on parent dir,
| Set-StrictMode -Version Latest | |
| $payload = @{ | |
| "channel" = "#my-channel" | |
| "icon_emoji" = ":bomb:" | |
| "text" = "This is my message. Hello there!" | |
| "username" = "Mr. Robot" | |
| } | |
| Invoke-WebRequest ` |
| Visual Studio 2019 Product Key | |
| [Please Star this gist] | |
| Follow My GitHub Account --> https://github.com/ch-kashif @ch-kashif | |
| **Follow Me On Instagram -->> https://www.instagram.com/ch.kashif602/ ** | |
| Lets do a code together | |
| Join Cloud Disk repository --> https://github.com/ch-kashif/CloudDisk |
| # This is a non-multiexchange version of GODMODE indicator | |
| # If you want the multi exchange version of GODMODE indicator, you need to implement willy and csi calculations too | |
| # Original source of god mode indicator: | |
| # https://www.tradingview.com/script/oA3U7pok-GODMODE-OSCILLATOR-FRESH-BREAD-GENERATOR-FREE-TO-USE/ | |
| import pandas as pd | |
| import talib | |
| channel_length = 9 | |
| average_length = 26 |