for example for photos from a camera (IMG_xxxx.JPG): ./missing-files-in-sequence.sh '*IMG_' 3409 '.jpg'
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
| #!/usr/bin/env sh | |
| # skip first few lines in file (xml setup) | |
| # replace explicit new lines in strings with nothing (all newlines are on own line) | |
| # remove leading spaces | |
| # read up to first blank line | |
| tail -n +6 app/src/main/res/values/changelog.xml | \ | |
| sed s'|\\n||g' | \ | |
| sed s'|^\ *||' | \ | |
| sed -e '/^$/,$d' |
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
| "print stock prices as a csv string. see https://github.com/ranaroussi/yfinance for disclaimers" | |
| import datetime | |
| import sys | |
| import yfinance as yf | |
| def get_last_stock_price(stock, before): | |
| "get the last price of the stock before the given date" | |
| start = before - datetime.timedelta(days=7) | |
| tick = yf.Ticker(stock) |
shell script that can be sourced to have produce TAP output for test files
- create
tests/setup.sh - create test files, ex
tests/example.test.sh - run tests, and on success call
ok <test name>orfail <test name>(orskip <test-name>)
do need to ensure that none of the tests output TAP related output (ex redirecting stdout)
OlderNewer