Skip to content

Instantly share code, notes, and snippets.

View parsley72's full-sized avatar
🔥

Tom Isaacson parsley72

🔥
View GitHub Profile
@parsley72
parsley72 / uart.c
Last active May 4, 2021 02:00 — forked from ryankurte/uart.c
Simple unix serial implementation.This uses pthreads to receive and buffer incoming data for later use.
// https://gist.github.com/ryankurte/8143058
#include "uart.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <termios.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@parsley72
parsley72 / keeniolocationmap.html
Last active March 9, 2016 07:34
Very basic demo of how to display Keen.io locations on a Google map. I've left out my Project ID and Read Key (for obvious reasons) so to get it to work you need to replace [PROJECT ID], [READ KEY] and [EVENT COLLECTION] with your own settings. Alternatively, go to the Keen.io Workbench for your project, select the Event Collection, set Analysis…
<!DOCTYPE html>
<html>
<head>
<title>Keen.io location map</title>
<style>
#map-canvas {
min-height: 400px;
width: 100%;