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
| /* | |
| License: MIT, (C) 2026 Krzysztof Blachnicki | |
| Function for setting tray icon from base64 string for AUtoHotKey v1. | |
| Possible uses: | |
| * distribution of single-file script without separate .ico file | |
| * automation of creating icons via external tools (like ImageMagick) | |
| Syntax: |
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
| // ==UserScript== | |
| // @name Google Maps → OpenStreetMap button | |
| // @author Krzysztof "Krzysiu" Blachnicki | |
| // @namespace https://github.com/Krzysiu | |
| // @license MIT | |
| // @homepage https://greasyfork.org/scripts/563845-google-maps-openstreetmap-button | |
| // @version 0.3 | |
| // @description Adds a button in Google maps which opens the same map in OpenStreetMaps | |
| // @match https://www.google.com/maps/* | |
| // @icon data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48cGF0aCBmaWxsPSIjNmZhYmUzIiBkPSJNMSAwczQzIDczIDQzIDExNFMwIDE4NyAxIDIyOGMwIDQxIDQzIDczIDQzIDExNCAwIDQwLTQzIDExNC00MyAxMTRzNzMgNDQgMTEzIDQ0YzQxIDAgNzQtNDMgMTE0LTQzIDQxIDAgNzMgNDMgMTE0IDQzczExNC00MyAxMTQtNDMgNDQtNzUgNDQtMTE1Yy0xLTQxLTQ0LTczLTQ0LTExNCAwLTQwIDQ0LTczIDQ0LTExNFM0NTYgMCA0NTYgMHMtNzMgNDQtMTE0IDQ0Yy00MCAwLTczLTQ0LTExNC00NC00MCAwLTczIDQzLTExNCA0M0M3NCA0MyAxIDAgMSAwem0xNzEgMTIxYzI0IDAgNDUgMTQgNTUgMzRsLTI3IDE0Yy01LTExLTE1LTE3LTI4L |
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 Ksheesh Geotag Video Frames 0.0.1 | |
| rem | |
| rem Extract frames from video every X seconds and geotag them using GPS data file. | |
| rem Requires exiftool and ffmpeg. | |
| rem Copyright (c) 2017 krzysiu.net | |
| rem | |
| rem Permission is hereby granted, free of charge, to any person obtaining a copy | |
| rem of this software and associated documentation files (the "Software"), to deal |
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
| <html> | |
| <head> | |
| <title>Blue Screen of DEATH tombstone</title> | |
| <!-- | |
| BLUE SCREEN OF DEATH 95 TOMBSTONE v1 | |
| © krzysiu.net (Krzysztof Blachnicki), 2017 | |
| This piece of code is released on following licenses: | |
| * CC BY 4.0 International (https://creativecommons.org/licenses/by/4.0/deed.en) | |
| * BSD 3 with attribution (https://spdx.org/licenses/BSD-3-Clause-Attribution.html) |
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 Copyright by krzysiu.net, 2017 | |
| rem Licensed as MIT (full text: https://opensource.org/licenses/MIT) | |
| setlocal | |
| set binImg1=Unicode 64-bit | |
| set binImg2=Unicode 32-bit | |
| set binImg3=ANSI 32-bit | |
| REM SET YOUR PATH TO COMPILER HERE |
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
| class PD { | |
| const RETURN = 1; | |
| const PRE = 2; | |
| const DIE = 4; | |
| const ESCAPE = 8; | |
| } | |
| function pro_dump() { | |
| if (func_num_args() < 2) return false; | |
| $vars = func_get_args($vars); |
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
| start cmd & exit |
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 | |
| setlocal | |
| rem Set here all choices | |
| set allChoices=abc | |
| rem Run choice with given choices | |
| choice /c %allChoices% | |
| rem Errorlevel is here number of character from %allChoices% | |
| rem (1=1st choice=1st character). For getting substring of %allChoices% we |
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 | |
| /*! Checks if numer is within range | |
| * @param numeric $number number to check | |
| * @param arr $range array in format [min, max, 'open' => bool] | |
| * @return Boolean result | |
| * @ingroup math | |
| * @version 1 | |
| * @note It's very simple, but I've seen a lot of examples which used range() and in_array() which is wrong wrong wrong. Also most of them support only open ranges. | |
| */ | |
| function inRange($number, $range) { |
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 | |
| /*! Generate HTML tag | |
| * @param string $tag tag name (like "a" for <a>) | |
| * @param type $params array of parameters in the format property => value. If value is null (strict), add valueless property | |
| * @param mixed $content if null, generate self-closing tag; if value is given, even empty, add content and close tag | |
| * @return Generated HTML tag | |
| * @ingroup html | |
| * @version 2 | |
| */ | |
| function htmlize($tag, $params = [], $content = null) { |
NewerOlder