- Create repo on GitHub where you'll put your files.
- Use jsDeliver or statically to get your assets.
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
| try { | |
| console.log(balanced('()')); | |
| console.log(balanced('(x()x)')); | |
| console.log(balanced('(this "))))")')); | |
| console.log(balanced('(multiple) (expressions) (in) (one) (string)')); | |
| console.log(balanced('(x()x')); | |
| console.log(balanced('{foo [bar]}')); | |
| console.log(balanced('(x([)]x')); | |
| } catch (e) { | |
| console.log(e.message); |
| <?php | |
| // Copyright (C) Jakub T. Jankiewicz | |
| // this code is released to Public Domain with CC0 license | |
| // created with the help from ChatGPT | |
| $default_country = [ | |
| 'name' => 'Poland', | |
| 'code' => 'PL' | |
| ]; |
| console.log(parse(`(define (square x) | |
| "Function calculate square of a number" | |
| (* x x))`)[0].toString()); | |
| // ==> (define (square x) "funkcja square wywołanie (square 10) zwraca 100" (* x x)) |
| <!DOCTYPE HTML> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="Content-Security-Policy" content="script-src code.jquery.com 'nonce-2726c7f26c'; style-src 'nonce-2726c7f26c'" /> | |
| <title></title> | |
| <meta name="Description" content=""/> | |
| <link rel="shortcut icon" href=""/> | |
| <!--[if IE]> | |
| <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> |
| #!/usr/bin/env python | |
| from smtplib import SMTP_SSL as SMTP | |
| from email.mime.text import MIMEText | |
| from optparse import OptionParser | |
| from email.Utils import formatdate | |
| import sys | |
| if __name__ == '__main__': |
| <!DOCTYPE HTML> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| </head> | |
| <body> | |
| <button id="sse_start" disabled>Start</button> | |
| <button id="sse_stop" disabled>Stop</button> | |
| <pre id="output">Loading Service Worker</pre> | |
| <script> |
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
| /**@license | |
| * ___ ___ _____ __ __ _ _____ _ _ | |
| * / __|_ _|_ _| \ \ / /__| |__ |_ _|__ _ _ _ __ (_)_ _ __ _| | | |
| * | (_ || | | | \ \/\/ / -_) '_ \ | |/ -_) '_| ' \| | ' \/ _` | | | |
| * \___|___| |_| \_/\_/\___|_.__/ |_|\___|_| |_|_|_|_|_||_\__,_|_| | |
| * | |
| * this is service worker and it's part of GIT Web terminal | |
| * | |
| * Copyright (c) 2018 Jakub Jankiewicz <http://jcubic.pl/me> | |
| * Released under the MIT license |
| javascript:(function(next) { | |
| /** | |
| * Bookmarklet that will create terminal with ANSI rendering | |
| * on 16colo.rs website (individual ANSI file) | |
| * | |
| * Copyright (C) Jakub T. Jankiewicz <https://jcubic.pl> | |
| * Released under MIT license | |
| */ | |
| if (window.jQuery) { | |
| return next(window.jQuery); |
| // --------------------------------------------------------------------------- | |
| // :: execute callback function when shiny output element is modified | |
| // :: the callback can be called multiple times if you use option onTime: false | |
| // :: you can also use check option with function that will be check if | |
| // :: before executing callback and removing observer | |
| // --------------------------------------------------------------------------- | |
| $.fn.onRender = function(callback, options) { | |
| if (this.length === 0) { | |
| throw new Error("Element doesn't exists! Try to wait until it's added to DOM."); | |
| } |