Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View andypiper's full-sized avatar
🤩
Excited for family time this weekend

Andy Piper andypiper

🤩
Excited for family time this weekend
View GitHub Profile
@andypiper
andypiper / GameDuino_HelloWorld.c
Created June 17, 2011 15:20 — forked from biomood/GameDuino_HelloWorld.c
Hello World for the Gameduino
#include <SPI.h>
#include <GD.h>
void setup() {
// give time for the gameduino splash screen to be displayed
delay(2500);
GD.begin();
// load character set
@andypiper
andypiper / readserial.py
Created September 15, 2011 09:56
Scrape serial port for text data and publish on MQTT
#!/usr/bin/python
#
#simple app to read string from serial port
#and publish via MQTT
#
#uses the Python MQTT client from the Mosquitto project
#http://mosquitto.org
#
#Andy Piper http://andypiper.co.uk
#2011/09/15
@andypiper
andypiper / blast.py
Last active May 16, 2023 12:08
MQTT blaster - repeated publish on a topic
#!/usr/bin/python
#
# simple script to repeatedly publish an MQTT message
#
# uses the Python MQTT client from the Paho project
# http://eclipse.org/paho
#
# Andy Piper @andypiper http://andypiper.co.uk
#
# 2011/09/15 first version
@andypiper
andypiper / README.md
Last active September 28, 2015 01:08 — forked from glejeune/READLE.md
A (very) simple chat service using MQTT

Install

  1. Install and run an MQTT broker (mosquitto is a good choice)

  2. Install mqtt and ncurses-ruby gems (the plain ncurses gem is harder to natively compile)

    sudo gem install mqtt ncurses-ruby

Run

@andypiper
andypiper / rainbow_serial.pde
Created February 5, 2012 00:29 — forked from anonymous/rainbow_serial.pde
File to drive Rainbowduino from simple serial interface
/*
Rainbowduino v3.0 Library examples:
Sets pixels on 2D plane (8x8 matrix)
*/
#include <Rainbowduino.h>
uint32_t colorRGB[13] = {0xFFFFFF,0x000000,0xFFFFFF,0x000,0xFF0000,0x00FF00,0x0000FF,0xFF0000,0x00FF00,0x0000FF,0xFF0000,0x00FF00,0x0000FF };
@andypiper
andypiper / Nanode_Tiny_Bas_Temp
Created February 10, 2012 22:16 — forked from anonymous/Nanode_Tiny_Bas_Temp
Nanode Tiny Basic with temperature sensing by @ceejay
// TinyBASIC.cpp : An implementation of TinyBASIC in C
//
// Author : Mike Field - hamster@snap.net.nz
//
// Based on TinyBasic for 68000, by Gordon Brandly
// (see http://members.shaw.ca/gbrandly/68ktinyb.html)
//
// which itself was Derived from Palo Alto Tiny BASIC as
// published in the May 1976 issue of Dr. Dobb's Journal.
//
@andypiper
andypiper / README.md
Created February 20, 2012 18:01 — forked from bergie/README.md
MQTT pub/sub example

This is a simple example of the MQTT protocol with Node.js. The client code has also been tested with a combination of C++ servers and clients.

@andypiper
andypiper / Styles.diff
Created March 5, 2012 18:15
Update location of Textual extensions for the wiki
diff --git a/Styles.textile b/Styles.textile
index c7a71cf..c77c5b8 100644
--- a/Styles.textile
+++ b/Styles.textile
@@ -3,9 +3,8 @@ The following is information related to styling Textual.
<h3>Introduction</h3>
* Styles are primarily developed using HTML & CSS — Two very common web standards.
-* (pre-version 2.1/non-sandboxed) Textual looks for all style files in the folder: [home folder] -> Library -> Application Support -> Textual -> Styles
+* Textual looks for all style files in the folder: [home folder] -> Library -> Application Support -> Textual -> Styles
@andypiper
andypiper / Main.java
Created March 26, 2012 15:42
Main.java
public static void main(String[] args) {
System.out.println("Hello GitHub");
}
@andypiper
andypiper / nuget.sh
Created May 8, 2012 16:18
nuget for OS X
#!/bin/sh
# add a simple 'nuget' command to Mac OS X under Mono
# get NuGet.exe binary from http://nuget.codeplex.com/releases/view/58939
# get Microsoft.Build.dll from a Windows .NET 4.0 installation
# copy to /usr/local/bin and Robert is your father's brother....
#
PATH=/usr/local/bin:$PATH
mono --runtime=v4.0 /usr/local/bin/NuGet.exe $*