This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <map> | |
#include <vector> | |
/** | |
* Provides a basic interpolation mechanism in C++ using the STL. | |
* Maybe not the fastest or most elegant method, but it works (for | |
* linear interpolation!!), and is fast enough for a great deal of | |
* purposes. It's also super easy to use, so that's a bonus. | |
*/ | |
class LinearInterpolator { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _RUNNING_AVERAGE_H | |
#define _RUNNING_AVERAGE_H | |
#include <vector> | |
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
class RunningAverage | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# add the GPG key for the official Docker repository to the system | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# add the Docker repository to APT sources | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
# update the package database with the Docker packages from the newly added repo | |
sudo apt-get update |