Skip to content

Instantly share code, notes, and snippets.

View bbrouse's full-sized avatar
🦕

Ben Brouse bbrouse

🦕
View GitHub Profile
@bbrouse
bbrouse / cloudSettings
Created August 25, 2020 21:45
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-25T21:45:08.748Z","extensionVersion":"v3.4.3"}
@bbrouse
bbrouse / brsExtractor.py
Last active May 22, 2019 17:38
Extract embedded brs from scenegraph components and write them to a new file. Run this script from the `components` directory.
import os
rootdir = '.'
embeddedStartChars = '<![CDATA[\n'
embeddedEndChars = ']]>\n'
for subdir, dirs, files in os.walk(rootdir):
for file in files:
isXML = (file[-4:] == '.xml')
1
00:00:01,000 --> 00:01:00,000
Subtitle 1
2
00:01:00,000 --> 00:02:00,000
Subtitle 2
3
00:02:00,000 --> 00:03:00,000
@bbrouse
bbrouse / DP D&D intro.md
Created April 26, 2018 00:51
DP D&D intro

@DP Members The Poconos are getting closer and I’m getting into the swing of planning out the story for a set of adventures while we’re all together (if everyone is still interested). In order to make sure each character has their time to shine I like to know what everyone is feeling in terms of race/class/background for characters.

Sometime between now and The Poconos I’ll work with everyone that wants to play and we can make your character together. If you don’t have any interest in creating the character from scratch you can give me a high level idea of what you’d like to run and I can create the character for you.

In the meantime start thinking about the 3 big things you will need to pick: Race, Class, and Background.

RACE

>Your choice of character race provides you with a basic set of advantages and special abilities. If you’re a fighter, are you a stubborn dwarf monster-slayer, a graceful elf blademaster, or a fierce dragonborn gladiator? If you’re a wizard, are you a brave human sp

@bbrouse
bbrouse / fruit_buzz.ino
Last active December 9, 2015 04:21
Arduino project where touching fruit plays tones from a buzzer. Check out https://learn.adafruit.com/adafruit-mpr121-12-key-capacitive-touch-sensor-breakout-tutorial/wiring for more details.
/*********************************************************
This is a library for the MPR121 12-channel Capacitive touch sensor
Designed specifically to work with the MPR121 Breakout in the Adafruit shop
----> https://www.adafruit.com/products/
These sensors use I2C communicate, at least 2 pins are required
to interface
Adafruit invests time and resources providing this open source code,
@bbrouse
bbrouse / SequentialMatrixMultiplier.java
Last active December 25, 2015 21:58
Two versions of a matrix multiplier algorithm (one sequential, one threaded). Both create random matrices, then multiply them together.
import java.util.Random;
public class SequentialMultiplier {
private static int matrixA[][];
private static int matrixB[][];
private static int matrixC[][];
private static int n;