- Use
curlto get the JSON response for the latest release - Use
grepto find the line containing file URL - Use
cutandtrto extract the URL - Use
wgetto download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \Vim has two modes insertion mode and command mode. The editor begins in command mode, where the cursor movement and text deletion and pasting occur. Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing :q!). Most commands execute as soon as you type them except for "colon" commands which execute when you press the ruturn key.
:xExit, saving changes:qExit as long as there have been no changesZZExit and save changes if any have been made:q!Exit and ignore any changes
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
| var revealJS = function(s) { | |
| var hexAlphabet = Array.apply(null, { | |
| length: 10 | |
| }).map(Number.call, Number).concat('abcdef'.split('')); | |
| var codes = [8289, 8204, 8205, 8206, 8207, 8234, 8235, 8236, 8237, 8238, 8298, 8299, 8300, 8301, 8302, 8303]; | |
| return s.match(/(.{4})/g).map(function(b) { | |
| return b.split('').map(function(i) { | |
| return hexAlphabet[codes.indexOf(i.charCodeAt())] | |
| }) |