Platform
Resources
Pricing
Sign in
Contact us
Andrew Wooldridge
📜JavaScript developer. 🐲RPG fan. 📚Storyteller and 🕹game developer. 👨Father and Husband.
Workspace
Fork
Published
2 collections
By
Andrew Wooldridge
Edited
Dec 27, 2020
1 star
Random Bits
Kaboom and Tags
RPG Tiles 🐉
Playing with yield
My Footer
How to: get around flat array issue in Observable Tables
Hello, Slide-Element
Hello, tsParticles
Kaboom - dynamic values
Hello Lit.dev
P5 js Sketch learnings
Run Some Code on Button Click
My RPG Persona
3D Pixel Art with three-elements
Random Squares
Hello, Sticky Headers
Walking Dragon SVG
Hello, Haunted!
Scrubber Test
Hello, Fabric js
Hello, Mithril JS
Hello, Bracery
Executable JS FileAttachment Test
Tiny Tools viewer
Hello, Handel
Data from Google Spreadsheets test 001
Testing fetch with runkit
Hello TheCatAPI
Hello Chuck Norris Jokes API
Hello Count API
Hello Agify.io
Hello Kontra
Hello, maze generator
Testing ecsyjs
Monster Icon Mix Up
Testing Require and Import with GitHub JS
Skypack Pixijs
Testing Toggle Switch
Storytelling test 001
Testing button click
Testing a local image
Testing Imports
Testing imports
Also listed in…
JavaScript Tips
Insert cell
md
`# Testing fetch with runkit`
Insert cell
md
`Trying out creating a service from Runkit and deploying it here [https://runkit.com/triptych/poop](https://runkit.com/triptych/poop)`
Insert cell
await
fetch
(
"https://poop-924vhbtx5bx3.runkit.sh/"
)
.
then
(
(
result
)
=>
{
result
.
text
(
)
}
)
Insert cell
poop_url
=
"https://runkit.io/triptych/poop/branches/master"
Insert cell
poopData
=
{
const
response
=
await
fetch
(
url
)
;
return
{
ok
:
response
.
ok
,
body
:
await
response
.
text
(
)
}
;
}
Insert cell
url
=
`https://cors-anywhere.herokuapp.com/${
poop_url
}`
Insert cell
html
`The response is ${
poopData
.
body
}`
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Listed in...
JavaScript Tips
Andrew Wooldridge
Random Bits
Andrew Wooldridge
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
poop_url
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
poopData
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
url
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML