Skip to content

Instantly share code, notes, and snippets.

@keithweaver
keithweaver / swagger.yml
Last active June 19, 2023 18:17
Woo Commerce API as Swagger
openapi: 3.0.0
info:
title: WooCommerce REST API
version: 1.0.0
servers:
- url: http://{{baseurl}}
components:
securitySchemes:
basicAuth:
type: http
{
"swagger": "2.0",
"info": {
"title": "API",
"contact": {}
},
"host": "http://localhost:9000",
"paths": {
"/basics/cars/downstream": {
"get": {
@keithweaver
keithweaver / upstream_swagger.json
Created June 13, 2023 18:01
Upstream Basic V1
{
"swagger": "2.0",
"info": {
"title": "API",
"contact": {}
},
"host": "http://localhost:9000",
"paths": {
"/basics/cars/upstream": {
"get": {
{
"isLive": true,
"isDeprecated": false,
"splashScreenMessage": "",
"menuTopMessage": "",
"minimumGameVersion": 1
}
@keithweaver
keithweaver / status.json
Created July 17, 2019 20:46
The status of the Local Network application.
{
"version": 1,
"isLive": true,
"message": "The application is still live, check keithweaver.ca"
}
@keithweaver
keithweaver / whn.json
Last active April 9, 2020 19:07
Home
{"host_id": "foobar", "keiths_windows_desktop": "192.168.2.11", "corenetwork": "192.168.2.34", "dnsapi": "192.168.2.34"}
@keithweaver
keithweaver / with-pre-record-step1.py
Created December 16, 2018 15:43
Sample code used in http://localhost:3000/docs/tutorial/smart-dashcam
def delete_image(image_object):
# TODO
print ('delete_image')
def process_image(image_object):
# TODO
print ('process_image')
def get_image_from_path(image_path):
print ('get_image_from_path')
@keithweaver
keithweaver / with-pi-cam-step1.py
Last active December 16, 2018 15:41
Sample code used in http://localhost:3000/docs/tutorial/smart-dashcam
def delete_image(image_object):
# TODO
print ('delete_image')
def process_image(image_object):
# TODO
print ('process_image')
def take_image_from_pi_cam():
print ('insert_take_image')
@keithweaver
keithweaver / index.json
Last active July 13, 2018 11:10
temp 2
{
"reservedWords": ["default", "index","custom"],
"themes": {
"default": {
"json": "https://gist.githubusercontent.com/keithweaver/6b87e9f0bf559c81d8201f3e4b33b262/raw/230c89c855338aee6ae865bd575d6421923fe25a/default.json",
"css": "../themes/default.css"
},
"custom": {}
}
}
{
"if": {
"classNames": [ "demo" ]
}
}