Skip to content

Instantly share code, notes, and snippets.

View RobertKrajewski's full-sized avatar

Robert Krajewski RobertKrajewski

View GitHub Profile
@RobertKrajewski
RobertKrajewski / mattermost-dl.py
Last active April 13, 2024 10:46
This script allows to export the content (text+files) of an interactively selected Mattermost channel (public, private, group, direct message) to files. Tested on Mattermost 5.27 using Python 3.7
import os
import sqlite3
from datetime import datetime, date
from typing import Tuple, Dict, List
import getpass
from mattermostdriver import Driver
import pathlib
import json
@RobertKrajewski
RobertKrajewski / lazyinterpolation.hpp
Created July 9, 2015 16:27
Lazy interpolation template
#ifndef LAZYINTERPOLATION_H
#define LAZYINTERPOLATION_H
#include <functional>
/**
* @brief This class manages data interpolation and saves results.
* During construction a vector containing data is passed. Interpolated
* data is saved in this class and another interpolation is avoided.
*/