Skip to content

Instantly share code, notes, and snippets.

View LindseyB's full-sized avatar
⚰️
When I hear that trumpet sound I'm gonna rise up outta the ground

Lindsey Bieda LindseyB

⚰️
When I hear that trumpet sound I'm gonna rise up outta the ground
View GitHub Profile
@LindseyB
LindseyB / code.py
Last active August 11, 2024 04:27
CircuitPython code for doing lots of little things on the Adafruit CLUE
"""Display as many of the sensors and sounds this lil thing can do"""
from adafruit_clue import clue
clue_display = clue.simple_text_display()
tone = 1000
tone_delta = 50
clue.sea_level_pressure = 1015
while True:
x, y, z = clue.acceleration
@LindseyB
LindseyB / unused_views.rb
Created May 6, 2024 00:58
Finds specifically unused views in a rails project (skips partials in favor of the unused partials gem)
#!/usr/bin/env ruby
require './config/environment'
(Dir.glob("./app/views/**/*.html.erb")).each do |v|
next if v.include?('components') || v.include?('layouts') || v.include?('mailer') || v.include?('errors') || v.include?('static_pages') || v.include?('partials')
match = /app\/views\/(.*)\/(.+)\.html\.erb/.match(v)
klass = "#{match[1].camelize}Controller".constantize rescue nil
action = match[2]
# skip partials because we can use the `discover-unused-partials` gem
@LindseyB
LindseyB / custom.css
Created November 21, 2022 06:32
mastodon dracula theme
body {
font-family: ui-monospace,
Menlo, Monaco,
"Cascadia Mono", "Segoe UI Mono",
"Roboto Mono",
"Oxygen Mono",
"Ubuntu Monospace",
"Source Code Pro",
"Fira Mono",
"Droid Sans Mono",
{
"basics": {
"name": "Lindsey Bieda",
"label": "Software Engineer",
"email": "[email protected]",
"website": "https://rarlindseysmash.com",
"summary": "Lindsey is a passionate software engineer who loves writing code and finding ways to use her creative side while programming. ",
"location": {
"city": "Pittsburgh",
"countryCode": "US",
@LindseyB
LindseyB / JackboxGames.md
Created June 25, 2020 22:48
Markdown Listing of Jackbox Games because I keep forgetting which packs they are in and how many players they allow
Game Party Pack Min Players Max Players
Dictionarium Jackbox Party Pack 6 3 8
Drawful 2 Drawful 2 3 8
Fibbage 2 Jackbox Party Pack 4 2 8
Guesspionage Jackbox Party Pack 3 2 8
Joke Boat Jackbox Party Pack 6 3 8
Mad Verse City Jackbox Party Pack 5 3 8
Patently Stupid Jackbox Party Pack 5 3 8
Quiplash 2 Jackbox Party Pack 3 3 8
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_PN532.h> // Note: This needs to be edited to exclude the bounds check, lines 1334-1351 should be commented out
#define PN532_IRQ (2)
#define PN532_RESET (3) // Not connected by default on the NFC Shield
// This is using the NFC shield, if you are using the breakout you will need to change these pins
Adafruit_PN532 nfc(PN532_IRQ, PN532_RESET);
set nocompatible " be iMproved
" 1 tab to 2 space for ruby
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
" number line show
set nu
set rtp+=/usr/local/opt/fzf
# zshrc lines for go
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
@LindseyB
LindseyB / mystery_wave.kll
Last active November 10, 2018 15:22
KLL animation for K-type
name:
mystery_wave
settings:
framedelay:3, framestretch, loop, replace:all, pfunc:interp,start
frames:
P[c:1%] (210,219,162), P[c:25%](41,129,149), P[c:50%](138,99,141), P[c:75%](45,155,162), P[c:100%](133,113,156), P[1](0,0,0), P[2](0,0,0), P[3](0,0,0), P[4](0,0,0), P[5](0,0,0), P[6](0,0,0), P[7](0,0,0), P[8](0,0,0), P[9](0,0,0), P[10](0,0,0), P[11](0,0,0), P[12](0,0,0), P[13](0,0,0), P[14](0,0,0), P[15](0,0,0), P[16](0,0,0), P[17](0,0,0), P[18](0,0,0), P[19](0,0,0), P[20](0,0,0), P[21](0,0,0), P[22](0,0,0), P[23](0,0,0), P[24](0,0,0), P[25](0,0,0), P[26](0,0,0), P[27](0,0,0), P[28](0,0,0), P[29](0,0,0), P[30](0,0,0), P[31](0,0,0), P[32](0,0,0), P[33](0,0,0), P[34](0,0,0), P[35](0,0,0), P[36](0,0,0), P[37](0,0,0), P[38](0,0,0), P[39](0,0,0), P[40](0,0,0), P[41](0,0,0), P[42](0,0,0), P[43](0,0,0), P[44](0,0,0), P[45](0,0,0), P[46](0,0,0), P[47](0,0,0), P[48](0,0,0), P[49](0,0,0), P[50](0,0,0), P[51](0,0,0), P[52](0,0,0), P[53](0,0,0), P[54](0,0,0),