Skip to content

Instantly share code, notes, and snippets.

View dracco1993's full-sized avatar
🤖
Building robots

Jordan Miller dracco1993

🤖
Building robots
View GitHub Profile
@randomtestfive
randomtestfive / lightboy.ino
Created March 22, 2022 00:22
red alert 1741 light boys
#include "Keypad.h"
#include "EEPROM.h"
const byte col = 4;
const byte row = 4;
char keys[row][col] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
@DesignFront
DesignFront / detect-dark-mode.js
Last active September 12, 2021 20:04
Detect Darkmode
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
// dark mode
}
// to watch for changes:
window.matchMedia('(prefers-color-scheme: dark)').addListener(function (e) {
console.log(`changed to ${e.matches ? "dark" : "light"} mode`)
});
[
{
"actual_time": 1489586400,
"alliances": {
"blue": {
"dq_team_keys": [],
"score": 37,
"surrogate_team_keys": [
"frc103"
],