Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kaivongcom/94cb52dea2498adda5fddbb8142a4f8f to your computer and use it in GitHub Desktop.
Save kaivongcom/94cb52dea2498adda5fddbb8142a4f8f to your computer and use it in GitHub Desktop.
example of markdown script
require('/Users/USERNAME/Desktop/projects/lib/hypertext_from_markdown/main.rb')
PAGE_DATA = 'projects/data/pico-hotkeys.txt'
puts ; puts 'before:'
puts hotkey_data = open(PAGE_DATA).read
puts ; puts 'after:'
hotkey_data.each_line do |data_line|
p HyperTextFromMarkdown.new(data_line.strip, {}).results
end
## PICO
| # | hotkey | description |
| ## | ^F | move Forward a character. |
| ## | ^B | move Backward a character.
| ## | ^P | move to the Previous line
| ## | ^N | move to the Next line
| ## | ^A | move to the beginning of the current line
| ## | ^E | move to the End of the current line
| ## | ^V | move forward a page of text
| ## | ^Y | move backward a page of text.
@kaivongcom
Copy link
Author

consider own pico, nano data texts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment