Skip to content

Instantly share code, notes, and snippets.

@mz2212
mz2212 / regex.md
Created February 4, 2019 20:27
Useful regexes
/^((?!DELETED).)*$/gm # Inverted Match
@mz2212
mz2212 / pixelnum.ino
Last active May 9, 2018 04:51
Neopixel 7 segment display counter
#define NUMPIXELS 30
#define PIN 3
// Byte locations for my display
// -2-
// 1 3
// -0-
// 6 4
// -5-
#define Blue 9
#define Green 10
#define Red 11
#define DelayTime 5
byte blueLast = 0;
byte greenLast = 0;
byte redLast = 0;
void setup() {
#define Blue 9
#define Green 10
#define Red 11
#define MaxBrightness 75 //How bright it should get (0-255) Lower numbers mean faster cycling as well.
bool BlueIsOn = false;
bool GreenIsOn = false;
bool RedIsOn = false;
int BlueBrightness = 0;
int GreenBrightness = 0;

Keybase proof

I hereby claim:

  • I am mz2212 on github.
  • I am tidest (https://keybase.io/tidest) on keybase.
  • I have a public key whose fingerprint is 4F55 1FE3 F389 7D3C 9C51 28CC A950 8601 4902 5E49

To claim this, I am signing this object: