# bundle exec rails c
Could not find rake-12.3.0 in any of the sources
Run `bundle install` to install missing gems.
# bundle install --binstubs
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/bin/sh | |
| # | |
| # Check for ruby style errors | |
| red='\033[0;31m' | |
| green='\033[0;32m' | |
| yellow='\033[0;33m' | |
| NC='\033[0m' | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 |
| require 'benchmark' | |
| iterations = 1_000_000 | |
| words = 'foo, bar, test, boo'.split(',').map(&:strip) | |
| string = 'this is going foo be awesome~!' | |
| Benchmark.bmbm do |bm| | |
| bm.report do | |
| iterations.times do | |
| words.any? { |s| string.include?(s) } | |
| end |
Install the React Developer Tools Chrome Extension.
Go to the egghead website, i.e. Getting Started with Redux
Click View -> Developer -> Javascript Console, then the React tab, then the <NextUpLessonList ...> tag.
Click back to the Console tab, then run:
You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl. In the example further down I'm using my Pluralsight account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool
The flags you have to supply may vary depending on which site you make a request to.
You can get a free 3 month trial to Pluralsight by signing up for free to Visual Studio Dev Essentials