This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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('/') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| // GLEW | |
| #define GLEW_STATIC | |
| #include <GL/glew.h> | |
| // GLFW | |
| #include <GLFW/glfw3.h> | |