Skip to content

Instantly share code, notes, and snippets.

View stinethebean3's full-sized avatar
๐Ÿ™

Christine stinethebean3

๐Ÿ™
View GitHub Profile
@stinethebean3
stinethebean3 / cowsay.sh
Created August 12, 2014 04:45
Makes a picture of a cow say what you want
#!/bin/bash
count=${#*}
for word in $* ; do
count=$(($count+${#word}))
done
echo -n " "
for i in $(eval echo {0..$count}); do
echo -n _;
done
@stinethebean3
stinethebean3 / Twinkle.ino
Last active December 22, 2015 01:59
Twinkle LEDs for Space Canvas
#include <Adafruit_NeoPixel.h>
#define PIN 12
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)