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
// MIT License | |
// Copyright (c) 2024 A2va | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
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 argparse | |
import glob | |
import os | |
import random | |
from urllib.parse import urlparse | |
import numpy as np | |
import torch | |
from PIL import Image | |
from torchvision import transforms |
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
# PowerShell version 7 and higher, the default intalled on Windows is 5.1 | |
# https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.1 | |
# on Windows Terminal a profiles for PowerShell 7 is directly created. | |
# ffmpeg and ffprobe must be on PATH. | |
<# | |
.DESCRIPTION | |
Convert a media file to format compatible with chromecast. | |
PowerShell version 7 and higher is needed, the default intalled on Windows is 5.1. | |
.PARAMETER i |
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 os | |
import zipfile | |
import tempfile | |
import shutil | |
folder = 'path/to/folder' | |
for dirpath, dirnames, filenames in os.walk(folder): | |
for filename in [f for f in filenames if f.endswith(".docx")]: | |
full_path = os.path.join(dirpath, filename) |
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
; Plug-in: SmoothZoom | |
; Author: A2va | |
; Version: 1.0 | |
; Date: 28.02.2020 | |
; Tested with: GIMP 2.10 | |
;This program is free software: you can redistribute it and/or modify | |
;it under the terms of the GNU General Public License as published by | |
;the Free Software Foundation, either version 3 of the License, or | |
;(at your option) any later version. |
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
#!/usr/bin/env python | |
# Plug-in: SmoothZoom | |
# Author: A2va | |
# Version: 1.0 | |
# Date: 28.02.2020 | |
# Tested with: GIMP 2.10 | |
#This program is free software: you can redistribute it and/or modify | |
#it under the terms of the GNU General Public License as published by |
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
scoreboard players set Rand Spreadplayers 0 | |
#Set Center | |
scoreboard players set CenterX Spreadplayers 0 | |
scoreboard players set CenterZ Spreadplayers 0 | |
#Set Radius | |
scoreboard players set Radius Spreadplayers 1000 | |
scoreboard players set Radius2 Spreadplayers 0 | |
scoreboard players operation Radius2 Spreadplayers = Radius Spreadplayers | |
scoreboard players operation Radius2 Spreadplayers *= #2 Spreadplayers |