This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remap prefix from 'C-b' to 'C-a' | |
#unbind C-b | |
#set-option -g prefix C-a | |
#bind-key C-a send-prefix | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
set-option -g status-style "bg=color53" | |
set -g pane-border-style fg=color53 | |
set -g pane-active-border-style "bg=default fg=magenta" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
DEFAULT_RES=1080 | |
usage() | |
{ | |
# Display Help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Code from: https://code.google.com/archive/p/tinkerit/wikis/SecretVoltmeter.wiki | |
#include <Arduino.h> | |
//Reads internal Arduino VRef | |
long readVcc() { long result; | |
// Read 1.1V reference against AVcc | |
ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1); | |
delay(2); | |
// Wait for Vref to settle | |
ADCSRA |= _BV(ADSC); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let els; | |
function set_els (els_class) { | |
els = Array.prototype.slice.call(document.getElementsByClassName(els_class)); | |
} | |
function click_els (els) { | |
for (var i = els.length - 1; i >= 0; i--) { | |
els[i].click(); | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "FastLED.h" | |
#define NUM_LEDS_PER_STRIP 107 | |
CRGB leds[NUM_LEDS_PER_STRIP]; | |
void setup() { | |
FastLED.addLeds<WS2812, 3, GRB>(leds, NUM_LEDS_PER_STRIP); | |
FastLED.addLeds<WS2812, 5, GRB>(leds, NUM_LEDS_PER_STRIP); | |
} |