Skip to content

Instantly share code, notes, and snippets.

#include "FastLED.h"
#define NUM_LEDS 150
#define DATA_PIN 24
#define LED_PIN 6
CRGB leds[NUM_LEDS];
CRGB prevLeds[NUM_LEDS];
uint8_t ledFrac[NUM_LEDS];
#include <FastLED.h>
#include <SPI.h>
// Rings
// 48, 43, 40, 32, 29, 24, 20. 12, 6, 1
#define NUM_PIXELS 255
#define NUM_RINGS 10
#define DATAPIN 22
#define CLOCKPIN 21
@chanderson0
chanderson0 / pureclean.theme.bash
Created August 1, 2017 12:52
pureclean.theme.bash
# scm theming
SCM_THEME_PROMPT_PREFIX=""
SCM_THEME_PROMPT_SUFFIX=""
SCM_THEME_PROMPT_DIRTY=" ${bold_red}✗${normal}"
SCM_THEME_PROMPT_CLEAN=" ${green}✓${normal}"
SCM_GIT_CHAR="${green}±${normal}"
SCM_SVN_CHAR="${bold_cyan}⑆${normal}"
SCM_HG_CHAR="${bold_red}☿${normal}"
#!/bin/bash
if lspci | grep -i 'nvidia'
then
echo "\nNVIDIA GPU is likely present."
else
echo "\nNo NVIDIA GPU was detected. Exiting ...\n"
exit 1
fi
@chanderson0
chanderson0 / README.md
Last active November 1, 2018 15:40
Setup Jupyter / Tensorflow / Keras w/ GPU on Google Cloud
@chanderson0
chanderson0 / keybase.md
Created March 22, 2017 18:56
keybase.md

Keybase proof

I hereby claim:

  • I am chanderson0 on github.
  • I am canderson (https://keybase.io/canderson) on keybase.
  • I have a public key ASDBmnBSG7Jb_mFIvxEIiyNGmAVUWmziIDsjF86g_5aJcAo

To claim this, I am signing this object:

<meta charset="utf-8">
<script src="js/jquery.js"></script>
<script src="js/jqconsole.js"></script>
<script src="js/sugar.js"></script>
<script src="js/peg-0.9.0.js"></script>
<script src="js/plt.js"></script>
<script type="text/javascript">
// uncomment next line to enable refresh
@chanderson0
chanderson0 / poet.py
Last active October 20, 2015 14:09
Python Poetry Masher
import re
import random
import sys
def read_poem_lines(filename):
f = open(filename, 'r')
poem = f.read().split('\n')
f.close()
lines = []