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 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 |
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
<?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 |
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
\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); |
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
\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)$}; |
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
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 |
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
raydir = rays direction | |
for each face f | |
f->enlightened = true | |
for each different face tf | |
if (ray with direction "raydir" and including tf barycenter intersects face f | |
AND raydir.dot(f-tf) is positive) then | |
f->enlightened = false |
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
args<-commandArgs(TRUE) | |
list.of.packages <- c("sp", "rgdal", "RColorBrewer", "classInt", "ggplot2", "ggmap", "maptools", "raster", "rgeos", "foreign", "plyr", "dplyr", "rgeos", "utils") | |
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] | |
if(length(new.packages)) install.packages(new.packages, repos="https://cloud.r-project.org/", type="source") | |
# install.packages("sp") | |
# install.packages("spatialEco") | |
# install.packages("rgdal") |
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
#0 0x0000000000408e6e in std::__lc_rai<std::random_access_iterator_tag, std::random_access_iterator_tag>::__newlast1<int const*, int const*> ( | |
__last2=__last2@entry=0x7fffffffd938, __first2=__first2@entry=0x7fffffffd930, __last1=__last1@entry=0x7fff64000f28, __first1=__first1@entry=0x7fff64000f20) | |
at /usr/include/c++/5/bits/stl_algobase.h:887 | |
#1 std::__lexicographical_compare_impl<int const*, int const*, __gnu_cxx::__ops::_Iter_less_iter> (__first1=__first1@entry=0x7fff64000f20, | |
__last1=__last1@entry=0x7fff64000f28, __first2=__first2@entry=0x7fffffffd930, __last2=__last2@entry=0x7fffffffd938, __comp=...) | |
at /usr/include/c++/5/bits/stl_algobase.h:895 | |
#2 0x0000000000408ed7 in std::__lexicographical_compare<false>::__lc<int const*, int const*> (__first1=__first1@entry=0x7fff64000f20, | |
__last1=__last1@entry=0x7fff64000f28, __first2=__first2@entry=0x7fffffffd930, __last2=__last2@entry=0x7fffffffd938) at /usr/include/c++/5/bits/stl_algobase.h:922 | |
#3 0x000000000040bdf4 in std::__lexicographica |
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
# Auteur: Lucas Gautheron | |
# Données population : https://www.insee.fr/fr/statistiques/2520034 | |
import sys | |
import re | |
from lxml import etree | |
import dbf | |
from pyproj import Proj, transform | |
from geopy.distance import vincenty, great_circle |
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
dpt,TRAJ_AUTRE_TCE_MACR_PRES_2017,TRAJ_AUTRE_TCE_ABSTENTION_PRES_2017,TRAJ_AUTRE_TCE_HAMO_PRES_2017,TRAJ_AUTRE_TCE_AUTRE_PRES_2017,TRAJ_AUTRE_TCE_LEPE_PRES_2017,TRAJ_AUTRE_TCE_FILL_PRES_2017,TRAJ_AUTRE_TCE_MELE_PRES_2017,TRAJ_ABSTENTION_TCE_MACR_PRES_2017,TRAJ_ABSTENTION_TCE_ABSTENTION_PRES_2017,TRAJ_ABSTENTION_TCE_HAMO_PRES_2017,TRAJ_ABSTENTION_TCE_AUTRE_PRES_2017,TRAJ_ABSTENTION_TCE_LEPE_PRES_2017,TRAJ_ABSTENTION_TCE_FILL_PRES_2017,TRAJ_ABSTENTION_TCE_MELE_PRES_2017,TRAJ_NON_TCE_MACR_PRES_2017,TRAJ_NON_TCE_ABSTENTION_PRES_2017,TRAJ_NON_TCE_HAMO_PRES_2017,TRAJ_NON_TCE_AUTRE_PRES_2017,TRAJ_NON_TCE_LEPE_PRES_2017,TRAJ_NON_TCE_FILL_PRES_2017,TRAJ_NON_TCE_MELE_PRES_2017,TRAJ_OUI_TCE_MACR_PRES_2017,TRAJ_OUI_TCE_ABSTENTION_PRES_2017,TRAJ_OUI_TCE_HAMO_PRES_2017,TRAJ_OUI_TCE_AUTRE_PRES_2017,TRAJ_OUI_TCE_LEPE_PRES_2017,TRAJ_OUI_TCE_FILL_PRES_2017,TRAJ_OUI_TCE_MELE_PRES_2017,COMP_AUTRE_TCE_MACR_PRES_2017,COMP_AUTRE_TCE_ABSTENTION_PRES_2017,COMP_AUTRE_TCE_HAMO_PRES_2017,COMP_AUTRE_TCE_AUTRE_PRES_2017,COMP_AUTRE_TCE_LEP |