Skip to content

Instantly share code, notes, and snippets.

View tmattio's full-sized avatar

Thibaut Mattio tmattio

View GitHub Profile
@tmattio
tmattio / random.h
Last active September 20, 2016 21:21
A set of few functions for generating random values
// Created by Thibaut Mattio
#pragma once
#include <ctime>
#include <random>
namespace random {
inline auto random_float(float min = 0., float max = 1.) {
@tmattio
tmattio / timelapse.py
Created March 16, 2016 02:57
A simple python script for capturing images from a webcam and building a video from it
# This script is based on https://github.com/nvellon/timelapse
import os
import sys
import time
import cv2
command = 'capture'
cam_num = 0
output_path = 'out/'