%%{ init: { 'flowchart': { 'curve': 'linear' } } }%%
flowchart TD
CU[Copper]
ZN[Zinc]
AU[Gold]
NI[Nickel]
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
/** | |
* A class to benchmark (multiple) function calls | |
* | |
* @author Radon8472 | |
* @since 2024-02-22 | |
* @version 1.0 | |
* | |
* | |
* @example | |
* Speedtest.messure( |
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
/** | |
* improved version of https://stackoverflow.com/a/22649723 | |
* | |
* function is bound to DOM-Element and can even used, when you load the "menu" | |
* via another jQuery selector later in code | |
*/ | |
// Binds the function to each DOM-Element matching my selector | |
const $menu = $('.my-popup').each(function(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
<?php | |
/** | |
* is_writeable-test.php | |
* | |
* (on windows is_writeable sometimes returns false, even you have write-permissions, this testfile helps to check this) | |
* | |
* @see: https://bugs.php.net/bug.php?id=68926 | |
* | |
* | |
* @since 2022-08-11 |
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
<?php | |
/** | |
* creates a data url | |
* | |
* @version: 1.0 | |
* | |
* @param string $data Data string that should be encoded | |
* @param string [$mime] Mime Type of the data (optional) | |
* @param string [$charset] charset of data (only used when it is not base64) (optional) |
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
<?php | |
/** | |
* test - gitdiff.cmd.php | |
* | |
* written : 2018-05-01 by Radon8472 | |
* last modified: 2019-06-22 by Radon8472 | |
* | |
* @requires: https://github.com/TheFrozenFire/PHP-NBT-Decoder-Encoder | |
* | |
* reads nbt or dat-file from commdline parameter or Standard-input, to use it in git-diff textconv |
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
#!/bin/sh | |
# | |
# This hook is invoked when a git-checkout is run after having updated the worktree. The hook is given three parameters: | |
# the ref of the previous HEAD, the ref of the new HEAD (which may or may not have changed), and a flag indicating | |
# whether the checkout was a branch checkout (changing branches, flag=1) or a file checkout | |
# (retrieving a file from the index, flag=0). This hook cannot affect the outcome of git-checkout. | |
# | |
# | |
# @see: https://stackoverflow.com/a/35182000/2377961 | |
# @see: https://gist.github.com/lyrixx/5867424 |
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
# | |
# exports multiple patches for a commit-range | |
# you can choose to select only commits matching a specific sub_dir | |
# | |
# usage: export-git-patches [commit_range] [sub_dir] | |
# | |
if [ $# -gt 1 ]; then | |
commit_range=$1 | |
commit_path="$2" |
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
<?php | |
/** | |
* Helper function to avoid problems with the switches argument order of implode since php 7.4.0 | |
* | |
* @see: https://www.php.net/manual/function.implode.php | |
* @see: https://3v4l.org/MZRZA | |
* | |
* @param String $glue | |
* @param array $pieces | |
* |
NewerOlder