View echooff.bat
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 (1,1,5) do ( | |
echo %%i | |
) | |
pause |
View String.bat
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 | |
SET S=ABCDEFGHIJ | |
echo %S% | |
SET S=ABCDEFGHIJ | |
echo %S:~3% | |
SET S=ABCDEFGHIJ | |
echo %S:~0,5% |
View seleniumTestAuto.py
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
from selenium import webdriver | |
from webdriver_manager.chrome import ChromeDriverManager | |
driver = webdriver.Chrome(ChromeDriverManager().install()) | |
driver.get('http://tecsingularity.com/') |
View captureScreenshot.py
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
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) |
View seleniumTest.py
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
from selenium import webdriver | |
webDriver = webdriver.Chrome('chromedriver103.exe') | |
webDriver.get('http://tecsingularity.com/') |
View DateAndTime.bat
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 %date% | |
echo %time% | |
set time2=%time:~0,8% | |
echo %time2% | |
pause |
View invMatrix.py
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([[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], |
View changeVolume.bat
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.mp3 -vcodec copy -af volume=6dB output_plus_6db.mp3 | |
ffmpeg -i input.mp3 -vcodec copy -af volume=-6dB output_minus_6db.mp3 |
View ChangeFramerate.bat
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 | |
ffmpeg -i input.mp4 -r 10 output_fps10.mp4 | |
ffmpeg -i input.mp4 -r 60 output_fps60.mp4 | |
pause |
View AudioLoop.bat
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 -y -stream_loop 10 -fflags +genpts -i input.mp3 -c copy input_10times.mp3 | |
pause |
NewerOlder