Skip to content

Instantly share code, notes, and snippets.

View mtngit14's full-sized avatar

David Richards mtngit14

  • MiqroMeq, LLC
  • Colorado, USA
View GitHub Profile
@mtngit14
mtngit14 / index.html
Created September 29, 2017 04:46 — forked from arisetyo/index.html
Dynamic Real-time Chart Using Chart.js, Socket.io, and Knockout.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Galenic">
<script src="js/jquery-1.9.1.js"></script>
<script src="js/knockout-2.1.0.js"></script>
<script src="js/Chart.js"></script>
<link rel="stylesheet" href="pure-min.css">
Sync-settings
@mtngit14
mtngit14 / starbucks_map.html
Created November 2, 2016 18:19 — forked from yitznewton/starbucks_map.html
Starbucks Stores API / Google Maps JS API mashup with browser geolocation
<html>
<head></head>
<body>
<div id="map-canvas" style="height: 600px; width: 600px;"></div>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_GOOGLE_MAPS_API_KEY_HERE"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>
var positionToStarbucksLatlng = function(position) {
#!/usr/bin/env python
# September 2013
# by Matthew Bordignon, @bordignon on Twitter
#
# Simple Python script (v2.7x) that subscribes to a MQTT broker topic and inserts the topic into a mysql database
# This is designed for the http://mqttitude.org/ project backend
#
import MySQLdb
import mosquitto