Skip to content

Instantly share code, notes, and snippets.

View GarthDB's full-sized avatar
🕸️
never updating status

Garth Braithwaite GarthDB

🕸️
never updating status
View GitHub Profile
@GarthDB
GarthDB / AudioControl.yaml
Last active February 1, 2024 03:40
Blackmagic Camera Control openAPI REST
openapi: 3.0.1
info:
title: Audio Control API
description: API For controlling audio on Blackmagic Design Cameras
version: 0.1.0
servers:
- url: /control/api/v1
paths:
/audio/channel/{channelIndex}/input:
get:
@GarthDB
GarthDB / color.json
Created September 26, 2023 17:02
Token Types and Object Names
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/color.json",
"title": "Color",
"description": "Color token schema.",
"type": "object",
"allOf": [
{
"$ref": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/token.json"
}
@GarthDB
GarthDB / repositories.json
Created September 5, 2023 22:15
Repository list for Hubitat Package Manager
{
"author": "garthdb",
"gitHubUrl": "https://github.com/garthdb",
"packages": [
{
"id": "bc345262-141f-4145-bec1-a56c4788870c",
"name": "Unifi Access",
"category": "Control",
"location": "https://raw.githubusercontent.com/GarthDB/hubitat-unifi-access/main/packageManifest.json",
"description": "Control Unifi Access lock via local API",
@GarthDB
GarthDB / 01-current-structure.json
Last active May 11, 2023 16:25
Express overrides
{
"corner-radius-75": {
"sets": {
"spectrum": {
"sets": {
"desktop": {
"value": "2px"
},
"mobile": {
"value": "2px"
@GarthDB
GarthDB / css.md
Last active April 20, 2023 20:06
This is a collection of icons used in the docs for the Spectrum CSS project.
Arguments:
/Users/garthdb/.asdf/installs/nodejs/14.19.3/bin/node /Users/garthdb/.yarn/bin/yarn.js --frozen-lockfile
PATH:
/Users/garthdb/.asdf/plugins/nodejs/shims:/Users/garthdb/.asdf/installs/nodejs/14.19.3/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/garthdb/.yarn/bin:/Users/garthdb/.config/yarn/global/node_modules/.bin:/Users/garthdb/.asdf/shims:/usr/local/Cellar/asdf/0.10.2/libexec/bin:./bin:/usr/local/bin:/usr/local/sbin:/Users/garthdb/.dotfiles/bin:/Users/garthdb/.rbenv/shims:/usr/local/git/bin:/Applications/Postgres93.app/Contents/MacOS/bin:/Users/garthdb/Code/go/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/garthdb/.rvm/bin:/Users/garthdb/.rvm/bin
Yarn version:
1.22.19
Node version:
~/Spectrum/spectrum-css vrt-reference 6m 42s
❯ npm run backstop:docker:test
> spectrum-css-monorepo@0.0.0 backstop:docker:test /Users/garthdb/Spectrum/spectrum-css
> backstop test --docker --config=backstop_data/backstop_test.js --env=local
BackstopJS v5.0.4
Loading config: /Users/garthdb/Spectrum/spectrum-css/backstop_data/backstop_test.js
COMMAND | Executing core for "test"
@GarthDB
GarthDB / rework-script.js
Last active September 18, 2019 22:45
Rework Metadata
const path = require('path');
const fs = require('fs');
const yaml = require('js-yaml');
const order = [
'id',
'name',
'dnaStatus',
'status',
'ignoreDNA',
# Run npm install --dev mocha@5.1.1 to resolve 3 vulnerabilities
SEMVER WARNING: Recommended action is a potentially breaking change
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ minimatch │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ mocha [dev] │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ mocha > glob > minimatch │
import test from 'ava';
class Basic {
constructor(str) {
this.str = str;
}
}
test('should match object and typed object', t => {
const basic = new Basic('tada');