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 | |
rem file: | |
rem create-directory-structure-for-main-storage.cmd | |
rem | |
rem authors: | |
rem Nurudin Imsirovic | |
rem | |
rem summary: | |
rem This batch script creates a directory structure at the |
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
<?php | |
// Cleanup SVG by isolating SVG tag | |
$file = $argv[1] ?? null; | |
$output = $argv[2] ?? null; | |
if ($file === null) { | |
die( | |
'Cleanup SVG by isolating SVG tag' . PHP_EOL . |
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
/** | |
* Save frame from video element | |
* @author Nurudin Imsirovic <[email protected]> | |
* @param {Element} video Video element | |
* @param {boolean} download Download frame as file | |
* @param {string} filename Download name | |
* @return {?string} Blob URL of frame | |
*/ | |
function video2frame(video = null, download = true, filename = null) { | |
// Not a video element |
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
/** | |
* Asynchronous XMLHttpRequest abstraction. | |
* @author Nurudin Imsirovic <[email protected]> | |
* @param {string} requestMethod - HTTP Request Method [GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH] | |
* @param {string} requestSource - URL or relative path to a resource | |
* @param {string} requestData - Data to be sent (only for POST method) | |
* @param {function} callback - Callback function for handling the response | |
* @param {string|null} requestUsername - HTTP Basic Auth Username (default `null`) | |
* @param {string|null} requestPassword - HTTP Basic Auth Password (default `null`) | |
* @throws {Error} Throws an error if XMLHttpRequest is not supported or if the callback is not a function. |