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
import numpy as np | |
matrix1 = np.array([[1, 2], | |
[3, 4]]) | |
det1 = np.linalg.det(matrix1) | |
print(det1) | |
matrix2 = np.array([[1, 2, 3], | |
[4, 5, 6], | |
[7, 8, 9]]) |
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
ffmpeg -i input1.mp4 -i input2.mp4 -filter_complex "hstack" output.mp4 | |
ffmpeg -i input1.mp4 -i input2.mp4 -filter_complex "vstack" output.mp4 | |
ffmpeg -i input1.mp4 -i input2.mp4 -i input3.mp4 -filter_complex "[0:v][1:v][2:v]hstack=inputs=3[v]" -map "[v]" output.mp4 | |
ffmpeg -i input1.mp4 -i input2.mp4 -i input3.mp4 -filter_complex "[0:v][1:v][2:v]vstack=inputs=3[v]" -map "[v]" output.mp4 | |
ffmpeg -i input1.mp4 -i input2.mp4 -i input3.mp4 -i input4.mp4 -filter_complex "[0:v][1:v][2:v][3:v]xstack=inputs=4:layout=0_0|w0_0|0_h0|w0_h0[v]" -map "[v]" output_hstack.mp4 | |
ffmpeg -i input1.mp4 -i input2.mp4 -i input3.mp4 -filter_complex "[0:v][1:v][2:v]xstack=inputs=3:layout=0_0|w0_0|0_h0[v]" -map "[v]" output.mp4 | |
pause |
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
@echo off | |
setlocal enabledelayedexpansion | |
for /l %%a in (1,1,1000) do ( | |
set num=000%%a | |
set num=!num:~-4,4! | |
echo !num! | |
) | |
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
\documentclass{article} | |
\usepackage{color} | |
\begin{document} | |
\section*{Color test 2} | |
\textcolor[rgb]{0.1, 0.5, 0.1}{test} | |
\textcolor[rgb]{0.8, 0.5, 0.3}{test} | |
\textcolor[rgb]{0.7, 0.4, 0.9}{test} |
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
\documentclass{article} | |
\usepackage{xcolor} | |
\begin{document} | |
\section*{Color test} | |
\noindent | |
\textcolor{black}{testBlack} \\ | |
\textcolor{darkgray}{testDarkgray} \\ |
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
@echo off | |
for %%i in (*) do ( | |
echo %%i >> filelist1.txt | |
) | |
for %%i in (*.jpg) do ( | |
echo %%i >> filelist2.txt | |
) |
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
@echo off | |
for /l %%i in (0,1,10) do ( | |
echo %%i | |
) | |
pause |
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
import numpy as np | |
from pygsp import graphs, filters | |
G = graphs.Logo() | |
G.estimate_lmax() | |
g = filters.Heat(G, tau=100) | |
DELTAS = [20, 30, 1090] | |
s = np.zeros(G.N) | |
s[DELTAS] = 1 | |
s = g.filter(s) |
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
ffmpeg -i input.mp4 -vf thumbnail=1000,scale=384:216 -frames:v 1 output.png | |
pause |
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
ffmpeg -i input.mp4 -vf pad=w=iw+40:h=ih+40:x=20:y=20:color=white output_pad_white.mp4 | |
ffmpeg -i input.mp4 -vf pad=w=iw+40:h=ih+40:x=20:y=20:color=black output_pad_black.mp4 | |
ffmpeg -i output_pad_black.mp4 -s 1920x1080 output_pad_black_resized.mp4 | |
pause |