Skip to content

Instantly share code, notes, and snippets.

Marty Miller millerda

Block or report user

Report or block millerda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@millerda
millerda / makeSideBar.php
Last active Aug 29, 2015
Simple function used to pull post titles and embed links to those titles in a sidebar of a page.
View makeSideBar.php
<?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
millerda / splitfiles.cpp
Created Jan 29, 2014
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
millerda / update-website
Created Jan 29, 2014
Script written for updating website - for tech blog
View update-website
#!/bin/bash
# small script used to update files for website
scp -r ~/website/. user@website.com:/var/www/
View sendTest_418_Works.ino
//**************
//IR sent demo v1.0
//Connect the IR sent pins to D3 for this demo
//By:http://www.seeedstudio.com/
//******************************
#include <IRSendRev.h>
void setup()
{
//enableIROut(38);
@millerda
millerda / revTest_418_Works.ino
Created May 1, 2013
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
//By:http://www.seeedstudio.com/
//******************************
#include <IRSendRev.h>
//#include <IRSendRevInt.h>
void setup()
{
You can’t perform that action at this time.