Skip to content

Instantly share code, notes, and snippets.

View gist:5457b0a1513bd451053f0e09298752df
{
"$id": "https://example.com/person.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Person",
"type": "object",
"properties": {
"firstName": {
"type": "string",
"description": "The person's first name."
},
@dskvr
dskvr / log
Created Jun 30, 2020
act + superlinter error
View log
[lint/LINT TESTING] ⭐ Run Lint Code Base
DEBU[0002] Loading slug from git directory '***'
DEBU[0002] Found revision: 44906d929be63b6dee1da1787f8e4efa237f89cf
DEBU[0002] Loading revision from git directory '***'
DEBU[0002] Found revision: 44906d929be63b6dee1da1787f8e4efa237f89cf
DEBU[0002] HEAD points to '44906d929be63b6dee1da1787f8e4efa237f89cf'
DEBU[0002] HEAD matches refs/heads/master
DEBU[0002] using github ref: refs/heads/master
DEBU[0002] context env => map[]
DEBU[0002] context env => map[GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:***/*** GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:44906d929be63b6dee1da1787f8e4efa237f89cf GITHUB_TOKEN: GITHUB_WORKFLOW:lint GITHUB_WORKSPACE:/github/workspace HOME:/github/home VALIDATE_ALL_CODEBASE:true]
@dskvr
dskvr / oas.yml
Created Mar 21, 2020
Put.io 2.7.0 OAS 3.0 Specification
View oas.yml
openapi: 3.0.2
info:
version: "2.7.0"
title: Put.io
description: |
Start by registering your application and obtaining your API credentials from [OAuth Apps page](https://app.put.io/settings/account/oauth/apps).
The API is CORS enabled. All API responses include following header:
View gist:272b4661c6a22f414729791344056d18
User gid: 1005
-------------------------------------
@dskvr
dskvr / install.js
Created Jan 16, 2020
Javascript websocket client boilerplate for EOSIO/eos' nodeos' state_history_plugin.cpp Websocket Interface
View install.js
/*Install these dependencies*/
npm install node-fetch zlib commander ws eosjs@20.0.0-beta
@dskvr
dskvr / C++ Serializer (untested)
Last active Sep 30, 2019
(experimental) EOSIO Transaction Schema
View C++ Serializer (untested)
// To parse this JSON data, first install
//
// Boost http://www.boost.org
// json.hpp https://github.com/nlohmann/json
//
// Then include this file, and then do
//
// Coordinate data = nlohmann::json::parse(jsonString);
#pragma once
View gist:711db3578f1308df8e5160ef6111ace7
{
"type": "object",
"additionalProperties": false,
"required": [
"version",
"types",
"structs",
"actions",
"tables",
"abi_extensions",
@dskvr
dskvr / oas.yaml
Last active Feb 18, 2019
EOSIO OAS 3.0 File - Alpha 0.0.1 (bundled from json-schemas)
View oas.yaml
openapi: 3.0.0
info:
title: Chain API
version: 1.0.0
license:
name: MIT
url: 'https://opensource.org/licenses/MIT'
contact:
url: 'https://eos.io'
tags:
@dskvr
dskvr / json-schema-consumed-by-oag.swift
Last active Feb 10, 2019
Comparing openapi-generator to quicktype for models generation
View json-schema-consumed-by-oag.swift
/* TransactionVariant */
anyOf:
- $ref: 'TransactionHash.yaml'
- $ref: 'PackedTransaction.yaml'
/* TransactionHash */
type: string
/*PackedTransaction*/
type: object
@dskvr
dskvr / .babelrc
Last active Dec 23, 2018
Using v20.0.0-beta3 with nodejs
View .babelrc
{
"presets": ["@babel/preset-env"]
}