Skip to content

Instantly share code, notes, and snippets.

View lucasgautheron's full-sized avatar

Lucas Gautheron lucasgautheron

View GitHub Profile
{
"la-face-cachee-du-systeme-macron-marc-endeweld-7dWdXOiqQP6CRlLB5G-SYw": "https://anchor.fm/lemediatv/episodes/La-face-cache-du-systme-Macron--Marc-Endeweld-egi3mp",
"aux-origines-du-capitalisme-patriarcal-silvia-federici-98F8PBMYQtWUbQLVIl6rpg": "https://anchor.fm/lemediatv/episodes/Aux-origines-du-capitalisme-patriarcal--Silvia-Federici-egi3h8",
"macron-ou-la-mise-a-mort-des-intermittents-et-des-precaires-vdolqXQaSS2m06qQI2Vthg": "https://anchor.fm/lemediatv/episodes/Macron-ou-la-mise--mort-des-intermittents-et-des-prcaires---Samuel-Churrin-egfncd",
"macron-lincarnation-du-bloc-bourgeois-bruno-amable-zpNK_famRWiPzNxqsd564g": "https://anchor.fm/lemediatv/episodes/Macron--lincarnation-du-Bloc-Bourgeois---Bruno-Amable-egduhk",
"antiracisme-deboulonner-le-passe-colonial-guillaume-mazeau-jQ19ZJAqSI-rSQqt5a6T9Q": "https://anchor.fm/lemediatv/episodes/Antiracisme--dboulonner-le-pass-colonial---Guillaume-Mazeau-egcja5",
"5g-le-gachis-energetique-u_QyDXPkSKeT4g6e27v0Og": "https://anchor.fm/lemediatv/ep
{"days_since_1death_School closing":{"ARG":-30.0,"AUS":null,"AUT":3.0,"BEL":2.0,"BRA":null,"CAN":10.0,"CHE":7.0,"CHL":-31.0,"CHN":15.0,"CZE":-35.0,"DEU":6.0,"DNK":-3.0,"ESP":11.0,"EST":-34.0,"FIN":-28.0,"FRA":30.0,"GBR":17.0,"GRC":-35.0,"HUN":-5.0,"IDN":4.0,"IND":5.0,"IRL":8.0,"ISL":-29.0,"ISR":-8.0,"ITA":10.0,"JPN":null,"KOR":2.0,"LUX":-30.0,"MEX":-1.0,"NLD":8.0,"NOR":-1.0,"NZL":-20.0,"POL":-1.0,"PRT":-5.0,"RUS":-4.0,"SAU":-37.0,"SVK":-30.0,"SVN":-30.0,"SWE":null,"TUR":-3.0,"USA":null,"ZAF":-28.0},"days_since_10deaths_School closing":{"ARG":-30.0,"AUS":null,"AUT":-7.0,"BEL":-5.0,"BRA":null,"CAN":0.0,"CHE":-2.0,"CHL":-31.0,"CHN":4.0,"CZE":-35.0,"DEU":0.0,"DNK":-9.0,"ESP":6.0,"EST":-34.0,"FIN":-28.0,"FRA":8.0,"GBR":10.0,"GRC":-35.0,"HUN":-14.0,"IDN":-4.0,"IND":-8.0,"IRL":-7.0,"ISL":-29.0,"ISR":-15.0,"ITA":7.0,"JPN":null,"KOR":-3.0,"LUX":-30.0,"MEX":-8.0,"NLD":0.0,"NOR":-13.0,"NZL":-20.0,"POL":-13.0,"PRT":-9.0,"RUS":-8.0,"SAU":-37.0,"SVK":-30.0,"SVN":-30.0,"SWE":null,"TUR":-6.0,"USA":null,"ZAF":-28.0},"days_sin
class SystemState {
constructor() {
this.S = 1;
this.E = [];
this.A = [];
this.I = [];
this.R = [];
this.M = 0;
this.time = 0;
==============================================================================
Dep. Variable: count_insee R-squared: 0.948
Model: OLS Adj. R-squared: 0.945
Method: Least Squares F-statistic: 428.0
Date: Tue, 24 Mar 2020 Prob (F-statistic): 0.00
Time: 15:01:23 Log-Likelihood: -19890.
No. Observations: 4628 AIC: 4.016e+04
Df Residuals: 4439 BIC: 4.137e+04
Df Model: 188
Covariance Type: nonrobust
import { parse } from 'node-html-parser';
class dataFetcher {
constructor() {
// initialize cURL
this.curl = new (require( 'curl-request' ))();
curl.setHeaders([
'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36'
]);
<!DOCTYPE html>
<html lang=&quot;en&quot; >
<head>
<meta charset=&quot;UTF-8&quot;>
<link rel=&quot;apple-touch-icon&quot; type=&quot;image/png&quot; href=&quot;https://static.codepen.io/assets/favicon/apple-touch-icon-5ae1a0698dcc2402e9712f7d01ed509a57814f994c660df9f7a952f3060705ee.png&quot; />
<meta name=&quot;apple-mobile-web-app-title&quot; content=&quot;CodePen&quot;>
<?php
require 'params.php';
$presets = list_presets();
if (!empty($_POST['script']) && !empty($_POST['url'])) {
$url = $_POST['url'];
$id = basename(youtube_url_to_id($url));
$url = escapeshellarg($url);
file_put_contents("data/{$id}_script.txt", $_POST['script']);
exec('python3 -m aeneas.tools.execute_task ' . $url . ' data/' . $id . '_script.txt "task_language=fr|is_text_type=plain|os_task_file_format=srt" data/' . $id . '_script.srt -y');
using namespace std;
#include "opencv2/video/tracking.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/gpu/gpu.hpp"
#include <stdio.h>
#include <iostream>
#include <fstream>
inscription:1 This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.
/mediapi:1 Failed to load resource: the server responded with a status of 400 (Bad Request)
bootstrap:2 Uncaught (in promise) TypeError: Cannot read property 'length' of undefined
at bootstrap:2
at bootstrap:2
/mediapi:1 Failed to load resource: the server responded with a status of 400 (Bad Request)
bootstrap:2 Uncaught (in promise) TypeError: Cannot read property 'length' of undefined
at bootstrap:2
at bootstrap:2
/mediapi:1 Failed to load resource: the server responded with a status of 400 (Bad Request)
import json
import urllib.request
import unidecode
import pathlib
def slugify(s):
s = unidecode.unidecode(s).lower().replace(' ', '+')
return s
def create_dir(d):