(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env bash | |
# fetch_nike_puls_all_activities.bash | |
# A simple bash script to fetch all activities and metrics from NikePlus. | |
# See `nike_plus_api.md` for the API details. | |
readonly bearer_token="$1" | |
if [[ -z "$bearer_token" ]]; then | |
echo "Usage: $0 bearer_token" | |
exit |
# show commits from all branches for current git user. | |
function my-commits-since() { | |
git log --all --author=$(git config user.email) --since=$@ | |
} | |
# show commits from yesterday. | |
# if none were found, assume it's Monday and show commits from Friday. | |
function standup() { | |
if [ -z "$(my-commits-since yesterday)" ]; then | |
my-commits-since last.friday.midnight $@; |