Install Rubocop by adding it to your Gemfile:
gem 'rubocop'
gem 'rubocop-rails'
And running:
bundle install
[ | |
{ | |
"url": "http://money.cnn.com", | |
"rss": "http://rss.cnn.com/rss/money_topstories.rss" | |
}, | |
{ | |
"url": "http://thehill.com", | |
"rss": "http://thehill.com/rss/syndicator/19110" | |
}, | |
{ |
imdb_title_id,original_title,year,genre,duration,director,writer,production_company,actors,description,avg_vote,votes | |
tt0111161,The Shawshank Redemption,1994,Drama,142,Frank Darabont,"Stephen King, Frank Darabont",Castle Rock Entertainment,"Tim Robbins, Morgan Freeman, Bob Gunton, William Sadler, Clancy Brown, Gil Bellows, Mark Rolston, James Whitmore, Jeffrey DeMunn, Larry Brandenburg, Neil Giuntoli, Brian Libby, David Proval, Joseph Ragno, Jude Ciccolella","Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency.",9.3,2278845 | |
tt0068646,The Godfather,1972,"Crime, Drama",175,Francis Ford Coppola,"Mario Puzo, Francis Ford Coppola",Paramount Pictures,"Marlon Brando, Al Pacino, James Caan, Richard S. Castellano, Robert Duvall, Sterling Hayden, John Marley, Richard Conte, Al Lettieri, Diane Keaton, Abe Vigoda, Talia Shire, Gianni Russo, John Cazale, Rudy Bond",The aging patriarch of an organized crime dynasty transfers control of his clandestine empire |
You may need to install yarn
(Javascript package manager) before you can create Rails apps that involve Javascript frontends.
For the WSL run the following commands:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
In class (and in challenge U5) we covered CSV datasets. You can also gather data from JSON APIs or even from Web Scraping. I've got a video you can watch to learn about those techniques: JSON API Consumption And Web Scraping
Website: github.com/toddmotto/public-apis
A big list of categorized public APIs that you could pull data from. Easiest to pick one where the "Auth" property is set to "No" because then you won't need to sign up for an API key. However, signing up for an API key usually isn't very difficult.
P1 | |
# PBM Black & White Example | |
24 7 | |
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 | |
0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 | |
0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 0 | |
0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 | |
0 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 0 0 0 0 | |
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 |
<?php | |
require('number_game_functions.php'); | |
$message_for_user = "I've picked a random number between " . | |
RANDOM_NUMBER_MINIMUM . " and " . | |
RANDOM_NUMBER_MAXIMUM . ". Can you guess it?"; | |
$user_has_guessed_correctly = user_guessed_correctly(); | |
if (user_submitted_a_guess()) { |
Log file open, 04/17/23 12:22:26 | |
LogWindows: Failed to load 'aqProf.dll' (GetLastError=0) | |
LogWindows: File 'aqProf.dll' does not exist | |
LogProfilingDebugging: Loading WinPixEventRuntime.dll for PIX profiling (from ../../../Engine/Binaries/ThirdParty/Windows/WinPixEventRuntime/x64). | |
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=0) | |
LogWindows: File 'VtuneApi.dll' does not exist | |
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=0) | |
LogWindows: File 'VtuneApi32e.dll' does not exist | |
LogWindows: Started CrashReportClient (pid=24412) | |
LogWindows: Custom abort handler registered for crash reporting. |
Log file open, 04/17/23 11:52:31 | |
LogWindows: Failed to load 'aqProf.dll' (GetLastError=0) | |
LogWindows: File 'aqProf.dll' does not exist | |
LogProfilingDebugging: Loading WinPixEventRuntime.dll for PIX profiling (from ../../../Engine/Binaries/ThirdParty/Windows/WinPixEventRuntime/x64). | |
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=0) | |
LogWindows: File 'VtuneApi.dll' does not exist | |
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=0) | |
LogWindows: File 'VtuneApi32e.dll' does not exist | |
LogWindows: Started CrashReportClient (pid=27956) | |
LogWindows: Custom abort handler registered for crash reporting. |
# Visual Studio 2015 user specific files | |
.vs/ | |
# Compiled Object files | |
*.slo | |
*.lo | |
*.o | |
*.obj | |
# Precompiled Headers |