In this tutorial we're going to build a set of parser combinators.
We'll answer the above question in 2 steps.
- What is a parser?
- and, what is a parser combinator?
So first question: What is parser?
| -- Actions --- | |
| $Copy <C-C> <C-Ins> | |
| $Cut <C-X> <S-Del> | |
| $Delete <Del> | |
| $LRU | |
| $Paste <C-V> <S-Ins> | |
| $Redo <C-S-Z> <A-S-BS> | |
| $SearchWeb | |
| $SelectAll <C-A> | |
| $Undo <C-Z> <A-BS> |
| set ignorecase | |
| set smartcase | |
| set scrolloff=3 " 3 lines above/below cursor when scrolling | |
| " Emulated Plugins | |
| set surround | |
| " set easymotion | |
| set NERDTree | |
| " Copy to system clipboard as well |
| // void operator | |
| void 0 // returns undefined | |
| void (0) // returns undefined | |
| void 'abc' // returns undefined | |
| void {} // returns undefined | |
| void (1 === 1) // returns undefined | |
| void (1 !== 1) // returns undefined | |
| void anyfunction() // returns undefined |
Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Similar analysis:
2026: Not working anymore
Treat git log as a book, exec git next or git prev to checkout the next or the previous commit.
Please check hutusi/git-paging for updates.
| // create a bookmark and use this code as the URL, you can now toggle the css on/off | |
| // thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
| javascript: (function() { | |
| var elements = document.body.getElementsByTagName('*'); | |
| var items = []; | |
| for (var i = 0; i < elements.length; i++) { | |
| if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
| items.push(elements[i]); | |
| } | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- Place in ~/Library/LaunchAgents/ --> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.ldaws.CapslockEsc</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/bin/hidutil</string> |
| /* | |
| * Abstraction.js 2020 Edition | |
| * | |
| * Copyright (c) 2020 "Cowboy" Ben Alman | |
| * Licensed under the MIT license. | |
| * http://benalman.com/about/license/ | |
| */ | |
| let $elseif, $else, $if = state => state ? ( | |
| $elseif = () => () => {}, |