Skip to content

Instantly share code, notes, and snippets.

View binary1230's full-sized avatar

Dominic Cerquetti binary1230

View GitHub Profile
@binary1230
binary1230 / gist:3524c8516223191cb611e5382325b6a4
Created January 4, 2024 09:41
non-working minimal example. NOTE: NEWLINE ON END
(kicad_symbol_lib (version 20220914) (generator kicad_symbol_editor)
(symbol "TXB0108PWR" (in_bom yes) (on_board yes)
(symbol "TXB0108PWR_1_1"
(text "Low\nVoltage\nSide" (at -2.54 12.7 0)
(effects (font (size 0.4 0.4)))
)
)
)
)
@binary1230
binary1230 / .gitignore (wwise)
Created March 22, 2021 15:38
WWise + Unity .gitignore file example (older, but should still work)
# unofficial .gitignore for WWise + Unity projects
# dom at audiotankstudios dot com for questions
#
# this is based on a slightly older Unity and WWise version but, should be a decent starting point
#
# Instructions:
# 1) Place this in your root folder for your Unity project
# 2) Modify "WWiseProject/" below to be the path to your .wproj folder inside your Unity assets
# Unity portion based on https://github.com/github/gitignore/blob/master/Unity.gitignore
@binary1230
binary1230 / DomGUIutils.cs
Created October 3, 2020 12:53
Dom's misc utils for C# databinding/enums/etc. Maybe not the best.
// just some quick snippets for GUI / Winforms / C# / etc
// these might not be the best ways to do this stuff, was just working on some ideas
// example of an enum with Description() applied
public enum ROMMapMode : byte
{
LoROM,
HiROM,
ExHiROM,
[Description("SA - 1 ROM")]
# all of this is terrible, don't use it.
# purpose: take a contact list from an IPHONE icloud dump, compare to a Hubspot export.
# if any names aren't similar, print out a CSV file with names you should import into Hubspot.
#
# seriously, this is horrible I wrote it very quickly there are probably better ways to do this.
import pandas as pd
from fuzzywuzzy import fuzz
import sys
@binary1230
binary1230 / wells fargo website bulk statement downloader
Last active November 14, 2023 02:22
wells fargo ability to download all bank statements
3/18/2021: WE HAVE MOVED: For the latest instructions on how to use the bulk wells fargo PDF downloader,
please ignore this page and visit below:
https://github.com/binary1230/wellsfargo-bulk-PDF-statement-downloader/blob/main/README.md
@binary1230
binary1230 / hangs.py
Created August 26, 2016 16:32
hanging badge number reording repro code
kwargs = {
'badge_type': 16863825,
'first': 725,
'last': 726,
'sametype_list': [152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336
@binary1230
binary1230 / gist:cf2cf5bca6842d691931ff9c9b90f867
Last active July 10, 2016 16:28
regexes to match ubersystem jinja template conversion
\{% (options) ([^\s]+) ([^\s]+) \%\}
{{ $1\($2,$3\) }}
\{\% (popup_link) (".*?") (".*?") \%\}
{{ macros.$1\($2,$3\) }}
\{\% (checkgroup) (.*)\.(.+) \%\}
{{ $2.html_$1('$3') }}
# can improve this by copying from yesno example
@binary1230
binary1230 / menu.py
Created June 9, 2016 02:00
ubersystem menu rework idea
import json
# Dom's idea to try and rework the ubersystem menu system so we can append things to it from plugins
# right now, we can't really inject things into the menu from plugins, and I thought this should be an easier thing.
# (mostly, was trying to get some links for the band plugin on the main menu)
#
# TLDR ended up coming up with this idea for how to represent the menu in python, and then passing that as JSON to
# our javascript code which actually creates the HTML elements.
#
# Lemme know what you guys think and if it's worth pursuing I'll continue on with this when I have a few spare minutes
@binary1230
binary1230 / ghetto_parse_quasi_json.lua
Created June 1, 2016 01:54
Quick n dirty parse values from Telemachus KSP in lua. Never use for anything important, this is code is horrible and insecure
function ghetto_as_hell_parse_json(json)
processed_data = string.gsub(string.gsub(json, "\"", ""), ":", "=")
-- not even remotely secure, never use for anything important EVAR.
parsed = loadstring("return " .. processed_data)()
return parsed
end
json_data='{"p":07,"a0":4359021.16032269,"a1":0,"a2":83.955622485256754,"a3":174.96542675733608,"a4":179.99999446691439,"a5":300821.94285912672,"a6":0.99479834572486814,"a7":0.097586067257674255,"a8":211.47561250913216,"a9":84.824449329557083,"a10":4358745.3389826063,"a11":11.50312}'
-- n={p=07, a0=4359021.16032269, a1=0, a2=83.955622485256754, a3=174.96542675733608, a4=179.99999446691439, a5=300821.94285912672, a6=0.99479834572486814, a7=0.097586067257674255, a8=211.47561250913216, a9=84.824449329557083,a10=4358745.3389826063,a11=11.50312}
@binary1230
binary1230 / flightcomputer.lua
Last active May 31, 2016 03:41
KSP and minecraft flight computer
-- tweakable global vars
ksp_server = "http://10.0.0.29:8085"
livestream_server = "rtmp://dev.magfest.net/live"
livestream_name = "test"
webstream = peripheral.wrap("back")
monitor = peripheral.wrap( "right" )
-- rest of code below
livestream_url = "http://demo.splitmedialabs.com/VHJavaMediaSDK3/view.html?id=" .. livestream_name .. "&url=" .. livestream_server .. "&buffer=0&forceObjectEncoding=0"