This file contains 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
# $1 = Video URL | |
# $2 = Time to start (format 00:00:00) | |
# $3 = Duration of sample (format 00:00:00) | |
# $4 = Output file | |
youtube-dl -f mp4 \ | |
$1 \ | |
-o - \ | |
| ffmpeg -i pipe: \ | |
-ss $2 \ | |
-t $3 \ |
This file contains 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
#!/bin/bash | |
# set -x | |
KEY=$1 | |
FILE=$2 | |
# If file doesn't exists | |
if [ ! -f "$FILE" ] | |
then | |
touch $FILE | |
fi |
This file contains 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
https://www.youtube.com/playlist?list=PLhM2cOpnyjtYwbqD0LzpqFfIKMBLycsbe | |
https://www.youtube.com/playlist?list=PLQy7BP5B_ri-0fVxdD5Dj7Glm-PvsocjV | |
https://www.youtube.com/playlist?list=PLQy7BP5B_ri-s-crnEgeWUwOa7pJNf4tM |
This file contains 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
// g++ -o ccc ccc.cpp | |
// ./ccc 'a' 'aacb' && echo 'YES' || echo 'NO' | |
#include <iostream> | |
#define ENDSTRING '\0' | |
#define DOTCHAR '.' | |
#define STARCHAR '*' | |
int regex(char *str, char* pattern) { | |
// We are gonna use the C++ pointer arithmetic to go forward through our strings. | |
// #Pointer #PointerArithmetic |
This file contains 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
#!/bin/bash | |
# Storing the input string | |
pattern=$1 | |
string=$2 | |
# We will use 2 pointers | |
ptrPattern=0 | |
ptrString=0 |
This file contains 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
-- Compilation : ghc ccc2019.hs -o regex | |
-- Usage : ./regex "a*b" "aaab" | |
import System.Environment | |
import System.Exit | |
main :: IO () | |
eq a b | a == '.' = True |
This file contains 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
case class RegexOperator(c:Char,a:Option[Char]=None) { | |
def eqmatch(ch:Char): Boolean = ch == c || c == '.' | |
} | |
def parsePattern(p:String) = | |
p.foldLeft(Seq.empty[RegexOperator])( (agg,el)=> el match { | |
case '*' =>agg.init :+ agg.last.copy(a=Some('*')) | |
case c => agg :+ RegexOperator(c) | |
}) | |
def regex(p:String,s:String): Boolean = { |
This file contains 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
Shirakawa |
This file contains 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
Chongqing Hongyadong | |
Zhangjiajie | |
District de Tai'erzhuang, Zaozhuang, Shandong, Chine | |
Xiaozhai Tiankeng (小寨天坑) | |
Huading National Forest Park | |
敦煌 | |
长白山 天池 | |
九寨沟 | |
China, Island Hainan, city Sanya, Dadonghai beach | |
shanxi xiguan / School that suffle |
This file contains 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
37 - https://www.youtube.com/watch?v=QEbcShAoCss - https://www.imdb.com/title/tt0100758/ | |
36 - https://www.youtube.com/watch?v=zJHWmSa6a30 - https://www.imdb.com/title/tt0275277/ | |
35 - https://www.youtube.com/watch?v=ESKg7nbTmUI - https://www.imdb.com/title/tt0093777/ | |
34 - https://www.youtube.com/watch?v=oigoehRD-VE - https://www.imdb.com/title/tt0065955/ | |
33 - https://www.youtube.com/watch?v=mecSHTQw8x4 - https://www.imdb.com/title/tt0103874/ | |
32 - https://www.youtube.com/watch?v=LmHLedAnkfY - https://www.imdb.com/title/tt0395584/ | |
31 - https://www.youtube.com/watch?v=-DhX8gFGALc - https://www.imdb.com/title/tt0062711/ | |
30 - https://www.youtube.com/watch?v=d71jVWrY4eI - https://www.imdb.com/title/tt0091605/ | |
29 - https://www.youtube.com/watch?v=YRXdDq6h0hI - https://www.imdb.com/title/tt0119567/ | |
28 - https://www.youtube.com/watch?v=Uy8tn_JltNs - https://www.imdb.com/title/tt0109592/ |