Skip to content

Instantly share code, notes, and snippets.

@conoro
Last active August 5, 2021 16:08
Show Gist options
  • Save conoro/262f91463c153273f034f927b2b7640e to your computer and use it in GitHub Desktop.
Save conoro/262f91463c153273f034f927b2b7640e to your computer and use it in GitHub Desktop.
Using GIST as a simple JSON DB
[
{
"color": "red",
"value": "#f00"
},
{
"color": "green",
"value": "#0f0"
},
{
"color": "blue",
"value": "#00f"
},
{
"color": "cyan",
"value": "#0ff"
},
{
"color": "magenta",
"value": "#f0f"
},
{
"color": "yellow",
"value": "#ff0"
},
{
"color": "black",
"value": "#000"
}
]
@conoro
Copy link
Author

conoro commented Aug 5, 2021

Access with correct headers via https://gistcdn.githack.com/conoro/262f91463c153273f034f927b2b7640e/raw/92bb9c586dc71b17d154a89c4418a9ef51edc15e/exampledb.json

So a mostly read-on JSON source that I can hand-edit in GitHub and access remotely elsewhere. Handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment