Skip to content

Instantly share code, notes, and snippets.

View lucasgautheron's full-sized avatar

Lucas Gautheron lucasgautheron

View GitHub Profile
Comments » Join the Midway Film Project! — Kickstarter
https://www.kickstarter.com/projects/midwayfilm/join-the-midway.../comments?...
Fabrice Nefzaoui le July 15, 2012. Thank you. Carolina Moreno Blanco le July 15, 2012. GOOD LUCK with your beautiful, encouraging project, which is in ALL ...
Politique ville Bourg-en-Bresse M. Jean François DEBAT Bourg ...
politique-ville.com/resultat.php?codeinsee=01053
Bourg-en-Bresse avec M. Jean François DEBAT (Bourg avance avec Jean François Debat): les résultats des élections municipales de 2014 à Bourg-en-Bresse ...
Les candidatures aux élections municipales de 2014 : Bourg-en ...
www.politiquemania.com/candidatures-municipales-2014-t1-ville-001053-bourg-en-...
9 M. Fabrice NEFZAOUI 10 Mme Christine MOULIN 11 M. Jérôme BERGERET 12 Mme Maria Pilar MARTINEZ 13 M. Michel SARBACH 14 Mme Khira MIHOUBI
Elections Municipales 2014 - Bourg-En-Bresse
\documentclass{standalone}% For the example only, any class will do
\usepackage{tikz}
\usetikzlibrary{positioning}% To get more advances positioning options
\usetikzlibrary{arrows}% To get more arrow heads
\begin{document}
\begin{tikzpicture}
\node (A) {$A(i,j)$};
\node (YI) [below of=A, left of=A]{$Y(i)$};
\begin{tikzpicture}
\node (W) {$W$};
\node (UW) [below of=W]{$U_W$};
\node (A) [above of=W, left of=W]{$A$};
\node (Y) [above of=W, right of=W]{$Y$};
\node (UY) [right of=Y]{$X(j)$};
\draw[->] (UW) to node {} (W);
\draw[->] (W) to node {} (A);
\draw[->] (W) to node {} (Y);
<?php
// effectuer un tirage au sort (simulation d'un individu)
function trial()
{
// probabilité de croyance de chaque théorie d'après l'enquête
static $probs = [0.55, 0.54, 0.32, 0.31, 0.28, 0.24, 0.20, 0.18, 0.17, 0.16, 0.09];
$count = 0;
// pour chaque théorie, on tire au sort conformément à sa prob. si l'individu
// y adhere ou non
from urllib.request import Request, urlopen
from bs4 import BeautifulSoup
from urllib.parse import urlparse
import re
import numpy as np
import json
urls = ['https://www.lepotcommun.fr/pot/qwgkeart', 'https://www.leetchi.com/fr/Cagnotte/31978353/a8a95db7', 'https://www.lepotcommun.fr/pot/w6md18bt']
# for loop
import json
import urllib.request
import unidecode
import pathlib
def slugify(s):
s = unidecode.unidecode(s).lower().replace(' ', '+')
return s
def create_dir(d):
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)
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>
<?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');
<!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;>