Skip to content

Instantly share code, notes, and snippets.

View BIRSAx2's full-sized avatar

Mouhieddine Sabir BIRSAx2

View GitHub Profile
'''Programma per integrare e^x da 0 a 1'''
import numpy as np
import matplotlib.pyplot as plt
def rettangoli_naif(h,f):
inte=0.0
for i in range(f.shape[0]-1):
inte+=f[i]
inte*=h
return inte
@BIRSAx2
BIRSAx2 / index.js
Created September 15, 2023 12:04
EFEBIA Assignment Solution
const hexString =
"4a1b48d7322394a78326cd283f0834093e65421a7e98e90e5b452d160b5d07d8";
const expectedEncodedString = "ShtI1zIjlKeDJs0oPwg0CT5lQhp+mOkOW0UtFgtdB9g=";
const hexBuffer = Buffer.from(hexString, "hex");
const encodedString = Buffer.from(hexBuffer).toString("base64");
console.log(`Actual output:\t ${encodedString}`);
console.log(`Expected output: ${expectedEncodedString}`);