This file contains 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 json | |
import locale | |
from datetime import date | |
from urllib import request | |
from urllib.error import HTTPError | |
locale.setlocale(locale.LC_ALL, 'fr_FR') |
This file contains 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
<!-- Connect to the SOS directly without using the relay --> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
<style> | |
#app { |
This file contains 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
[ | |
{ | |
"slug": "afghanistan", | |
"name": "Afghanistan", | |
"alpha2": "AF", | |
"alpha3": "AFG", | |
"numerical": "004", | |
"iso_3166_2": "ISO 3166-2:AF" | |
}, | |
{ |
This file contains 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
-- based on https://en.wikipedia.org/wiki/ISO_3166-1 list | |
-- Columns are | |
-- 1. Country name slug | |
-- 2. Country name | |
-- 3. Country alpha-2 code (ISO 3166-1 alpha-2) | |
-- 4. Country alpha-3 code (ISO 3166-1 alpha-3) | |
-- 5. Country numerical code (ISO 3166-1 numeric) | |
-- 6. Country ISO_3166-2 code | |
INSERT INTO |
This file contains 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
ids = [ | |
'76561198097653620', # Eskimon | |
'76561197992117520', # Babybel | |
'76561198001774369', # Algrael | |
'' | |
] | |
from bs4 import BeautifulSoup | |
from collections import namedtuple | |
from urllib import request |
This file contains 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
FROM python:3.6 | |
MAINTAINER Eskimon <eskimon@outlook.com> | |
# Setup Node.js | |
# From https://github.com/nodejs/docker-node/blob/master/6.1/Dockerfile | |
# gpg keys listed at https://github.com/nodejs/node | |
RUN set -ex \ | |
&& for key in \ | |
9554F04D7259F04124DE6B476D5A82AC7E37093B \ | |
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ | |
0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \ |
This file contains 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
This is LuaTeX, Version 1.0.4 (TeX Live 2017) (format=lualatex 2017.11.8) 9 NOV 2017 10:16 | |
system commands enabled. | |
**/home/eskimon/Documents/zds-site/contents-public/realiser-un-telemetre | |
-a-ultrasons__building/extra_contents/realiser-un-telemetre-a-ultrasons.tex | |
(/home/eskimon/Documents/zds-site/contents-public/realiser-un-telemetre- | |
a-ultrasons__building/extra_contents/realiser-un-telemetre-a-ultrasons.tex | |
LaTeX2e <2017-04-15> | |
Lua module: luaotfload-main 2017/01/29 2.80001 OpenType layout system. | |
Lua module: lualibs 2017-02-01 2.5 ConTeXt Lua standard libraries. |
This file contains 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
# -*- coding: utf-8 -*- | |
import codecs | |
import json | |
import requests | |
import sys | |
# Script inspired from https://gist.github.com/unbracketed/3380407 | |
def get_milestones(): | |
jalons = [] |