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_name ObjectPoolManager extends Node | |
@export var scene: PackedScene | |
@export var object_pool_max_size := 10000 | |
var pool_parent: Node = null # A dedicated parent for pooled objects | |
var ready_pool: Array[CanvasItem] = [] | |
var active_objects := 0 | |
func _enter_tree() -> void: |
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
@tool | |
class_name ClickDrag extends GUIDEInput | |
@export var button:MouseButton = MOUSE_BUTTON_LEFT: | |
set(value): | |
if value == button: | |
return | |
button = value | |
emit_changed() |
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
sudo mkdir -p /home/ebowden && | |
sudo chown ebowden /home/ebowden && | |
sudo mkdir -p /remote-overrides && | |
sudo chown ebowden /remote-overrides && | |
sudo mkdir -p /apollo-overrides && | |
sudo chown ebowden /apollo-overrides && | |
sudo yum install git tmux && | |
echo "set -g mouse-mode on" > /home/ebowden/.tmux.conf && | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && | |
wget https://tiny.amazon.com/lheo6468/theme -qO - > /home/ebowden/.oh-my-zsh/themes/robbyrussell.zsh-theme && |
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
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT='%{$fg_bold[red]%}%M ${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
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
function findElements(regex,tag) | |
{ | |
tag = tag||"*"; | |
var elArray = []; | |
var tmp = document.getElementsByTagName(tag); | |
var regex = new RegExp(".*" + regex + ".*"); | |
for ( var i = 0; i < tmp.length; i++ ) { | |