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 | shcurl 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
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
| 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: |
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
| 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) |
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
| 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)) { |
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
| ; 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. |