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
flowchart LR | |
GAME_TBOI("🕹️The Binding of Isaac") --> GAME_AFTERBIRTH("🕹️Afterbirth") --> GAME_AFTERBIRTH_PLUS("🕹️Afterbirth+") --> GAME_REPENTANCE("🕹️Repentance") | |
GAME_AFTERBIRTH --> MODE_GREED("💰Greed Mode") | |
GAME_AFTERBIRTH_PLUS --> |500 to Greed Donation Machine| MODE_GREEDIER("💰Greedier Mode") | |
GAME_TBOI --> CHAR_ISAAC("😭Isaac") | |
GAME_TBOI --> |7 Red Hearts| ACHIEVEMENT_1("✅ Magdalene (#1)") --> CHAR_MAGGIE("😭Maggie") | |
GAME_TBOI --> |55 Coins| ACHIEVEMENT_2("✅ Cain (#2)") --> CHAR_CAIN("😭Cain") | |
GAME_TBOI & BOSS_SATAN --> |Defeat Satan| ACHIEVEMENT_3("✅ Judas (#3)") --> CHAR_JUDAS("😭Judas") |
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
class_name Task | |
# Call all tasks and wait for them to complete, even async ones | |
static func WhenAll(tasks: Array[Callable]) -> void: | |
var awaiter := _Awaiter.new() | |
await awaiter.wait(tasks, tasks.size()) | |
# Call all tasks and wait for at least one to complete, even async ones |
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 | |
# git gets configuration from three main places: current repository, current user, system-wide | |
# Those can be skipped by changing the following environment variables | |
# PREFIX= HOME= GIT_CONFIG_NOSYSTEM= | |
# NOTE: Current repository can't be overriden | |
# But git requires at least the author and committer name/email | |
# Those must be setup with the following environment variables | |
# GIT_AUTHOR_NAME= GIT_AUTHOR_EMAIL= GIT_COMMITTER_NAME= GIT_COMMITTER_EMAIL= | |
# Thus the call will be something like this |
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
all: | |
$(call colors) | |
define colors | |
$(foreach in,$(shell seq 0 9),$(foreach bg,$(shell seq 30 39),@echo -e $(foreach fg,$(shell seq 40 49),"\033[$(in);$(bg);$(fg)m $(in);$(bg);$(fg) \033[0m") | |
)) | |
endef |
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
extends ViewportContainer | |
func _ready() -> void: | |
# Define your palette colors | |
var colors: = [ | |
Color("#171219"), | |
Color("#251d35"), | |
Color("#2e2842"), | |
Color("#3e365d"), |
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 | |
declare(strict_types=1); | |
namespace Test\SpeedTrapListener; | |
use PHPUnit\Runner\AfterLastTestHook; | |
use PHPUnit\Runner\AfterTestHook; | |
use PHPUnit\Runner\BeforeTestHook; |
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
[alias] | |
index-is-clean = !git diff-index --cached --quiet HEAD | |
recover = !f() { local REV=$(git rev); [ "$(git commit-message)" = ::modified ] && git reset -q HEAD~; [ "$(git commit-message)" = ::indexed ] && git reset -q --soft HEAD~; [ $(git rev) = $REV ] || echo 'Current state recovered'; }; f | |
rev = rev-parse HEAD | |
store = !f() { local REV="$(git rev)"; git index-is-clean || git unsafe-commit '::indexed'; git working-is-clean || $(git add -A && git unsafe-commit '::modified'); [ "$(git rev)" = "$REV" ] || echo 'Current state stored'; }; f |
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 declare(strict_types=1); | |
use PhpParser\Node; | |
use PhpParser\Node\Expr; | |
use PhpParser\Node\Expr\Assign; | |
use PhpParser\Node\Expr\AssignOp; | |
use PhpParser\Node\Expr\PropertyFetch; | |
use PhpParser\Node\Expr\StaticPropertyFetch; | |
use PhpParser\Node\Identifier; | |
use PHPStan\Analyser\Scope; |
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
@tool | |
extends EditorPlugin | |
func _enter_tree() -> void: | |
pass | |
func _exit_tree() -> void: | |
pass | |
func _apply_changes() -> void: |
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
extends Reference | |
class_name Random | |
""" | |
Object constructor, requires a seed value to feed the PRNG. | |
You can use a const seed or an already randomized one. See randi() | |
""" | |
func _init(_seed: int) -> void: | |
set_seed(_seed) |
NewerOlder