Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Typesetting and Parsing

Basic Typesettings

patorjk: ascii fonts

                                .-.   .-.             /    \                       (   )
  .---.      .--.      .--.    ( __) ( __)            | .`. ;    .--.    ___ .-.    | |_         .--.
 / .-, \   /  _  \    /    \   (''") (''")            | |(___)  /    \  (   )   \  (   __)     /  _  \
(__) ; |  . .' `. ;  |  .-. ;   | |   | |             | |_     |  .-. ;  |  .-. .   | |       . .' `. ;
  .'`  |  | '   | |  |  |(___)  | |   | |            (   __)   | |  | |  | |  | |   | | ___   | '   | |
 / .'| |  _\_`.(___) |  |       | |   | |             | |      | |  | |  | |  | |   | |(   )  _\_`.(___)
| /  | | (   ). '.   |  | ___   | |   | |             | |      | |  | |  | |  | |   | | | |  (   ). '.
; |  ; |  | |  `\ |  |  '(   )  | |   | |             | |      | '  | |  | |  | |   | ' | |   | |  `\ |
' `-'  |  ; '._,' '  '  `-' |   | |   | |             | |      '  `-' /  | |  | |   ' `-' ;   ; '._,' '
`.__.'_.   '.___.'    `.__,'   (___) (___)           (___)      `.__.'  (___)(___)   `.__.     '.___.'

Convert HTML to Markdown

Input:

<div class="paragraph">
  <p>
    Every resource has a state attached, for instance: "resource r1 is started
    on node1". In an HA cluster, such state implies that "resource r1 is stopped
    on all nodes but node1", because an HA cluster must make sure that every
    resource may be started on at most one node. A collection of resource states
    and node states is the cluster state.
  </p>
</div>

Output

## Introduction to HA clusters

The main purpose of an HA cluster is to manage user services. Typical examples of user services are an Apache web server or, say, a MySQL database. From the user’s point of view, the services do some specific and hopefully useful work when ordered to do so. To the cluster, however, they are just things which may be started or stopped. This distinction is important, because the nature of the service is irrelevant to the cluster. In the cluster lingo, the user services are known as resources.

Tables Generator for HTML, Markdown and Text

Just copy from Excel or some webpage and it will give something like this:

+--------------------------------------------------------------------------------------------+
| Name      |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges          |
+--------------------------------------------------------------------------------------------+
| postgres  | postgres | UTF8     | en_AU.UTF-8 | en_AU.UTF-8 |                              |
+--------------------------------------------------------------------------------------------+
| template0 | postgres | UTF8     | en_AU.UTF-8 | en_AU.UTF-8 | =c/postgres               +  |
+--------------------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------------------+
| |          |          |             |             | postgres=CTc/postgres                  |
+--------------------------------------------------------------------------------------------+

ASCII Diagram Editors

These are fucking amazing:

Markdown Editor WebApps

Formatter Playgrounds

https://prettier.io/playground/

https://pandoc.org/try/

https://yapf.now.sh/

https://babeljs.io/repl

https://jsoneditoronline.org/

https://astexplorer.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.