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
/// <summary> | |
/// for Version: 0.9.1 | |
/// this API is actually not generated at all. Until this is a thing this file is a placeholder with specific functions implemented as needed. | |
/// https://github.com/j20001970/GDMP-demo/discussions/6#discussioncomment-7008945 | |
/// </summary> | |
using System; | |
using System.Linq; | |
using Godot; | |
using Godot.Collections; |
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
using System.Linq; | |
using Godot; | |
using Godot.Collections; | |
public class Array3D<[MustBeVariant] T> | |
{ | |
public readonly Array<T> Array; | |
public readonly int Width; | |
public readonly int Height; | |
public readonly int Depth; |
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
using System.Linq; | |
using Godot; | |
using Godot.Collections; | |
public class Array2D<[MustBeVariant] T> | |
{ | |
public readonly Array<T> Array; | |
public readonly int Width; | |
public readonly int Height; | |
public readonly int Length; // Width * Height |
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/bash | |
# LICENSE: BSD3-Clause | |
# made by Sythelux Rikd | |
# DESC: this script creates a montage of images within a folder to create a folder icon for nemo | |
# it respects folder.jpg and .folder.jpg being set | |
# it is rather imperformant, maybe someone will improve it. | |
# needs to be put into /usr/bin/folder-thumbnailer |
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
///<author email="dersyth@gmail.com">Sythelux Rikd</author> | |
public class WaitOnTask : CustomYieldInstruction | |
{ | |
private Task _task; | |
private bool _taskDone; | |
public override bool keepWaiting => !_taskDone; | |
public WaitOnTask(Task task) | |
{ |
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/bash | |
# my move is supposed to copy source to target recursively. if target already exists it checks file size | |
#if size is the same delete old one | |
#if size is different keep old and new | |
source=$1 | |
target=$2 | |
IFS=$'\n' | |
if [ -d "$source" ]; then |
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
package ads; | |
import java.text.MessageFormat; | |
import java.util.*; | |
/** | |
* Created by sythelux on 25.04.17. | |
*/ | |
public class Serie3 { | |
private static Random random = new Random(); |
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
skinparam Activity { | |
ArrowColor | |
ArrowFontColor | |
ArrowFontName | |
ArrowFontSize | |
ArrowFontStyle | |
BackgroundColor | |
BarColor | |
BorderColor | |
BorderThickness |
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
public class ReusableIDGenerator { | |
private static Map<Integer, Boolean> map = Collections.synchronizedMap(new HashMap<Integer, Boolean>()); | |
private ReusableIDGenerator() {} | |
public static int get() { | |
for (int i = 0; i < Integer.MAX_VALUE; i++) { | |
if (map.containsKey(i)) { | |
if (!map.get(i)) { | |
map.put(i, true); |
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
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import java.util.concurrent.TimeUnit; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* | |
* @author Sythelux Rikd |
NewerOlder