Skip to content

Instantly share code, notes, and snippets.

View mamigot's full-sized avatar

Miguel Amigot mamigot

View GitHub Profile
#include <iostream>
#include <mutex>
#include <map>
using namespace std;
// Map file paths to their respective files' mutexes
map<string, shared_ptr<mutex>> fileMutexes = {};
mutex fileMutexesAccess;
@mamigot
mamigot / PID controller.cpp
Last active May 28, 2020 00:49
PID controller. Uses the bilinear transformation.
#include <stdio.h>
#include <iostream>
#include <fstream>
#include "daq.h"
using namespace std;
// Easily toggle the P, I and D parts of the controller
#define CONTROLLER_P true
#define CONTROLLER_I true
#define CONTROLLER_D true

Cloudera's QuickStart VM Setup

$ cat /etc/redhat-release
  • Determine the IP address of the VM (make sure the network is configured on VirtualBox first; see "Network" below)
$ ifconfig