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
import java.io.File | |
import java.security.MessageDigest | |
import kotlinx.coroutines.* | |
val digester = MessageDigest.getInstance("SHA-256") | |
suspend fun check(file_path: String, checksum_in: String) = withContext(Dispatchers.Default){ | |
val target_file = File(file_path) | |
if(target_file.isFile){ |
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
#/usr/bin/python | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as ps | |
import itertools as it | |
plt.ion() | |
data = ps.read_csv('time_series_covid19_confirmed_global.csv',parse_dates=True) | |
data_death = ps.read_csv('time_series_covid19_deaths_global.csv',parse_dates=True) | |
data_healt = ps.read_csv('time_series_covid19_recovered_global.csv',parse_dates=True) |
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
function rFunction = regress( x, y, power ) | |
%REGRESS Fait la régression à la puissance power d'une série de points x,y | |
% Préparer la matrice | |
for i=0:power | |
for j=0:power | |
exposant=(2*power-i)-j; | |
matriceA(i+1,j+1)=sum(x.^exposant) | |
end | |
matriceR(i+1)=sum(y.*x.^(power-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
#!/usr/bin/python3 | |
""" | |
Kelvins truncated Thetrahedron and Weare-Phelan polyhedron. | |
""" | |
import numpy as np | |
import itertools as it | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d.art3d import Poly3DCollection | |
from mpl_toolkits import mplot3d |
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
-- import Data.List | |
import Data.Char | |
import Data.Maybe | |
import System.Environment | |
-- import System.IO | |
import Control.Monad | |
import Text.Read | |
-- Evaluate if a value is between two other | |
between :: (Ord a) => a -> a -> a -> Bool |
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
/** Algorithme de cryptage Vernam | |
*** Grabriel Lemieux | |
*** | |
**/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import numpy as np | |
import matplotlib.pyplot as plt | |
#Fonction donnat la friction pour un reynolds donné | |
re_friction = lambda x:(np.sqrt(24/x)+0.5406)**2 | |
#Fonction trouvant la vélocité d'une bulle de diamètre X dans |