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
#!/bin/zsh | |
function stock { | |
if [[ $* == *--clean* ]] | |
then | |
clean=true | |
else | |
clean=false | |
fi | |
html=$(curl -s https://finviz.com/quote.ashx?t=$1); |
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
* | |
yields: 4 BOWLS OF SOUP + EXTRA PORK serving size: | |
* | |
* preparation time: 25 MINUTES | |
* | |
* cook time: 7 HOURS | |
* | |
* total time: 7 HOURS 25 MINUTES |
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
function lastpass () { | |
if [ "$1" ]; then | |
if [ "$2" ]; then | |
if [ "$1" = "all" ] || [ "$1" = "password" ] || [ "$1" = "username" ] || [ "$1" = "url" ] || [ "$1" = "notes" ]; then | |
requested_part="$1" | |
else | |
requested_part="field=$1" | |
fi | |
requested_account="$2" | |
else |
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
# ZSH Git Prompt Plugin from: | |
# http://github.com/olivierverdier/zsh-git-prompt | |
__GIT_PROMPT_DIR="${0:A:h}" | |
## Hook function definitions | |
function chpwd_update_git_vars() { | |
update_current_git_vars | |
} |
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
// Copy the code below, paste it into the browser console, and press enter. It | |
// will return an array of elements rendered off the right side of the viewport. | |
Array.from(document.querySelectorAll('*')).reduce((results, element) => { | |
const rect = element.getBoundingClientRect(); | |
if ((rect.width + rect.left) > window.innerWidth) results.push(element); | |
return results; | |
}, []); |
OlderNewer