Skip to content

Instantly share code, notes, and snippets.

@echo off
for /l %%i in (1,1,5) do (
echo %%i
)
pause
@echo off
SET S=ABCDEFGHIJ
echo %S%
SET S=ABCDEFGHIJ
echo %S:~3%
SET S=ABCDEFGHIJ
echo %S:~0,5%
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get('http://tecsingularity.com/')
from selenium import webdriver
# Open web-driver
webDriver = webdriver.Chrome('chromedriver102.exe')
# Access to URL
webDriver.get('http://tecsingularity.com/')
# Set image(window) size
webDriver.set_window_size(1920, 1080)
from selenium import webdriver
webDriver = webdriver.Chrome('chromedriver103.exe')
webDriver.get('http://tecsingularity.com/')
echo %date%
echo %time%
set time2=%time:~0,8%
echo %time2%
pause
import numpy as np
matrix1 = np.array([[3, 4],
[1, 1]])
matrix1_inv = np.linalg.inv(matrix1)
print(matrix1_inv)
print(np.dot(matrix1,matrix1_inv))
matrix2 = np.array([[1, 1, 2],
[3, -1, 2],
ffmpeg -i input.mp3 -vcodec copy -af volume=6dB output_plus_6db.mp3
ffmpeg -i input.mp3 -vcodec copy -af volume=-6dB output_minus_6db.mp3
ffmpeg -i input.mp4
ffmpeg -i input.mp4 -r 10 output_fps10.mp4
ffmpeg -i input.mp4 -r 60 output_fps60.mp4
pause
ffmpeg -y -stream_loop 10 -fflags +genpts -i input.mp3 -c copy input_10times.mp3
pause