Skip to content

Instantly share code, notes, and snippets.

View atrolla's full-sized avatar
💢
FFFFFFFFFUUUUUUU

The Troll atrolla

💢
FFFFFFFFFUUUUUUU
View GitHub Profile
@atrolla
atrolla / create_or_update_conda_venv.bat
Created January 6, 2019 11:02
Windows Batch to create or update conda virtual env
@ECHO OFF
:: ce batch pour windows s'utilise avec un environment.yml qui sert pour conda et ses dépendences
:: notez qu'il faut specifier le chemin vers le script conda ici
set conda_path=C:\Perso\Dev\Python\anaconda3\Scripts
:: extraction du nom de l'environnement virtuel pour vérifier s'il existe ou pas
set /p yaml_env_name_line=< environment.yml
set env_name=%yaml_env_name_line:~6%
%conda_path%\conda.exe env list | find /i "%env_name%"
-module(pi).
-author("Yvan").
-export([approximatePi/2,startCalculate/1,mapApproximatePi/0,reduce/3]).
mapApproximatePi() ->
receive
{Level, Range, Reducer} ->
Approx = approximatePi(Level,Range),
%io:format("approximate ! ~w = (~w,~w) :~w~n",[self(),Level,Range,Approx]),
@atrolla
atrolla / city.erl
Last active January 12, 2017 08:55
-module(city).
-include("city.hrl").
-author("Yvan").
%% ------------------------------------------------------------------
%% API Function Exports
%% ------------------------------------------------------------------
-export([new/0,plague/1,preturnPopulation/1,preturnHealth/1]).
@atrolla
atrolla / howto.md
Last active October 31, 2022 15:52
Deploy multiple Spring boot app on a single tomcat with different configuration for each app