This file contains 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
cscloud() { | |
codesandbox $1 | tee /dev/tty | tail -1 | sed -e 's/codesandbox.io\/s/codesandbox.io\/p\/sandbox/g' | |
} | |
# Usage: | |
# cscloud . |
This file contains 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
# zsh function to get the first display on time and the last display off time of the day | |
# Also shows difference time difference between those both | |
# installation: put this function in your .zshrc file | |
# reload zshrc: source ~/.zshrc | |
# use it like this for today: when | |
# use it like this for yesterday: when 1 | |
# use it like this for the day before yesterday: when 2 | |
# use it like this for today with a break of 30 minutes: when 0 30 | |
# use it like this for the day before yesterday with a break of 30 minutes: when 2 30 | |
when() { |