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
| #! /usr/bin/env python3 | |
| import decimal | |
| import re | |
| import math | |
| import readline | |
| RED = "\033[0;31m" | |
| LIGHT_GREEN = "\033[1;32m" |
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
| #! /usr/bin/env python3 | |
| # http://ifcuriousthenlearn.com/blog/2015/06/18/center-of-mass/ | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from mpl_toolkits.mplot3d import Axes3D | |
| #set plot sizes | |
| plt.rcParams['figure.figsize'] = (10, 2) # (width, height) | |
| plt.rcParams['font.size'] = 20 |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #include <libproc.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| pid_t pid; | |
| int ret; |
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
| #! /usr/bin/env python3 | |
| # rene-d 2018 | |
| # Unlicense: http://unlicense.org | |
| # données GeoJSON: https://cadastre.data.gouv.fr/data/etalab-cadastre/latest/geojson/ | |
| # exemple: | |
| # ./parcelles.py -o elysee -p 75108BO25 -c 75108 | |
| # requirements: |
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
| #! /usr/bin/env python3 | |
| # rene-d 2018 | |
| # Unlicense: http://unlicense.org | |
| """ | |
| Fichier FANTOIR (Fichier ANnuaire TOpographique Initialisé Réduit) | |
| https://www.data.gouv.fr/fr/datasets/fichier-fantoir-des-voies-et-lieux-dits/ | |
| crée une base SQLite3 à partir du fichier texte |
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
| #! /usr/bin/env python3 | |
| import sys | |
| import requests_cache | |
| import logging | |
| import argparse | |
| import os | |
| from urllib.parse import urlparse | |
| import datetime | |
| import email.utils |
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
| #! /usr/bin/env python3 | |
| import os | |
| import pathlib | |
| import argparse | |
| import datetime | |
| from collections import defaultdict | |
| parser = argparse.ArgumentParser(description='Sort subdirectories by most recent files within them') | |
| parser.add_argument('-v', '--verbose', help="be verbose", action='store_true') |
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
| #! /usr/bin/env python3 | |
| import requests | |
| import sys | |
| from subprocess import call | |
| import yaml | |
| import os | |
| import json | |
| import argparse |
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
| #! /usr/bin/env node | |
| // rené 07/2018 | |
| // markdown-it: https://markdown-it.github.io | |
| // highlight.js: https://highlightjs.org/ | |
| // Bootstrap: https://getbootstrap.com/ | |
| 'use strict'; | |
| // hack to require() modules in current directory |
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
| # SGR color constants | |
| # rene-d 2018 | |
| class Colors: | |
| """ ANSI color codes """ | |
| BLACK = "\033[0;30m" | |
| RED = "\033[0;31m" | |
| GREEN = "\033[0;32m" | |
| BROWN = "\033[0;33m" | |
| BLUE = "\033[0;34m" |