Skip to content

Instantly share code, notes, and snippets.

View SuperMayo's full-sized avatar
👾

Antoine Mayerowitz SuperMayo

👾
View GitHub Profile
@SuperMayo
SuperMayo / .zprestorc
Last active November 12, 2020 17:21
zprestorc
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
#
# General
#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% Search & Matching - PSE course, 2nd year %%
%% %%
%% Code to solve a simpler version of: %%
%% %%
%% Hairault, J. O., Sopraseuth, T., & Langot, F. (2010). %%
%% "Distance to retirement and older workers employment: %%
%% The case for delaying the retirement age." %%
%% Journal of the European Economic association. %%
@SuperMayo
SuperMayo / autossh.pse-tunnel.plist
Last active April 23, 2020 14:02
Autossh launchd config for automatic tunnel
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>autossh.pse-tunnel</string>
<key>EnvironmentVariables</key>
<dict>
<key>AUTOSSH_GATETIME</key>
@SuperMayo
SuperMayo / societeComScrap.py
Created March 18, 2019 17:02
A python script to scrap board members of a given list of SIREN through the societe.com website.
from bs4 import BeautifulSoup
import re
import requests
import datefinder
import pandas as pd
# ============
# CONSTANTS
# ============
FIELDS = ["Nom", "Prénom", "Année de naissance",
clear;
clear all;
clc;
dicesize = 120; % number of faces
ndice = 500; % number of dices
mcnum = 100000; % number of monte-carlo iterations
Pi = zeros(mcnum,1);