Skip to content

Instantly share code, notes, and snippets.

import os, sys
from flask import Flask
from flask import request
from flask import Response, send_from_directory
import flask
from pathlib import Path
app = Flask(__name__)
@app.route('/')
import pprint
import json
import csv
import sys
import unicodedata
def strip_accents(s):
return ''.join(c for c in unicodedata.normalize('NFD', s)
if unicodedata.category(c) != 'Mn')
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>city_cold</title>
<link rel="stylesheet" href="/static/lifilou.nogit/leaflet.css"/>
<script src="/static/lifilou.nogit/leaflet.js"></script>
<script src="/static/simple-ajax.js"></script>
<style type="text/css">
#mapid { height: 800px; width:800px }
@jokoon
jokoon / gist:ed40f69b4aaa821ab6c46c2c774b53af
Last active August 4, 2022 12:50
balancing images to fit inside a printed A3 or A2 paper sheet
# finding the best layout for several images, to reduce empty areas
# image are redimensionned to have either the same height or width
'''
for 1 2 3
(1) (2 3)
(2) (1 3)
#include <iostream>
// GLEW
#define GLEW_STATIC
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>