Skip to content

Instantly share code, notes, and snippets.


Matt Richardson mrichardson23

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mrichardson23 on github.
  • I am mrichardson23 ( on keybase.
  • I have a public key whose fingerprint is C9ED 98AE 8C04 747B 388B ADDF 2289 265F 4430 D5E3

To claim this, I am signing this object:

View gist:785b78a58f434088ff1cf45f8e41e09b
[ 99%] Building CXX object tangram-es/core/CMakeFiles/core.dir/src/text/textUtil.cpp.o
Linking CXX static library libcore.a
[ 99%] Built target core
[ 99%] Swig source
Scanning dependencies of target _tangram
[ 99%] Building CXX object CMakeFiles/_tangram.dir/tangramPYTHON_wrap.cxx.o
In file included from /home/pi/tangram-py/tangram/build/tangramPYTHON_wrap.cxx:3039:0:
/home/pi/tangram-py/tangram/src/tangram-proxy.h:24:61: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
void init(int width, int height, char * style = "scene.yaml");
View edu-image
echo "Raspi-Config steps"
sudo raspi-config nonint do_camera 0
sudo raspi-config nonint do_i2c 0
#sudo raspi-config nonint do_vnc 0
echo "Updating...."
sleep 2
sudo apt-get update
View gist:379a5a32e173bdd070a25ed110e81813
#!/usr/bin/env bash
# Pi-hole: A black hole for Internet advertisements
# (c) 2015, 2016 by Jacob Salmela
# Network-wide ad blocking via your Raspberry Pi
# Installs Pi-hole
# Pi-hole is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
View dmesg.txt
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.0.8-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #805 SMP PREEMPT Thu Jul 16 18:46:20 BST 2015
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
[ 0.000000] cma: Reserved 8 MiB at 0x3a800000
[ 0.000000] Memory policy: Data cache writealloc
mrichardson23 / int-to-galileo.ino
Created Jan 22, 2014
int from server to Galileo
View int-to-galileo.ino
void setup() {
// put your setup code here, to run once:
void loop() {
// put your main code here, to run repeatedly:
mrichardson23 / webAnalog.js
Created Jul 29, 2013
Node http server and BoneScript's analogRead
View webAnalog.js
// Load the http module to create an http server.
var http = require('http');
var b = require('bonescript');
var inputPin = "P9_33";
// Configure our HTTP server to respond to requests
// with the value of the analog input as a percentage
View broken.ino
// Commands for Alpha Sign Communication Protocol
byte NUL = 0x00;
byte START_HEADER = 0x01;
byte START_TEXT = 0x02;
byte ESC = 0x1B;
byte FILL = 0x30;
byte ROTATE = 0x61;
byte SLOW = 0x15;
byte FAST = 0x19;
mrichardson23 / LEDFade-ForLoop.ino
Created Jun 14, 2013
Sample Code for Arduino Programming Basics Class
View LEDFade-ForLoop.ino
// Sample Code for Arduino Programming Basics Class
// Matt Richardson
// With this code, make an LED fade up and down using a
// for loop!
// Wire up an LED to pin 3 (or any PWM pin, they're marked with a ~)
#define GREEN_LED 3
// Everything in the setup() function runs once when the Arduino starts up.
mrichardson23 / base.ino
Created Jun 13, 2013
Basic setup code for Arduino programming session
View base.ino
#define BUTTON_PIN 2
#define GREEN_LED 3
#define YELLOW_LED 4
#define RED_LED 5
void setup() {