- Capital letters do the opposite of small letters in command (Press shift to trigger capital letters)
_(underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)0(zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)
$(dollar) to move the cursor at the end of line (doesn't switch to insert mode)d$will delete from wherever your cursor is till the end of the linef<character>to move cursor to the first occurrence of<character>f(to move cursor to first occurence of(
t<character>to move cursor to upto but not on the first occurrence of<character>t(to move cursor to first occurence of(
https://gist.github.com/ljharb/58faf1cfcb4e6808f74aae4ef7944cff
While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.
JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it mu
| #!/bin/sh | |
| # | |
| # !!! IMPORTANT !!! | |
| # As of 2017-12-14, pacaur is unmaintained (https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144) | |
| # For alternatives see the arch wiki: https://wiki.archlinux.org/index.php/AUR_helpers#Active | |
| # pacaur seems to get occasional updates to fix breaking changes due to pacman updates though. | |
| # | |
| # If you are new to arch, I encourage you to at least read and understand what | |
| # this script does befor blindley running it. | |
| # That's why I didn't make a one-liner out of it so you have an easier time |
| #!/bin/bash | |
| ## wget -O tox.sh waa.ai/iqt && chmod +x ./tox.sh && ./tox.sh | |
| ## ./tox.sh -sl to skip libsodium (they don't update that often) | |
| ## ./tox.sh -sd to skip libsodium and all the other dependencies | |
| ## If libraries are missing, remove /etc/ld.so.conf.d/locallib.conf and | |
| ## try running again. Else, try messing around with the prefix paths. | |
| ## Suggestions, comments and the alike are welcome on http://waa.ai/4xtC | |
| ## or send me a mail, to notadecent AT tox DOT im |