Configurar Nombre que salen en los commits
git config --global user.name "dasdo"
Configurar Email
git config --global user.email dasdo1@gmail.com
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) | |
} |
/* 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 | |
} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(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(": "); |