Skip to content

Instantly share code, notes, and snippets.

@zachleat
Last active March 7, 2021 02:21
Show Gist options
  • Save zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac to your computer and use it in GitHub Desktop.
Save zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac to your computer and use it in GitHub Desktop.

Revisions

  1. zachleat revised this gist Mar 7, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion queuecode.js
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,8 @@ Usage:
    - Use the `format` query param to set the syntax. Not required if `url` ends in .html .js or .css
    - Use the `autoplay` query param to show all of the code.
    - Use `autoplay=1` to reveal the code progressively (1 is the slowest speed, higher numbers will type faster)
    - Press ` to skip to the end and show all of the code.
    - Press ` to skip to the end and show all of the code.
    - Use the `highlightonly` query param to skip all of this nonsense and just show the plain syntax highlighted code.
    Project source code: https://github.com/zachleat/queue-code
    */
  2. zachleat revised this gist Mar 7, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion queuecode.js
    Original file line number Diff line number Diff line change
    @@ -19,4 +19,4 @@ Project source code: https://github.com/zachleat/queue-code
    alert("Hello world.");

    // The default README gist `url`
    location = "https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac/raw/queuecode.js";
    location = "?url=https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac/raw/queuecode.js";
  3. zachleat revised this gist Mar 7, 2021. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions queuecode.js
    Original file line number Diff line number Diff line change
    @@ -13,12 +13,10 @@ Usage:
    - Use `autoplay=1` to reveal the code progressively (1 is the slowest speed, higher numbers will type faster)
    - Press ` to skip to the end and show all of the code.
    This default README `url` lives at
    https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac/raw/queuecode.js
    Project source code: https://github.com/zachleat/queue-code
    */

    alert("Hello world.");

    // View project source code
    location = "https://github.com/zachleat/queue-code";
    // The default README gist `url`
    location = "https://gist.githubusercontent.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac/raw/queuecode.js";
  4. zachleat revised this gist Mar 7, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions queuecode.js
    Original file line number Diff line number Diff line change
    @@ -6,10 +6,10 @@ https://queuecode.zachleat.dev/
    Usage:
    - Press any key to reveal the next character of source code. Use delete to hide characters.
    - Use the `url` query parameter to point to a different source code file.
    - Use the `url` query param to point to a different source code file.
    e.g. https://queuecode.zachleat.dev/?url=https://gist.github.com/zachleat/a7393810acf7890e6bef6a34eaa7b78c/raw/smoothscroll.css
    - Use the `format` query parameter to set the syntax. Not required if the url ends in html, js, or css.
    - Use the `autoplay` query parameter to show all of the code.
    - Use the `format` query param to set the syntax. Not required if `url` ends in .html .js or .css
    - Use the `autoplay` query param to show all of the code.
    - Use `autoplay=1` to reveal the code progressively (1 is the slowest speed, higher numbers will type faster)
    - Press ` to skip to the end and show all of the code.
  5. zachleat revised this gist Mar 6, 2021. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions queuecode.js
    Original file line number Diff line number Diff line change
    @@ -16,8 +16,9 @@ Usage:
    This default README `url` lives at
    https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac/raw/queuecode.js
    Source code for this project is available at: https://github.com/zachleat/queue-code
    */

    alert("Hello world.");
    alert("Hello world.");

    // View project source code
    location = "https://github.com/zachleat/queue-code";
  6. zachleat revised this gist Mar 6, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion queuecode.js
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,6 @@ https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac/raw
    Source code for this project is available at: https://github.com/zachleat/queue-code
    */
    */

    alert("Hello world.");
  7. zachleat revised this gist Mar 6, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions queuecode.js
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,5 @@ This default README `url` lives at
    https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac/raw/queuecode.js
    Source code for this project is available at: https://github.com/zachleat/queue-code
    */
  8. zachleat revised this gist Mar 6, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions queuecode.js
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,5 @@ Usage:
    This default README `url` lives at
    https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac/raw/queuecode.js
    Source code for this project is available at: https://github.com/zachleat/queue-code
    */
  9. zachleat revised this gist Mar 6, 2021. 1 changed file with 18 additions and 12 deletions.
    30 changes: 18 additions & 12 deletions queuecode.js
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,19 @@
    /*
    * Queue Code
    * Press any key to reveal a character of source code. You can delete characters too.
    * Change the `url` parameter to point to a different source code file.
    * Use the `format` parameter if the file extension isn’t there or obvious enough.
    * Use `autoplay` to show all of the code.
    * Use `autoplay=1` to automatically type the code at the slowest speed. Use a higher number to auto-type faster.
    * Use ` to skip to the end and show all of the code.
    *
    * https://queuecode.zachleat.dev/
    * This document lives at https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac
    */
    Queue Code
    https://queuecode.zachleat.dev/
    Usage:
    - Press any key to reveal the next character of source code. Use delete to hide characters.
    - Use the `url` query parameter to point to a different source code file.
    e.g. https://queuecode.zachleat.dev/?url=https://gist.github.com/zachleat/a7393810acf7890e6bef6a34eaa7b78c/raw/smoothscroll.css
    - Use the `format` query parameter to set the syntax. Not required if the url ends in html, js, or css.
    - Use the `autoplay` query parameter to show all of the code.
    - Use `autoplay=1` to reveal the code progressively (1 is the slowest speed, higher numbers will type faster)
    - Press ` to skip to the end and show all of the code.
    This default README `url` lives at
    https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac/raw/queuecode.js
    */
  10. zachleat revised this gist Mar 6, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion queuecode.js
    Original file line number Diff line number Diff line change
    @@ -4,8 +4,10 @@
    * Press any key to reveal a character of source code. You can delete characters too.
    * Change the `url` parameter to point to a different source code file.
    * Use the `format` parameter if the file extension isn’t there or obvious enough.
    * Use `show=true` to show all the code from the start. Remove `show=true` if you want to “type” it yourself.
    * Use `autoplay` to show all of the code.
    * Use `autoplay=1` to automatically type the code at the slowest speed. Use a higher number to auto-type faster.
    * Use ` to skip to the end and show all of the code.
    *
    * https://queuecode.zachleat.dev/
    * This document lives at https://gist.github.com/zachleat/542f1d15c2061fc3cf4c0bc30c3b9bac
    */
  11. zachleat created this gist Mar 6, 2021.
    11 changes: 11 additions & 0 deletions queuecode.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    /*
    * Queue Code
    * Press any key to reveal a character of source code. You can delete characters too.
    * Change the `url` parameter to point to a different source code file.
    * Use the `format` parameter if the file extension isn’t there or obvious enough.
    * Use `show=true` to show all the code from the start. Remove `show=true` if you want to “type” it yourself.
    * Use ` to skip to the end and show all of the code.
    *
    * https://queuecode.zachleat.dev/
    */