Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
// It is important to declare your variables. | |
(function() { | |
var foo = 'Hello, world!'; | |
print(foo); //=> Hello, world! | |
})(); | |
// Because if you don't, the become global variables. | |
(function() { |
last 3 versions | |
not Explorer < 11 | |
not ExplorerMobile < 11 |
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
// Cross browser, backward compatible solution | |
(function( window, Date ) { | |
// feature testing | |
var raf = window.mozRequestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.msRequestAnimationFrame || | |
window.oRequestAnimationFrame; | |
window.animLoop = function( render, element ) { | |
var running, lastFrame = +new Date; |
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
Currently considering https://github.com/webdriverio/webdrivercss
Core Goals:
Currently considering https://github.com/webdriverio/webdrivercss
Core Goals:
Currently considering https://github.com/webdriverio/webdrivercss
Core Goals:
for(var b in window) { | |
if(window.hasOwnProperty(b)) console.log(b); | |
} |
first you have to [https://help.github.com/articles/configuring-a-remote-for-a-fork/](configure a remote for a fork)
Then each time you whant to update your fork from the master you nned to do:
git fetch upstream
git checkout master
git merge upstream/master