When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
@ECHO OFF | |
REM support "Umlaute äöü" (Use codepage CP-1252 aka "Windows-1252" aka "Latin 1") | |
CHCP 1252 >nul | |
TITLE Create backup of XXX | |
SET "$PS_EXE=powershell.exe" | |
SET "_SOURCE_FILENAME=xxx.xlsx" | |
SET "_TARGET_BACKUP_FOLDER=X:\abc\def\geh\backup" |
fetch("post.php", { | |
method: "post", | |
mode: "cors", | |
headers: { | |
"Content-Type": "application/json" | |
}, | |
body: {data: "data"} | |
}) | |
.then(response => { | |
return response.text(); // returns text that can used as html |
REM Update date/timestamp of file in positional argument 1. | |
REM Syntax: `touch.bat <filename>` | |
REM Example: `touch.bat "C:\any path\my file.ext"` | |
@COPY /B %1+,, %1 |
/*md | |
- File: filename.ahk; Type: Autohotkey script | |
- AHK Version: 1.0.0 | |
- Author: | |
- Copyright: | |
- Notes: | |
*/ | |
MYVERSION=1.0.0 |
:task-add-task <filename>: Adds/appends a task from a file to Taskfile.bat | |
IF "%1"=="add-task0" ( | |
ECHO Missing argument ^<filename^> | |
GOTO :EOF | |
) | |
TYPE "%1" >>%scriptName% | |
ECHO. >>%scriptName% | |
GOTO :EOF |
@REM Taskfile.bat example task for opening a project folder with Visual Code | |
:task-projectX: Open ProjectX folder in code | |
ECHO open ProjectX folder | |
SET taskProjectFolder = "C:\Projects\ProjectX\" | |
CALL code %taskProjectFolder% | |
GOTO :EOF |
@Taskfile.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 |
@curl -so Taskfile.bat https://gist.githubusercontent.com/digitalfun/da780fdb2cc6262febe854e451e13d55/raw/b0214216858a9e68583bf043a7db0611b40f838a/%255BTaskfile-bat%255D%2520Taskfile.template.bat | |
@ECHO Taskfile initialized. | |
@ECHO Usage: Taskfile.bat ^<task^> ^<args^> |
@COPY "%~dp0Taskfile.template.bat" "Taskfile.bat" | |
@ECHO Taskfile initialized. | |
@ECHO Usage: Taskfile.bat ^<task^> ^<args^> |