Skip to content

Instantly share code, notes, and snippets.

View jasonmhite's full-sized avatar

Jason Hite jasonmhite

View GitHub Profile
import gefry3 # My model code
import pymc
import numpy as np
import seaborn as sb
from scipy.stats import multivariate_normal
# P is an object that encompasses the geometry and problem, can be
# called to compute detector response
#!/usr/bin/env python3
import paho.mqtt.client as mqtt
from influxdb import InfluxDBClient
from math import isnan
MQTT_ADDR = 'raspi'
TOPIC = "/sensors/#"
DB_SRV = {
"host": "###",
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Text.Parsec
import Text.Parsec.String
import Text.Parsec.Char
import Control.Monad
import Data.List
import Data.Either
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
import paho.mqtt.client as mqtt
from influxdb import InfluxDBClient
TOPIC = "/sensors/#"
DB_SRV = {
"host": "#.#.#.#",
"username": "#",
"password": "#",
@jasonmhite
jasonmhite / Example
Last active December 11, 2015 23:33
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ExistentialQuantification #-}
import Data.Generics
import Data.List
class Shape a where
name :: a -> String
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jasonmhite
jasonmhite / library.json
Last active August 29, 2015 14:23
Platformio library file for Adafruit NeoPixel
{
"name": "Adafruit NeoPixel",
"keywords": "neopixel, adafruit, ws2812, rgb led",
"description": "Adafruit library for controlling ws2812 RGB LEDs",
"repository":
{
"type": "git",
"url": "https://github.com/adafruit/Adafruit_NeoPixel.git"
},
"frameworks": "arduino",
{
"metadata": {
"name": "",
"signature": "sha256:fdbedaf62f5a23c8be84f75bd5664070880dd1796fd54e0d6dd7b8a7be357099"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"metadata": {
"name": "",
"signature": "sha256:0b269c2597f8b6955f508e0f2faa72bcf9ea11b4801e967f18cb1bb8f9695295"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [