Skip to content

Instantly share code, notes, and snippets.

View adaptive-shield-matrix's full-sized avatar

Adaptive Shield Matrix adaptive-shield-matrix

View GitHub Profile
@adaptive-shield-matrix
adaptive-shield-matrix / +page.svelte
Last active August 2, 2023 11:14
svelte: creating generic/dynamic svelte table by generating svelte components
<script lang="ts">
import Table2 from "./Table2.svelte"
import { generateData } from "./generateData"
const { rows, columns } = generateData()
</script>
<Table2 {rows} {columns} />

Test 1

some text...

@startuml OAuth basic flow with auth code and access token
skinparam monochrome true
skinparam defaultFontSize 14
' plantuml: https://plantuml.com/sequence-diagram
' source: https://gist.github.com/hrchu/d88efb56e72534a1233d16f36eb3e3e9
title OAuth basic flow with auth code and access token
actor "You/Browser" as b
participant "slack.com" as s
// https://github.com/openapi-contrib/openapi-schema-to-json-schema#readme
const toJsonSchema = require("@openapi-contrib/openapi-schema-to-json-schema")
const chalk = require("chalk")
const fs = require("fs")
const refParser = require("json-schema-ref-parser")
const myArgs = process.argv.slice(2)
const openApiFile = myArgs[0]
const destDir = myArgs[1]