Skip to content

Instantly share code, notes, and snippets.

View caspercasanova's full-sized avatar

Nicholas Lopez caspercasanova

View GitHub Profile
@caspercasanova
caspercasanova / Nautilus_Install.md
Created March 7, 2025 01:32 — forked from faysou/Nautilus_Install.md
Install nautilus_trader dev env from scratch using uv only
add_to_zshrc() {
  local line_to_add="$1"
  if ! grep -q "$line_to_add" ~/.zshrc; then
    echo -e "\n$line_to_add" >> ~/.zshrc
  fi
}

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl -LsSf https://astral.sh/uv/install.sh | sh
@faysou
faysou / Nautilus_Install.md
Last active August 6, 2025 17:52
Install nautilus_trader dev env from scratch using uv only
curl https://sh.rustup.rs -sSf | bash -s -- -y
source ~/.cargo/env

curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.zshrc

NAUTILUS_DIR=~/Developer/nautilus
mkdir -p $NAUTILUS_DIR
cd $NAUTILUS_DIR
@JoelBesada
JoelBesada / catmull-rom.gd
Created June 21, 2024 21:40
Catmull-Rom Spline in GDScript
func catmull_rom_spline(
_points: Array, resolution: int = 10, extrapolate_end_points = true
) -> PackedVector2Array:
var points = _points.duplicate()
if extrapolate_end_points:
points.insert(0, points[0] - (points[1] - points[0]))
points.append(points[-1] + (points[-1] - points[-2]))
var smooth_points := PackedVector2Array()
if points.size() < 4:
@bgolus
bgolus / InfiniteGrid.shader
Last active November 20, 2024 01:20
Infinite Grid shader with procedural grid with configurable divisions and major and minor lines markings.
Shader "Unlit/InfiniteGrid"
{
Properties
{
[Toggle] _WorldUV ("Use World Space UV", Float) = 1.0
_GridScale ("Grid Scale", Float) = 1.0
_GridBias ("Grid Bias", Float) = 0.5
_GridDiv ("Grid Divisions", Float) = 10.0
_BaseColor ("Base Color", Color) = (0,0,0,1)
_LineColor ("Line Color", Color) = (1,1,1,1)
@tylermorganwall
tylermorganwall / submarine_cable_map.R
Last active September 19, 2025 10:50
Submarine Cable Map Dataviz
library(geojsonsf)
library(sf)
library(rayrender)
#Data source: https://github.com/telegeography/www.submarinecablemap.com
cables = geojson_sf("cable-geo.json")
cablescene = list()
counter = 1
for(i in 1:length(cables$geometry)) {
; The official HD AI
; An Artificial Intelligence Script written by Archon and Promiskuitiv
; Get in contact with Promiskuitiv by sending a mail to neuernamae@web.de
; List of taunts it reacts to:
; Standard taunts.
; 33 - Stop slinging resources. If slinging is requested early and is immediately canceled it may mess up the strategy.
; 38 - Sling Resources. Human player only, stops any unit production except for civilian units.