Download Youtube Videos using Ruby or PHP
Just copy the appropriate script, provide the video_id and run. It will list download links for different qualities and streams.
:P
| require 'sidekiq/api' | |
| # 1. Clear retry set | |
| Sidekiq::RetrySet.new.clear | |
| # 2. Clear scheduled jobs | |
| Sidekiq::ScheduledSet.new.clear |
| // remove duplicates | |
| crunch("ddaaiillyy ddoouubbllee"); // "daily double" | |
| crunch("4444abcabccba"); // "4abcabcba" | |
| crunch("ggggggggggggggg"); // "g" | |
| crunch("a"); // "a" | |
| crunch(""); // "" | |
| function crunch(string) { | |
| let letters = string.split(""); |
| Small Code Challenge Problems | |
| - 20 - 45 minutes | |
| - typical solutions: 10-40 LOC | |
| - used extensively in interviews for a reason | |
| - mastery on a language | |
| - logic / reasoning | |
| - communications | |
| - not a skill that you "acquire and file away", but needs a lot of practice | |
| Understand the Problem |
| <?php | |
| /* | |
| Template Name: Print Processing Orders :) | |
| */ | |
| if (!is_user_logged_in() || !current_user_can('manage_options')) wp_die('This page is private.'); | |
| ?> | |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |