Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
  console.log(video.href);
});| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script> | |
| function invite() { | |
| var url = '/people/~/mailbox', | |
| body = { | |
| recipients: { | |
| values: [{ | |
| person: { | 
| @mixin ie6 { * html & { @content } } | |
| #logo { | |
| background-image: url("/images/logo.png"); | |
| @include ie6 { background-image: url("/images/logo.gif"); } | |
| } | 
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
  console.log(video.href);
});| # Requirements | |
| * Python 2.7 | |
| * Google Chrome | |
| * ChromeDriver - WebDriver for Chrome | |
| - Download the latest chromedrive which is 2.28 from here - https://sites.google.com/a/chromium.org/chromedriver/downloads | |
| - Extract and move `chromedriver` file to `/usr/local/bin/chromedriver` | |
| - git clone https://github.com/li-xinyang/OS_FrontendMaster-dl | |
| - cd OS_FrontendMaster-dl | 
| Here's how to make jQuery DataTables work with npm and webpack. This is the simplest way I found to do it. | |
| See the previous revision of this gist for a way to do it with forcing AMD to be disabled if you need that. | |
| Install DT core: npm install datatables.net | |
| Install a DT style: npm install datatables.net-dt | |
| Then to initialize DT in your app, do this in your main entry point: | |
| // you can use import or require | |
| import dt from 'datatables.net'; | 
| // 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
| const axios = require('axios'); // promised based requests - like fetch() | |
| function getCoffee() { | |
| return new Promise(resolve => { | |
| setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
| }); | |
| } | 
| const waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
| const asyncForEach = (array, callback) => { | |
| for (let index = 0; index < array.length; index++) { | |
| await callback(array[index], index, array) | |
| } | |
| } | |
| const start = async () => { | |
| await asyncForEach([1, 2, 3], async (num) => { | |
| await waitFor(50) | 
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/