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
local ins = {} | |
FILE = "tmpfile.txt" | |
CYCLES = 20 | |
function average(inmassiv) | |
local rezik = 0 | |
for i = 1, #inmassiv do | |
rezik = inmassiv[i] + rezik |
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
:: A small batch adaptation of this script http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |
:: USAGE | |
:: gifenc.bat [inputfile] [outputfile] [xsize] [ysize] | |
SET palette="palette.png" | |
SET filters="fps=15,scale=%3:%4:flags=lanczos" | |
ffmpeg -i %1 -vf "%filters%,palettegen" -y %palette% | |
ffmpeg -i %1 -i %palette% -lavfi "%filters% [x]; [x][1:v] paletteuse" -y %2 |
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
taskkill /IM "postgres.exe" /F |
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://gog.com/game/baldurs_gate_2_enhanced_edition | |
https://gog.com/game/baldurs_gate_enhanced_edition | |
https://gog.com/game/pyre | |
https://gog.com/game/baldurs_gate_siege_of_dragonspear | |
https://gog.com/game/bastion | |
https://gog.com/game/planescape_torment_enhanced_edition | |
https://gog.com/game/turok | |
https://gog.com/game/faster_than_light | |
https://gog.com/game/legend_of_grimrock | |
https://gog.com/game/torchlight_ii |
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
# Change your desired path | |
$projectFolders = Get-ChildItem -Directory -Path "D:\projects" | |
foreach ($folder in $projectFolders) { | |
$projectPath = Join-Path $folder.FullName "Cargo.toml" | |
if (Test-Path $projectPath) { | |
Write-Host "Cleaning project in $($folder.FullName)..." | |
Set-Location -Path $folder.FullName | |
Invoke-Expression -Command "cargo clean" |