This file contains hidden or 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 | |
cd %~dp0 | |
setlocal | |
setlocal enabledelayedexpansion | |
@echo off | |
for /d /r %%i in (Scans.) do ( | |
@if exist "%%i" ( | |
@set _scans=%%i | |
@echo !_scans! | |
cd %%i\.. |
This file contains hidden or 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
Set-Clipboard -Value ((Get-Clipboard) | Select-String "(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|""(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*"")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])" -AllMatches).Matches.Value |
This file contains hidden or 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
$set(_year,$left($if2(%originaldate%,%date%),4)) | |
$replace( | |
$replace( | |
$if(_year,%_year% ) | |
%album% | |
$if($and(%releasetype%,$not($find(%releasetype%,album))), \(%releasetype%\)) | |
\($if2(%albumartist%,%artist%)\) | |
$if($eq($upper(%_extension%),MP3),, $upper(%_extension%)) | |
/ | |
$if($gt(%totaldiscs%,1),$if(%discsubtitle%,CD$num(%discnumber%,$len(%totaldiscs%)) %discsubtitle%/)$num(%discnumber%,$len(%totaldiscs%))-,) |
This file contains hidden or 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 ON | |
cd %~dp0 | |
set /a missing=F | |
if "%~2" == "" ( | |
set missing=T | |
) else ( | |
if "%~1" == "" ( set missing=T ) | |
) | |
if "%missing%" == "T" ( | |
echo At least two input files must be specified. |
This file contains hidden or 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 | |
cd %~dp0 | |
ffmpeg -activation_bytes BYTES_GO_HERE -i %1 -vn -c:a copy "%~n1.mp4" | |
ren "%~n1.mp4" "%~n1.m4b" | |
@PAUSE |
This file contains hidden or 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
// Pixelated font shader by lox9973 | |
// It is a cutout shader, using alpha blending for 1 pixel antialiasing on the edges. | |
// Intended use is "3D Text" on an opaque object like a sign. | |
Shader "UI/PixelFont" { | |
Properties { | |
_MainTex ("Font Texture", 2D) = "white" {} | |
_Color ("Text Color", Color) = (1,1,1,1) | |
} | |
SubShader { | |
// Below Transparent queue. Renders after the skybox, but writes to depth. |
This file contains hidden or 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 | |
cd %~dp0 | |
for /R %%F in (*.3ds) do ( "c:\Program Files\7-Zip\7z.exe" a "%%F.7z" "%%F" & if not errorlevel 1 del "%%F" ) | |
@PAUSE |
This file contains hidden or 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 | |
cd %~dp0 | |
python.exe %~dpn0.py %1 %2 %3 %4 %5 %6 %7 %8 |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
template <class T> | |
class lolwut // a lolwut is a simple encapsulated array | |
{ | |
public: | |
lolwut() : data(NULL), size(0) | |
{ |
This file contains hidden or 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 | |
c: | |
cd %APPDATA% | |
cd ..\Local\Android\Sdk\platform-tools | |
adb get-state |