Skip to content

Instantly share code, notes, and snippets.

@millerda
millerda / update-website
Created January 29, 2014 14:24
Script written for updating website - for tech blog
#!/bin/bash
# small script used to update files for website
scp -r ~/website/. user@website.com:/var/www/
@millerda
millerda / splitfiles.cpp
Created January 29, 2014 14:57
program used to split up transcription files
// 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 / 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.
<?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 / revTest_418_Works.ino
Created May 1, 2013 14:08
Test file for DoHas Receiver
//**************
//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()
{
//**************
//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);