Skip to content

Instantly share code, notes, and snippets.

View cpmpercussion's full-sized avatar
🏠
Working from home

Charles Martin cpmpercussion

🏠
Working from home
View GitHub Profile
@cpmpercussion
cpmpercussion / shakespeare_output_text.txt
Last active October 18, 2016 14:36
Shakespeare output
TAGUE:
Trust too trouble it: I will have your honour
And threst words, will not still bear the gods and cannot speak,
And now and take the which thy means to have him.
POMPEY:
If this be?
Here comes your tongue, sir, a strange o' the stand?
TRANIO:
@cpmpercussion
cpmpercussion / loop_pi_video.sh
Created July 15, 2016 08:31
omxplayer command to loop a video forever for use in video art exhibitions
#!/bin/bash
# This one-liner script plays a video in an infinite loop on a raspberry pi
# for a video-art exhibition.
# It was written for a video in portrait orientation so the video is rotated 270
# to use up the whole screen (which was also rotated).
# Charles Martin, July 2016
omxplayer -o local --loop /home/pi/video.mp4 --orientation 270
@cpmpercussion
cpmpercussion / charles-thesis-template.tex
Created January 21, 2016 06:26
Charles' Fairly Vanilla LaTeX Thesis Template Using Memoir
\documentclass[a4paper,12pt,oldfontcommands]{memoir}
\PassOptionsToPackage{hyphens}{url}
\usepackage{url}
\usepackage{hyperref}
\usepackage{doi}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{wrapfig}
\usepackage{natbib}
@cpmpercussion
cpmpercussion / intel-galileo-pd-howto.md
Last active September 9, 2020 21:01
HOWTO setup Pd on Intel Galileo

Putting Pd on the Intel Galileo

The Intel Galileo is a great little development/experiments board with an Intel Quark 32-bit x86 processor. We had some of these hanging around our office and I was inspired to make some computer music with it - so here's my process for getting Pure Data up and running.

Here's the things I needed:

@cpmpercussion
cpmpercussion / IntelGalileoProcessDiary.md
Created January 23, 2015 06:12
Intel Galileo Pure Data music process

Setting up SD card

download galileo-1.2.img from <galileodebian.sourceforge.net>

used rpi-sd-card-builder to dd the image to the card.

Connect serial in terminal

something like:

screen /dev/tty.PL2303-0000103D 115200

@cpmpercussion
cpmpercussion / MicroViewPlotPixel.ino
Created December 26, 2014 05:41
Sketch for plotting an analog input on a MicroView arduino
#include <MicroView.h>
const int PLOT_PIN = 0;
int readingHistory[64];
int currentIndex = 0;
void setup() {
// put your setup code here, to run once:
uView.begin();