Skip to content

Instantly share code, notes, and snippets.

View zcstarr's full-sized avatar

Zane Starr zcstarr

View GitHub Profile
@zcstarr
zcstarr / stringified-openrpc.json
Last active September 14, 2022 18:35
one line petstore.json
'{"openrpc":"1.0.0-rc1","info":{"version":"1.0.0","title":"Petstore","license":{"name":"MIT"}},"servers":[{"url":"http://localhost:8080"}],"methods":[{"name":"list_pets","summary":"List all pets","tags":[{"name":"pets"}],"params":[{"name":"limit","description":"How many items to return at one time (max 100)","required":false,"schema":{"type":"integer","minimum":1}}],"result":{"name":"pets","description":"A paged array of pets","schema":{"$ref":"#/components/schemas/Pets"}},"errors":[{"code":100,"message":"pets busy"}],"examples":[{"name":"listPetExample","description":"List pet example","params":[{"name":"limit","value":1}],"result":{"name":"listPetResultExample","value":[{"id":7,"name":"fluffy","tag":"poodle"}]}}]},{"name":"create_pet","summary":"Create a pet","tags":[{"name":"pets"}],"params":[{"name":"newPetName","description":"Name of pet to create","required":true,"schema":{"type":"string"}},{"name":"newPetTag","description":"Pet tag to create","schema":{"type":"string"}}],"examples":[{"name":"createPetE

e3slmfmuti

@zcstarr
zcstarr / near-keystore-config-schema.json
Created April 29, 2021 17:02
Near Keystore Json Configuration Schema
{
"$id": "near-keystore-config-schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Near JSON Keystore Configuration",
"type": "object",
"$ref": "#/definitions/jsonKeystoreConfig",
"definitions": {
"jsonKeystoreConfig": {
"title": "jsonKeystoreConfig",
"type": "object",
@zcstarr
zcstarr / readme.md
Created June 21, 2019 00:45
Jade Service Runner Links

Get Started With

npm install -g @etclabscore/jade-service-runner@latest
git clone git@github.com:zcstarr/jade-service-runner-example.git

Playground:

https://playground.open-rpc.org

version: '2'
services:
db:
environment:
MYSQL_DATABASE: "test"
MYSQL_USER: "test"
MYSQL_PASSWORD: "test"
MYSQL_ROOT_PASSWORD: "test"
ports:
- "3306:3306"
@zcstarr
zcstarr / Main.html
Created May 24, 2015 23:12
Quick fix for elm-lang example Stamper Gist
<html>
<head>
<title>Embedding Elm in HTML!</title>
<script type="text/javascript" src="elm.js"></script>
</head>
<body>
<h1>Stamper</h1>
<div id="stamper" style="width:50%; height:400px;"></div>