Skip to content

Instantly share code, notes, and snippets.

@opn
opn / index.html
Created July 29, 2021 13:33
The Fetch API Basic Syntax
Check the console.
@opn
opn / demo-css-tag-cloud.markdown
Created July 26, 2021 16:37
Demo: CSS tag cloud
@opn
opn / podcast.json
Created November 3, 2020 13:48
Podcast JSON Feed example
{
"version": "https://jsonfeed.org/version/1",
"user_comment": "This is a podcast feed. You can add this feed to your podcast client using the following URL: http://therecord.co/feed.json",
"title": "The Record",
"home_page_url": "http://therecord.co/",
"feed_url": "http://therecord.co/feed.json",
"items": [
{
"id": "http://therecord.co/chris-parrish",
"title": "Special #1 - Chris Parrish",
/root/.nvm/versions/node/v6.11.3/lib/node_modules/wiki/node_modules/ws/lib/websocket.js:348
...options
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (/root/.nvm/versions/node/v6.11.3/lib/node_modules/wiki/node_modules/coffeescript/lib/coffeescript/register.js:53:36)
@opn
opn / livecode.localtest.me.caddyfile
Created April 17, 2018 17:32
livecode.localtest.me.caddyfile
https://livecode.localtest.me,
http://livecode.localtest.me {
gzip
tls self_signed
proxy / livecode:80 {
transparent
}
}
@opn
opn / commons server
Created April 17, 2018 17:31
A basic docker-compose.override.yml for creating a commons server container layer for livecode server
version: "2.2"
services:
proxy:
volumes:
- "./image-transporter.localtest.me.caddyfile:/etc/proxy.d/image-transporter.localtest.me.caddyfile"
- "./livecode.localtest.me.caddyfile:/etc/proxy.d/livecode.localtest.me.caddyfile"
images:
image: dobbs/image-transporter
init: true
@opn
opn / rest.livecode.world controller: youtube.lc
Created December 1, 2017 13:54
This is Revigniter controller 'youtube.lc' from the domain 'rest.livecode.world'.
<?rev
put "index,recentFirst,recentBullets,oldestFirst,recentMarkdown,oldestBullets,fetchAll,fetchThumb,transportAgain" into gControllerHandlers
startUsingLibraries
on index
fedwiki_DeconstructDroppedURL $_POST_RAW, droppedURL, droppedHtml
put youtube_ParseDropUrl (droppedURL) into pageJSON
fedwiki_ReturnJSON pageJSON
end index
@opn
opn / rest.livecode.world controller: echo.lc
Last active November 17, 2017 20:39
This is Revigniter controller 'echo.lc' from the domain 'rest.livecode.world'.
<?lc
/* = DESCRIPTION =
--
The echo.lc controller can be found at: echo.lc
Here is some test help
Below we declare the global variables gControllerHandlers AND gData
And put the public method names that we wish to expose into gControllerHandlers
--
*/
@opn
opn / rest.livecode.world controller: mediawiki.lc
Last active November 17, 2017 21:13
This is Revigniter controller 'mediawiki.lc' from the domain 'rest.livecode.world'.
<?lc
/* = DESCRIPTION =
--
The mediawiki.lc controller can be found at: mediawiki.lc
Here is some test help
Below we declare the global variables gControllerHandlers AND gData
And put the public method names that we wish to expose into gControllerHandlers
--
*/
@opn
opn / rest.livecode.world controller: map.lc
Last active November 11, 2017 18:09
This the is Revigniter controller 'map.lc' from the domain 'rest.livecode.world'.
<?lc
/* = DESCRIPTION =
--
The map.lc controller can be found at: map.lc
Here is some test help
Below we declare the global variables gControllerHandlers AND gData
And put the public method names that we wish to expose into gControllerHandlers
--
*/