Skip to content

Instantly share code, notes, and snippets.

millerda / makeSideBar.php
Last active August 29, 2015 14:01
Simple function used to pull post titles and embed links to those titles in a sidebar of a page.
View makeSideBar.php
function pullTitle($text) {
$startsAt = strpos($text, "<h2>") + strlen("<h2>");
$endsAt = strpos($text, "</h2>", $startsAt);
$result = substr($text, $startsAt, $endsAt - $startsAt);
return $result;
function pickSection($dir) {
millerda / splitfiles.cpp
Created January 29, 2014 14:57
program used to split up transcription files
View splitfiles.cpp
// Name: Marty Miller
// Program: This program fixes a transcription file that needs special formatting
Purpose: We will be dealing with file input and output, as well as character
handling. It separates transcripts into separate files by pages.
#include <fstream>
#include <iostream>
#include <string.h>
millerda / update-website
Created January 29, 2014 14:24
Script written for updating website - for tech blog
View update-website
# small script used to update files for website
scp -r ~/website/.
View sendTest_418_Works.ino
//IR sent demo v1.0
//Connect the IR sent pins to D3 for this demo
#include <IRSendRev.h>
void setup()
millerda / revTest_418_Works.ino
Created May 1, 2013 14:08
Test file for DoHas Receiver
View revTest_418_Works.ino
//IR receive demo v1.0
//Connect the IR sent pins to A4 for this demo
#include <IRSendRev.h>
//#include <IRSendRevInt.h>
void setup()