aimacode / aima-javascript

Javascript visualization of algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"
http://aimacode.github.io/aima-javascript/
MIT License
538 stars 216 forks source link

Quickly open up all of the implemented chapters by their index.html #176

Closed MichaelDimmitt closed 4 years ago

MichaelDimmitt commented 4 years ago

Feel free to close this issue if out of scope of the project. I found it helpful so I thought it would be nice to post for others. 👍

Quickly open up all of the implemented chapters by their index.html

Demonstration script for Mac Computer below:

{
    for d in */ ; do (
        cd "$d" 
        && ls | grep -c '.js' >/dev/null 
        && echo "$d" 
        && open file://$PWD/index.html
    ); done;
}

Demonstration script for Linux Computer below:

{
    for d in */ ; do (
        cd "$d" 
        && ls | grep -c '.js' >/dev/null 
        && echo "$d" 
        && xdg-open file://$PWD/index.html
    ); done;
}