Skip to content

Instantly share code, notes, and snippets.

View m4n50n's full-sized avatar
🎯
Focusing

Jose Clemente García Rodríguez m4n50n

🎯
Focusing
View GitHub Profile
@m4n50n
m4n50n / Flexbox Froggy level 24 solution.css
Last active November 13, 2021 19:07
Flexbox Froggy level 24 solution
flex-flow: column-reverse wrap-reverse;
align-content: space-between;
justify-content: center;
@m4n50n
m4n50n / Flexbox Defense level 12 solution.css
Created November 13, 2021 19:06
Flexbox Defense level 12 solution
.tower-group-1 {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.tower-1-1 {
align-self: flex-start;
}
.tower-1-3 {
@m4n50n
m4n50n / Math.random.js
Created December 15, 2021 18:39
Math.random.js
// Returns a random integer from 0 to 9:
Math.floor(Math.random() * 10);
// Returns a random integer from 0 to 10:
Math.floor(Math.random() * 11);
// Returns a random integer from 0 to 99:
Math.floor(Math.random() * 100);
// Returns a random integer from 0 to 100:
@m4n50n
m4n50n / Calculating with Functions.js
Created December 20, 2021 20:20
Calculating with Functions - Codewars Kata
function zero(param) { return (!param) ? 0 : param(0); } // param = plus / minus ...
function one(param) { return (!param) ? 1 : param(1); }
function two(param) { return (!param) ? 2 : param(2); }
function three(param) { return (!param) ? 3 : param(3); }
function four(param) { return (!param) ? 4 : param(4); }
function five(param) { return (!param) ? 5 : param(5); }
function six(param) { return (!param) ? 6 : param(6); }
function seven(param) { return (!param) ? 7 : param(7); }
function eight(param) { return (!param) ? 8 : param(8); }
function nine(param) { return (!param) ? 9 : param(9); }
@m4n50n
m4n50n / counter-calculator.js
Created May 24, 2022 13:44
Counter calculator
/*
https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Math/floor
Math.floor() Devuelve el máximo entero menor o igual a un número. Es decir: 0,1 = 0; 1.6 = 1;
Es decir, devuelve solo la parte entera del número (o sea, sin decimales)
Operador %
https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Operators/Remainder
El operador resto (%) devuelve el resto de la división entre dos operandos.
*/