Skip to content

Instantly share code, notes, and snippets.

Avatar

Antoine Augusti AntoineAugusti

View GitHub Profile
@AntoineAugusti
AntoineAugusti / citymapper_cmi.csv
Last active Mar 26, 2020
Citymapper Mobility Index on 2020-03-26
View citymapper_cmi.csv
city date percentage
Barcelona 2020-03-02 112
Barcelona 2020-03-03 105
Barcelona 2020-03-04 105
Barcelona 2020-03-05 106
Barcelona 2020-03-06 105
Barcelona 2020-03-07 110
Barcelona 2020-03-08 107
Barcelona 2020-03-09 104
Barcelona 2020-03-10 92
View bornes.csv
We can't make this file beautiful and searchable because it's too large.
n_amenageur;n_operateur;n_enseigne;id_station;n_station;ad_station;code_insee;Xlongitude;Ylatitude;nbre_pdc;id_pdc;puiss_max;type_prise;acces_recharge;accessibilité;observations;date_maj
Aix-Marseille-Provence;BOUYGUES ENERGIES ET SERVICES;MAMP;FR*M13*P13092*001;SAINT-CHAMAS - Rue Victor Ferrier;Rue Victor Ferrier 0 SAINT-CHAMAS;13092;5.030772;43.549935;0;FR*M13*E13092*001*1;22;EF - T2;payant;24h/24 7j/7;Recharge par badge et avec une application smartphone;2020/07/02
Aix-Marseille-Provence;BOUYGUES ENERGIES ET SERVICES;MAMP;FR*M13*P13115*001;VERNEGUES - Route Du Château Bas;Route Du Château Bas 0 VERNEGUES;13115;5.205005;43.689299;2;FR*M13*E13115*001*1;22;EF - T2;payant;24h/24 7j/7;Recharge par badge et avec une application smartphone;2020/07/02
View documentation.md
View config.yml
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6
steps:
- checkout
- restore_cache:
@AntoineAugusti
AntoineAugusti / limitConcurrentGoroutines.go
Last active Feb 11, 2021
Limit the maximum number of goroutines running at the same time
View limitConcurrentGoroutines.go
package main
import (
"flag"
"fmt"
"time"
)
// Fake a long and difficult work.
func DoWork() {
@AntoineAugusti
AntoineAugusti / install-ml.sh
Created Aug 22, 2014
Script to install useful ML tools on Linux
View install-ml.sh
#!/bin/bash
sudo apt-get install gfortran libopenblas-dev liblapack-dev python-dev libfreetype6-dev libxft-dev libjpeg-dev libpng-dev
wget https://bootstrap.pypa.io/get-pip.py
python get-pyp.py
pip install numpy
pip install pillow
pip install scipy
pip install matplotlib
pip install scikit-learn
pip install stemming
View link.html
View charts.php
<?php
// Connexion à la base de données
require "kernel/config.php";
$db = mysql_connect($host, $user, $pass) or die('Erreur de connexion '.mysql_error());
mysql_select_db($user,$db) or die('Erreur de sélection '.mysql_error());
// Requête SQL permettant la création de notre camembert
$query = mysql_query("SELECT nb_posts, username FROM users ORDER BY nb_posts DESC LIMIT 0,3");
View palindromes.php
<?php
$nb_annees = 20; // NE MODIFIEZ QUE CE PARAMETRE PUIS CHARGEZ CETTE PAGE
// A partir de cet endroit, toute modification est à vos risques et périls ;D
$nb_date_palindrome = 0;
$nb_test_palindrome = 0;
$nb_tests_max = $nb_annees * 365;
function microtime_float() {
list($usec, $sec) = explode(" ", microtime());