Skip to content

Instantly share code, notes, and snippets.

View mpaperno's full-sized avatar

Max Paperno mpaperno

View GitHub Profile
@TimSC
TimSC / RunningAverage.h
Last active November 27, 2019 01:43
Calculate running average in C++
#ifndef _RUNNING_AVERAGE_H
#define _RUNNING_AVERAGE_H
#include <vector>
#include <iostream>
#include <cmath>
using namespace std;
class RunningAverage
{
@paullryan
paullryan / MimeTypes.js
Last active February 18, 2024 10:51 — forked from lsauer/gist:5196979
MimeTypes es6 Object with kind determination for CMS's
const applicationTypesExt = {
'a' : 'application/octet-stream',
'ai' : 'application/postscript',
'bin' : 'application/octet-stream',
'cdf' : 'application/x-cdf',
'csh' : 'application/x-csh',
'dll' : 'application/octet-stream',
'doc' : 'application/msword',
'dot' : 'application/msword',