This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg installation working in Mac Catalina | |
| brew tap varenc/ffmpeg | |
| brew tap-pin varenc/ffmpeg | |
| brew install ffmpeg $(brew options ffmpeg --compact) | |
| ffmpeg -loop 1 -i Lo\ que\ Aprendí.png -c:v libx264 -t 73 -pix_fmt yuv420p -vf scale=1280:720 Lo\ que\ Aprendí.mp4 | |
| ffmpeg -i Lo\ que\ Aprendí.mp4 -i Lo\ que\ Aprendí.mp3 Lo\ que\ Aprendí.mkv -c copy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| for i in *.MP4; | |
| do name=`echo $i | cut -d'.' -f1`; | |
| FILE="small/${name}_small.MP4" | |
| if [ -f "$FILE" ]; then | |
| echo "$FILE exist" | |
| else | |
| echo "$FILE does not exist. Creating..." | |
| ffmpeg -i "$i" "${FILE}"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data_array = [[1,2,[3]],4] | |
| def manual_flatten(arr) | |
| new_array = [] | |
| arr.each do |elm| | |
| if elm.kind_of?(Array) | |
| new_array.concat(manual_flatten(elm)) | |
| else | |
| new_array << elm | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :deploy do | |
| desc "Hot-reload God configuration for the Resque worker" | |
| task :reload_god_config do | |
| sudo "god stop resque" | |
| sudo "god load #{File.join(deploy_to, 'current', 'config', 'resque-' + rails_env + '.god')}" | |
| sudo "god start resque" | |
| end | |
| end | |
| # append to the bottom: |
This is a helper to download the frontendmasters videos when you have full access to a course.
- Run in Chrome Developer tools console the VideoObserver.js in the frontendmasters page when you start the first video of the course you want to download
This step will start all videos through browser collecting their download urls and the Names of each video. When finish it will print the ulr's list and the Names
- With JDownloader (preferible) preconfigured to download one file at a time, to avoid throttling restrictions, download the
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <label :class="{ active: anySelected }"> | |
| {{item.name}} | |
| <input type="checkbox" v-model="anySelected" name="filter" :value="item.id" v-on:click="refresh()"> | |
| </label> | |
| </template> | |
| <script> | |
| export default { | |
| props: ['itemData'], |
- Utiliza la última versión de Node asegúrate de usar la versión
6.9.0o mayor. - Instala NPM (generalmente viene con Node, así que no te preocupes) 😙
- Instala Angular CLI globalmente:
$ npm install @angular/cli -g