Skip to content

Instantly share code, notes, and snippets.

# ref: https://hub.docker.com/_/debian
FROM debian:11 AS env
#############
## SETUP ##
#############
RUN apt-get update -qq \
&& apt-get install -qq \
git pkg-config wget make autoconf libtool zlib1g-dev gawk g++ curl subversion \
swig lsb-release \
#!/usr/bin/env python3
import random
from ortools.sat.python import cp_model
def generatePreferences(n, m):
'''
n - teams
m - customers
Randomly Generates Preferences of customer for n teams.
@mbinna
mbinna / effective_modern_cmake.md
Last active May 19, 2024 06:46
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@Kmaschta
Kmaschta / algo-dobble.py
Last active April 12, 2019 19:26
Algorithme Dobble
#!/usr/bin/python
# coding: utf-8
import sys
def plan_projectif(modulo):
"""Génération d'un plan projectif réel
Il est composé d'un plan affine (une matrice) et
des points à l'infini du plan réel.