Skip to content

Instantly share code, notes, and snippets.

View joaquimnetocel's full-sized avatar

Joaquim Henriques joaquimnetocel

View GitHub Profile
@joaquimnetocel
joaquimnetocel / github-icons.md
Last active March 16, 2024 02:23
CÓDIGOS DE EMOTICONS PARA USAR NO GITHUB

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@joaquimnetocel
joaquimnetocel / speed-test.js
Last active March 16, 2024 02:22
JAVASCRIPT SPEED TEST
const numberStartTime = new Date().getTime();
const functionCalculateSolution = function (argA, argB, argC) {
const numberDelta = argB * argB - 4 * argA * argC;
const numberSolution1 = (-argB + Math.sqrt(numberDelta)) / (2 * argA);
const numberSolution2 = (-argB - Math.sqrt(numberDelta)) / (2 * argA);
return [numberSolution1, numberSolution2];
};
for (let i = 0; i < 200000000; i++) {
@joaquimnetocel
joaquimnetocel / speed-test.r
Last active March 16, 2024 02:24
R SPEED TEST
numberStartTime = Sys.time()
functionCalculateRoots = function(argA, argB, argC){
numberDelta = argB^2 - 4*argA*argC
numberFirstRoot = (-argB + sqrt(numberDelta))/2*argA
numberSecondRoot = (-argB -sqrt(numberDelta))/2*argA
return (c(numberFirstRoot,numberSecondRoot))
}
for (i in 1:200000000){