Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save CaptainOfFlyingDutchman/1f80850107e82862f42671b64f71fe79 to your computer and use it in GitHub Desktop.

Select an option

Save CaptainOfFlyingDutchman/1f80850107e82862f42671b64f71fe79 to your computer and use it in GitHub Desktop.

Revisions

  1. @christiangenco christiangenco revised this gist Jan 30, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions download_egghead_videos.md
    Original file line number Diff line number Diff line change
    @@ -53,12 +53,12 @@ https://egghead.io/lessons/javascript-redux-extracting-action-creators

    7. `youtube-dl -a list.txt`

    Run this rename script to get rid of the [Mojibake](https://en.wikipedia.org/wiki/Mojibake)
    8. Run this rename script to get rid of the [Mojibake](https://en.wikipedia.org/wiki/Mojibake)

    ```bash
    for i in *mp4; do
    mv "$i" "`echo $i | sed "s/#.*//"`"'.mp4';
    done
    ```

    8. Sort videos by time created to watch them in order
    9. Sort videos by time created to watch them in order
  2. @christiangenco christiangenco revised this gist Jan 30, 2016. 1 changed file with 43 additions and 28 deletions.
    71 changes: 43 additions & 28 deletions download_egghead_videos.md
    Original file line number Diff line number Diff line change
    @@ -1,49 +1,64 @@
    # Download videos from egghead

    Go to the egghead website, i.e. [Building a React.js App](https://egghead.io/series/build-your-first-react-js-application?order=asc&page=1)
    1. Install the [React Developer Tools Chrome Extension](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en).

    run
    2. Go to the egghead website, i.e. [Getting Started with Redux](https://egghead.io/lessons/javascript-redux-the-single-immutable-state-tree)

    3. Click `View -> Developer -> Javascript Console`, then the `React` tab, then the `<NextUpLessonList ...>` tag.

    4. Click back to the `Console` tab, then run:

    ```js
    $.each($('h4 a'), function(index, video){
    console.log(video.href);
    });
    $r.state.list.lessons.map(function(e){console.log(e.lesson_http_url)})
    ```

    You will get the following list

    ```text
    https://egghead.io/lessons/react-building-a-react-js-app-notetaker-introduction
    https://egghead.io/lessons/react-building-a-react-js-app-up-and-running-with-react-and-webpack
    https://egghead.io/lessons/react-building-a-react-js-app-basic-routing-with-react-router
    https://egghead.io/lessons/react-building-a-react-js-app-state-props-and-thinking-in-react
    https://egghead.io/lessons/react-building-a-react-js-app-component-validation-with-proptypes
    https://egghead.io/lessons/react-building-a-react-js-app-using-reactfire-to-add-data-persistence
    https://egghead.io/lessons/react-building-a-react-js-app-managing-state-in-child-components
    https://egghead.io/lessons/react-building-a-react-js-app-transitions-with-react-router
    https://egghead.io/lessons/react-building-a-react-js-app-making-server-requests-in-react-with-axios
    https://egghead.io/lessons/react-building-a-react-js-app-rendering-a-ui-of-dynamic-data
    https://egghead.io/lessons/react-building-a-react-js-app-componentwillreceiveprops-and-react-router
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-non-components
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-createclass-to-javascript-classes-and-proptypes
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-proptypes-in-es6
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-routing-without-mixins
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-firebase-and-react-binding-with-re-base
    https://egghead.io/lessons/javascript-redux-the-single-immutable-state-tree
    https://egghead.io/lessons/javascript-redux-describing-state-changes-with-actions
    https://egghead.io/lessons/javascript-redux-pure-and-impure-functions
    https://egghead.io/lessons/javascript-redux-the-reducer-function
    https://egghead.io/lessons/javascript-redux-writing-a-counter-reducer-with-tests
    https://egghead.io/lessons/javascript-redux-store-methods-getstate-dispatch-and-subscribe
    https://egghead.io/lessons/javascript-redux-implementing-store-from-scratch
    https://egghead.io/lessons/javascript-redux-react-counter-example
    https://egghead.io/lessons/javascript-redux-avoiding-array-mutations-with-concat-slice-and-spread
    https://egghead.io/lessons/javascript-redux-avoiding-object-mutations-with-object-assign-and-spread
    https://egghead.io/lessons/javascript-redux-writing-a-todo-list-reducer-adding-a-todo
    https://egghead.io/lessons/javascript-redux-writing-a-todo-list-reducer-toggling-a-todo
    https://egghead.io/lessons/javascript-redux-reducer-composition-with-arrays
    https://egghead.io/lessons/javascript-redux-reducer-composition-with-objects
    https://egghead.io/lessons/javascript-redux-reducer-composition-with-combinereducers
    https://egghead.io/lessons/javascript-redux-implementing-combinereducers-from-scratch
    https://egghead.io/lessons/javascript-redux-react-todo-list-example-adding-a-todo
    https://egghead.io/lessons/javascript-redux-react-todo-list-example-toggling-a-todo
    https://egghead.io/lessons/javascript-redux-react-todo-list-example-filtering-todos
    https://egghead.io/lessons/javascript-redux-extracting-presentational-components-todo-todolist
    https://egghead.io/lessons/javascript-redux-extracting-presentational-components-addtodo-footer-filterlink
    https://egghead.io/lessons/javascript-redux-extracting-container-components-filterlink
    https://egghead.io/lessons/javascript-redux-extracting-container-components-visibletodolist-addtodo
    https://egghead.io/lessons/javascript-redux-passing-the-store-down-explicitly-via-props
    https://egghead.io/lessons/javascript-redux-passing-the-store-down-implicitly-via-context
    https://egghead.io/lessons/javascript-redux-passing-the-store-down-with-provider-from-react-redux
    https://egghead.io/lessons/javascript-redux-generating-containers-with-connect-from-react-redux-visibletodolist
    https://egghead.io/lessons/javascript-redux-generating-containers-with-connect-from-react-redux-addtodo
    https://egghead.io/lessons/javascript-redux-generating-containers-with-connect-from-react-redux-footerlink
    https://egghead.io/lessons/javascript-redux-extracting-action-creators
    ```

    Steps:

    1. Save as list.txt
    5. Save as list.txt

    2. `brew install youtube-dl`

    3. `youtube-dl -a list.txt`
    6. `brew install youtube-dl`

    7. `youtube-dl -a list.txt`

    Run this rename script to get rid of the [Mojibake](https://en.wikipedia.org/wiki/Mojibake)

    ```bash
    for i in *mp4; do
    mv "$i" "`echo $i | sed "s/#.*//"`"'.mp4';
    done
    ```
    ```

    8. Sort videos by time created to watch them in order
  3. @ldong ldong revised this gist Jun 30, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_egghead_videos.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ Go to the egghead website, i.e. [Building a React.js App](https://egghead.io/ser
    run

    ```js
    $.each($('h4 a'), function(index, video.href){
    $.each($('h4 a'), function(index, video){
    console.log(video.href);
    });
    ```
  4. @ldong ldong revised this gist Jun 30, 2015. 1 changed file with 9 additions and 3 deletions.
    12 changes: 9 additions & 3 deletions download_egghead_videos.md
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,17 @@
    # Download videos from egghead

    Go to the egghead website, i.e. [Building a React.js App](https://egghead.io/series/build-your-first-react-js-application?order=asc&page=1)
    ```

    run

    ```js
    $.each($('h4 a'), function(index, video.href){
    console.log(video.href);
    });
    ```

    You will get the following list

    ```text
    https://egghead.io/lessons/react-building-a-react-js-app-notetaker-introduction
    https://egghead.io/lessons/react-building-a-react-js-app-up-and-running-with-react-and-webpack
    @@ -28,14 +33,15 @@ https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-firebase-a

    Steps:

    1. Save as react.txt
    1. Save as list.txt

    2. `brew install youtube-dl`

    3. `youtube-dl -a react.txt`
    3. `youtube-dl -a list.txt`


    Run this rename script to get rid of the [Mojibake](https://en.wikipedia.org/wiki/Mojibake)

    ```bash
    for i in *mp4; do
    mv "$i" "`echo $i | sed "s/#.*//"`"'.mp4';
  5. @ldong ldong revised this gist Jun 30, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions download_egghead_videos.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    # Download videos from egghead

    Go to the egghead website, i.e. [Building a React.js App](https://egghead.io/series/build-your-first-react-js-application?order=asc&page=1)
    ```
    $.each($('h4 a'), function(index, video.href){
    console.log(video.href);
  6. @ldong ldong revised this gist Jun 30, 2015. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions download_egghead_videos.md
    Original file line number Diff line number Diff line change
    @@ -32,3 +32,11 @@ Steps:
    2. `brew install youtube-dl`

    3. `youtube-dl -a react.txt`


    Run this rename script to get rid of the [Mojibake](https://en.wikipedia.org/wiki/Mojibake)
    ```bash
    for i in *mp4; do
    mv "$i" "`echo $i | sed "s/#.*//"`"'.mp4';
    done
    ```
  7. @ldong ldong created this gist Jun 30, 2015.
    34 changes: 34 additions & 0 deletions download_egghead_videos.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    # Download videos from egghead

    ```
    $.each($('h4 a'), function(index, video.href){
    console.log(video.href);
    });
    ```

    ```text
    https://egghead.io/lessons/react-building-a-react-js-app-notetaker-introduction
    https://egghead.io/lessons/react-building-a-react-js-app-up-and-running-with-react-and-webpack
    https://egghead.io/lessons/react-building-a-react-js-app-basic-routing-with-react-router
    https://egghead.io/lessons/react-building-a-react-js-app-state-props-and-thinking-in-react
    https://egghead.io/lessons/react-building-a-react-js-app-component-validation-with-proptypes
    https://egghead.io/lessons/react-building-a-react-js-app-using-reactfire-to-add-data-persistence
    https://egghead.io/lessons/react-building-a-react-js-app-managing-state-in-child-components
    https://egghead.io/lessons/react-building-a-react-js-app-transitions-with-react-router
    https://egghead.io/lessons/react-building-a-react-js-app-making-server-requests-in-react-with-axios
    https://egghead.io/lessons/react-building-a-react-js-app-rendering-a-ui-of-dynamic-data
    https://egghead.io/lessons/react-building-a-react-js-app-componentwillreceiveprops-and-react-router
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-non-components
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-createclass-to-javascript-classes-and-proptypes
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-proptypes-in-es6
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-routing-without-mixins
    https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-firebase-and-react-binding-with-re-base
    ```

    Steps:

    1. Save as react.txt

    2. `brew install youtube-dl`

    3. `youtube-dl -a react.txt`