Skip to content

Instantly share code, notes, and snippets.

View ajfisher's full-sized avatar

ajfisher ajfisher

View GitHub Profile

RethinkDB Setup on OSX

This guide will get RethinkDB setup and running with a default configuration on OSX. There is also an option for setting RethinkDB to start at boot time on OSX, and a note on upgrading to a more recent RethinkDB version.

First Installation

Install Homebrew if you don't already have it:

@ajfisher
ajfisher / network_rgb.ino
Last active August 29, 2015 14:08
Code for Information Radiator blog post.
// Adapted from generic web server example as part of IDE created by David Mellis and Tom Igoe.
#include "Arduino.h"
#include <Ethernet.h>
#include <SPI.h>
#include <string.h>
#include <stdlib.h>
#define DEBUG false
@ajfisher
ajfisher / app.js
Created June 8, 2015 10:12
Beginning version colour sensor module support
var five = require("johnny-five");
var colour_sensor = require("./coloursensor.js")
var board = five.Board();
var led;
board.on('ready', function() {
var cs = new colour_sensor({
address: 0x29,
@ajfisher
ajfisher / generic_network_pulser.pde
Created October 16, 2011 08:42
Pulse an arduino PWM pin by hitting a URL over the network
/**
Generic networked pulser
Sets up a web page and every time a url is hit then it conducts and action
Author: Andrew Fisher
Date: 29 September 2011
Version 0.2
@ajfisher
ajfisher / tsana.py
Created October 16, 2011 05:38
Twitter Stream Analyser and Network Activator - watches twitter stream for keywords and hits a URL when it finds one.
# Twitter stream analyser and network activator (TSANA)
#
# This script analyses a twitter stream for keywords using the twitter
# streaming api - off the back of it, it then hits a user defined url
# In my case this is being used to tell an Arduino to pulse a light but
# could be used for anything arbitrary.
#
# Author: Andrew Fisher
# Version: 0.3
# Date: 20/10/2011
@ajfisher
ajfisher / networked_temperature_sensor.pde
Created October 16, 2011 09:06
Basic networked temperature sensor that displays a web page for arduino
/**
Basic Networked temperature sensor.
Displays a web page with the temperature on it.
Author: Andrew Fisher
Date: 30 September 2011
Version 0.1
@ajfisher
ajfisher / info.md
Last active January 22, 2016 08:04
NodePixel flashing to edison

Get bin file from this gist.

Copy bin file into a location on the edison side. I'll call this /tmp/firmware

ssh onto edison then cd into /tmp/firmware

from there:

npm install avrgirl-arduino

Keybase proof

I hereby claim:

  • I am ajfisher on github.
  • I am ajfisher (https://keybase.io/ajfisher) on keybase.
  • I have a public key ASAr91tycIDKyqUprNG3JOPdjHO8K70YBU3qKY2Oq68w6wo

To claim this, I am signing this object:

@ajfisher
ajfisher / LICENSE
Last active May 3, 2016 10:31
Preparation for BuzzConf
The MIT License (MIT)
Copyright (c) 2015 ajfisher
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@ajfisher
ajfisher / _brexit.md
Last active June 27, 2016 01:03
A quick little slack bot to report of brexit results

This is a little slack bot I made which is used to get results for the EU Referendum in the UK

Set up

npm install cheerio botkit request

Log into slack, create a new bot and then get the token for it.

Drop the token into the brexitbot.js file where it says "PUT YOUR TOKEN HERE"