Skip to content

Instantly share code, notes, and snippets.

View Pablo-hub44's full-sized avatar

PabloJose Pablo-hub44

  • Mexico
  • 01:06 (UTC -06:00)
View GitHub Profile
@attilaking
attilaking / emailValidate.js
Created May 20, 2020 10:39
[Validate email] email validations #email #validate
function ValidateEmail(mail) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(mail)) {
return (true)
}
//alert("You have entered an invalid email address!")
return (false)
}
@elisavetTriant
elisavetTriant / min-max.js
Last active November 2, 2022 05:32
FreeCodeCamp min-max
/* Create a function called randomRange that takes a range myMin and myMax and returns
a random number that's greater than or equal to myMin, and is less than or equal to myMax, inclusive. */
// Only change code below this line.
function randomRange(myMin, myMax) {
return Math.floor(Math.random() * (myMax - myMin + 1)) + myMin; // Change this line
}
@dasdo
dasdo / GIT.md
Last active May 30, 2024 19:37
Lista de Comandos en GIT

Configuración Básica

Configurar Nombre que salen en los commits

	git config --global user.name "dasdo"

Configurar Email

	git config --global user.email dasdo1@gmail.com
@staltz
staltz / introrx.md
Last active June 2, 2024 11:03
The introduction to Reactive Programming you've been missing
@PaulKinlan
PaulKinlan / criticalcss-bookmarklet-devtool-snippet.js
Last active April 2, 2024 02:45
CriticalCSS Bookmarklet and Devtool Snippet.js
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");