Skip to content

Instantly share code, notes, and snippets.

View flow-classifier.go
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"net"
"sort"
"strings"
View SDS011-statistical-analyser.cpp
class Accumulator
{
#define MAXACCVALUES 100
int vals[MAXACCVALUES];
unsigned long startTime;
public:
int count = 0;
Accumulator()
{
@ronanj
ronanj / manchester-air-quality.html
Last active Nov 10, 2016
Manchester Piccadilly Air Quality
View manchester-air-quality.html
<!DOCTYPE html>
<html>
<head>
<title>Mcr Piccadilly Air Quality</title>
<!-- BEGIN AQI -->
<!-- AQI script -->
<script type="text/javascript" charset="utf-8">
(function(w,d,t,f){ w[f]=w[f]||function(c,k,n){s=w[f],k=s['k']=(s['k']||(k?('&k='+k):''));s['c']= c=(c instanceof Array)?c:[c];s['n']=n=n||0;L=d.createElement(t),e=d.getElementsByTagName(t)[0]; L.async=1;L.src='//feed.aqicn.org/feed/'+(c[n].city)+'/'+(c[n].lang||'')+'/feed.v1.js?n='+n+k; e.parentNode.insertBefore(L,e); }; })( window,document,'script','_aqiFeed' );
</script>