Skip to content

Instantly share code, notes, and snippets.

View KowalskiThomas's full-sized avatar
🍍

T. Kowalski KowalskiThomas

🍍
  • Datadog
  • Paris, FR
View GitHub Profile
@KowalskiThomas
KowalskiThomas / s.sh
Created April 11, 2018 21:17
Installation Dockercompose
sudo rm /usr/bin/docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/1.20.0/docker-compose-`uname -s`-`uname -m` -o /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
@KowalskiThomas
KowalskiThomas / chaine_grille.py
Last active May 4, 2018 16:27
chaine_grille.py
def chaine_grille(grille):
"""
Renvoie une chaîne de caractères affichable qui représente la grille.
"""
# Affiche une ligne d'étoiles pour délimiter les tours
res = "\n*******************************\n\n"
# Affiche le score : str(int(score(grille))) => on convertir score(grille) en entier (car c'est un float) puis en str (car on ne peut pas faire str + int)
res += "\tVotre score : " + str(int(score(grille))) + " \n\n"
# On affiche le haut de la grille
res += " -----------------------------\n"
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<style>
.hidden {
display: none;
}
#ifndef REQUESTPARSER_H
#define REQUESTPARSER_H
#include "Strings.hpp"
#ifdef DEBUG
#warning Debug
#include <iostream>
#include <ostream>
@KowalskiThomas
KowalskiThomas / screen.md
Created January 9, 2019 08:53
Screen Guide

Screen allows you to have a headless terminal running in background.

Creating or reconnecting to a screen

To create or reconnect to a screen, use

screen -R <screen name>
@KowalskiThomas
KowalskiThomas / paypal.md
Created March 3, 2019 17:18
How to get PayPal tokens

Quelle version de GMP ?

  1. Version 6.1.2

i) mpz_t = entier relatif à précision variable

ii) mpz_t = tableau de taille 1 de mpz_limb

iii)

@KowalskiThomas
KowalskiThomas / svg_recenter_viewbox.py
Last active October 31, 2019 10:42
SVG Viewbox Recentering
import os
for file in os.listdir("."):
if not file.endswith(".svg"):
continue
print("Traitement", file)
try:
with open(file, 'r') as f:
@KowalskiThomas
KowalskiThomas / Boost
Last active February 6, 2020 15:47
CMake Stuff
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.45.0 COMPONENTS filesystem system REQUIRED)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif()
target_link_libraries(main ${Boost_LIBRARIES})