Skip to content

Instantly share code, notes, and snippets.

@dskvr
dskvr / tailwindcss-hack.css
Last active January 26, 2023 12:00
CSS classes for tailwindcss height/margin-top if extend/spacing is not working (default spacing)
/*TODO: Apply fix? https://github.com/tailwindlabs/tailwindcss/issues/10418*/
.mt-4 { margin-top: 1rem }
.mt-5 { margin-top: 1.25rem }
.mt-6 { margin-top: 1.5rem }
.mt-7 { margin-top: 1.75rem }
.mt-9 { margin-top: 2.25rem }
.mt-11 { margin-top: 2.75rem }
.mt-13 { margin-top: 3.25rem }
.mt-14 { margin-top: 3.5rem }
.mt-15 { margin-top: 3.75rem }
@dskvr
dskvr / event
Last active December 23, 2022 08:21
nostr-rs-relay will not parse this event, event validates and the signature validates against the event/pubkey. The event ids exist on the relay where the event is published. These are events in in the 1000-10000 kind range.
{
content: 'updating relays',
kind: 5,
created_at: 1671842669,
tags: [
[
'e',
'b7584184b0d47adb7452ac18ccc4071635757ce3c4f530205b8be42d7a6b4ffd'
],
[
{
"$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 June 30, 2020 12:34
act + superlinter error
[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 March 21, 2020 05:56
Put.io 2.7.0 OAS 3.0 Specification
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:
User gid: 1005
-------------------------------------
@dskvr
dskvr / install.js
Created January 16, 2020 16:29
Javascript websocket client boilerplate for EOSIO/eos' nodeos' state_history_plugin.cpp Websocket Interface
/*Install these dependencies*/
npm install node-fetch zlib commander ws [email protected]
@dskvr
dskvr / C++ Serializer (untested)
Last active September 30, 2019 16:42
(experimental) EOSIO Transaction Schema
// 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
{
"type": "object",
"additionalProperties": false,
"required": [
"version",
"types",
"structs",
"actions",
"tables",
"abi_extensions",
@dskvr
dskvr / oas.yaml
Last active November 11, 2022 09:19
EOSIO OAS 3.0 File - Alpha 0.0.1 (bundled from json-schemas)
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: