This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| ..., | |
| "scripts": { | |
| "start": "gatsby develop -p 1234 -H 0.0.0.0", | |
| "publish": "npm run _clean && npm run _build && npm run _encrypt && npm run _envDeploy", | |
| "//": "========= PRIVATE SCRIPTS =========", | |
| "_clean": "gatsby clean", | |
| "_build": "gatsby build", | |
| "_encrypt": "npx staticrypt public/index.html P@55W0RD -o public/index.html", | |
| "_deploy": "npx netlify-cli deploy --dir=public --prod", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am j0hnm4r5 on github. | |
| * I am j0hnm4r5 (https://keybase.io/j0hnm4r5) on keybase. | |
| * I have a public key ASCUT26V4jC8eOuLTXej0i86mcDj-i995bUw8tUReGNPUgo | |
| To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* eslint-disable no-restricted-syntax */ | |
| /* eslint-disable unicorn/consistent-function-scoping */ | |
| /* eslint-disable no-await-in-loop */ | |
| const axios = require(`axios`); | |
| const language = require(`@google-cloud/language`); | |
| const client = new language.LanguageServiceClient(); | |
| const createCsvWriter = require(`csv-writer`).createObjectCsvWriter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fetchMachine = Machine({ | |
| id: 'a101', | |
| initial: 'm_1', | |
| states: { | |
| m_1: { | |
| on: { | |
| OKAY: 'm_2', | |
| } | |
| }, | |
| m_2: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;Sliced at: {day} {date} {time} | |
| ;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density} | |
| ;Print time: {print_time} | |
| ;Filament used: {filament_amount}m {filament_weight}g | |
| ;Filament cost: {filament_cost} | |
| G21 ;metric values | |
| G90 ;absolute positioning | |
| M117 Heating extruder & bed... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useEffect, useState } from "react"; | |
| type LetterboxerProps = { | |
| /** The target width for the letterbox in pixels */ | |
| targetWidth: number; | |
| /** The target height for the letterbox in pixels */ | |
| targetHeight: number; | |
| /** Whether the content can scale larger than the target dimensions */ | |
| canScaleLargerThanTarget?: boolean; | |
| /** The background color of the letterbox */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- thrvar.lua — Throttle → continuous pitch via PLAY_BACKGROUND | |
| -- Place in /SCRIPTS/FUNCTIONS/thrvar.lua | |
| -- Add to Special Functions: Switch=<your switch>, Function=Lua, File=thrvar | |
| -- ── Config ──────────────────────────────────────────────────────────────── | |
| local MIN_FREQ = 250 -- Hz when throttle is just above the floor | |
| local MAX_FREQ = 1000 -- Hz at full throttle | |
| local THR_FLOOR = -950 -- throttle values at or below this = silence | |
| -- (-1024 is absolute minimum; -950 leaves a small deadband) | |
| -- ───────────────────────────────────────────────────────────────────────── |
OlderNewer