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 serializeForm(form) { | |
if (!form || form.nodeName !== "FORM") { | |
return; | |
} | |
var i, j, | |
obj = {}; | |
for (i = form.elements.length - 1; i >= 0; i = i - 1) { | |
if (form.elements[i].name === "") { | |
continue; | |
} |
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 | |
# use neovim for vim if present. | |
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" | |
# make nano use 4 space tabs | |
alias nano="nano -T 4" | |
alias sa="cat ~/.bash_aliases" \ | |
ea="$EDITOR ~/.bash_aliases" \ |
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
{"lastUpload":"2022-09-02T21:46:54.373Z","extensionVersion":"v3.4.3"} |