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
| /** | |
| * url https://en.wikipedia.org/wiki/Blink_element | |
| **/ | |
| setInterval(function(){ | |
| $('blink').each(function() { | |
| $(this).toggle(); | |
| }); | |
| }, 250); |
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
| filemap(){ # custom back-compat implementation of mapfile bc why not | |
| STRIP="f" | |
| ARRAY_NAME="" | |
| [[ $1 = "-t" ]] && STRIP="t" || ARRAY_NAME=$1 | |
| [[ $ARRAY_NAME = "" ]] && ARRAY_NAME=$2 | |
| LINENUM=0 | |
| for((;;)){ | |
| read -r || break | |
| [[ $STRIP = "t" ]] && printf -v "$ARRAY_NAME[$LINENUM]" '%s' "${REPLY%"${_##*[!\\\n]}"}" || printf -v "$ARRAY_NAME[$LINENUM]" '%s' "$REPLY" | |
| ((LINENUM++)) |
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
| import os | |
| dir_stack = [] | |
| def pushd(new_dir): | |
| dir_stack.append(os.getcwd()) | |
| os.chdir(new_dir) | |