View midi-merge.c
/* | |
* MIDI Merge for ATmega4809 | |
* Copyright (c) 2020 Benjamin Alman | |
* MIT License | |
*/ | |
#include <MIDI.h> | |
MIDI_CREATE_INSTANCE(HardwareSerial, Serial, midi_1); | |
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, midi_2); |
View .gitignore
# Adapted from: | |
# https://github.com/github/gitignore/blob/master/KiCad.gitignore | |
# For PCBs designed using KiCad: http://www.kicad-pcb.org/ | |
# Format documentation: http://kicad-pcb.org/help/file-formats/ | |
# Temporary files | |
*.000 | |
*.bak | |
*.bck |
View bom.ini
; https://github.com/SchrodingersGat/KiBoM | |
; | |
[BOM_OPTIONS] | |
; General BoM options here | |
; If 'ignore_dnf' option is set to 1, rows that are not to be fitted on the PCB will not be written to the BoM file | |
ignore_dnf = 1 | |
; If 'html_generate_dnf' option is set to 1, also generate a list of components not fitted on the PCB (HTML only) | |
html_generate_dnf = 1 | |
; If 'use_alt' option is set to 1, grouped references will be printed in the alternate compressed style eg: R1-R7,R18 | |
use_alt = 0 |
View unicornhd-animated-gif.py
#!/usr/bin/env python3 | |
''' | |
See | |
https://github.com/HimbeersaftLP/unicorn-hat-hd-gif-displayer/blob/master/unicorn-gif.py | |
''' | |
import signal | |
import time | |
from sys import exit |
View animate-robots.lua
-- https://obsproject.com/docs/scripting.html | |
local obs = obslua | |
-- Globals | |
local function log(name, msg) | |
if msg ~= nil then | |
msg = " > " .. tostring(msg) | |
else | |
msg = "" |
View usage.js
const MyComponent = () => { | |
const [count, setCount] = useState(0) | |
useLogChanges('MyComponent', { count, setCount }) | |
return ( | |
<> | |
<button onClick={setCount}>Increment counter</button> | |
<div>{count}</div> | |
</> |
View abstraction-2020.js
/* | |
* Abstraction.js 2020 Edition | |
* | |
* Copyright (c) 2020 "Cowboy" Ben Alman | |
* Licensed under the MIT license. | |
* http://benalman.com/about/license/ | |
*/ | |
let $elseif, $else, $if = state => state ? ( | |
$elseif = () => () => {}, |
View CB_UpdateAssistMacro.lua
-- Copyright (c) 2019 "Cowboy" Ben Alman | |
-- Licensed under the MIT license | |
local function p(msg) | |
print("[CB_UpdateAssistMacro] " .. msg) | |
end | |
local function err(msg) | |
p("ERROR: " .. msg) | |
end |
View CB_VendorAutoBuy.lua
-- Copyright (c) 2019 "Cowboy" Ben Alman | |
-- Licensed under the MIT license | |
local frameName = "CB_VENDOR_AUTO_BUY_FRAME" | |
if not _G[frameName] then | |
_G[frameName] = CreateFrame("Frame") | |
_G[frameName]:RegisterEvent("MERCHANT_SHOW") | |
end | |
local function Set(list) |
View cowboy-macros-cache.txt
VER 3 0000000001000006 "#Arcane Shot" "INV_MISC_QUESTIONMARK" | |
#showtooltip | |
/cast [@mouseover,harm,nodead][@target,harm,nodead][@pettarget] Arcane Shot | |
/cast [@pettarget][@target] !Auto Shot | |
END | |
VER 3 0000000001000004 "#Concussive Shot" "INV_MISC_QUESTIONMARK" | |
#showtooltip | |
/cast [@mouseover,harm,nodead][@target,harm,nodead][@pettarget] Concussive Shot | |
/cast [@pettarget][@target] !Auto Shot | |
END |
NewerOlder