You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
testruby.bundle: testruby.cr | |
crystal testruby.cr --link-flags "-dynamic -bundle -Wl,-undefined,dynamic_lookup" -o testruby.bundle | |
irb: testruby.bundle | |
irb -rtestruby -I. | |
clean: | |
rm -rf .crystal testruby.bundle |
const NT_TIMER_ENTITY_TARGET_NAME = "NT_TimerEnt"; | |
const NT_SCRIPT_VERSION = "1.0.4-beta"; | |
NT_LastGrenade <- null; | |
NT_LastRestoredGrenade <- null; | |
NT_SavedGrenadePosition <- null; | |
NT_SavedGrenadeVelocity <- null; | |
NT_AwaitingSave <- false; | |
NT_IsPaused <- false; |
настроить все в System Preferences, например
выключить ускорение указателя трекпада и перелогиниться
defaults write .GlobalPreferences com.apple.trackpad.scaling -1
настроить Finder (войти в настройки любой программы в Mac OS можно комбинацией ⌘,
)
// Servers have the ability to run multiple gametypes, known as "factories." You should not add gameplay related | |
// cvars in the server config: they may get overwritten by the factory. For creating your own sets of gameplay rules, | |
// create a file ending in ".factories" inside baseq3/scripts, and refer to "Creating custom gametypes" in the | |
// server_readme.txt file. | |
// Be aware that factories can override any cvar, including ones specified in this config file. | |
set sv_hostname "SARL | CA | elo+stats | GLHF" | |
set sv_tags "clanarena, qlstats.net, ELO, SARL, no-whiners, glhf" // Comma delimited field of server tags to show in server browser. |
When developing a program in Ruby, you may sometimes encounter a memory leak. For a while now, Ruby has a facility to gather information about what objects are laying around: ObjectSpace.
There are several approaches one can take to debug a leak. This discusses a time-based approach, where a full memory dump is generated every, say, 5 minutes, during a time that the memory leak is showing up. Afterwards, one can look at all the objects, and find out which ones are staying around, causing the
Benchmark Code: https://github.com/janlelis/paint/blob/main/benchmark.rb
# TERMINAL ANSI COLORS BENCHMARK
ruby: 3.1.2
paint: 2.3.0
rainbow: 3.1.1
term/ansicolor 1.7.1
pastel 0.8.0