Skip to content

Instantly share code, notes, and snippets.

@it-ankka
it-ankka / player.gd
Last active March 9, 2026 01:47
Simple Godot first-person character controller which also handles climbing stairs
class_name Player extends CharacterBody3D
@onready var head: Node3D = $Head
@onready var arms: Node3D = $Head/Camera3D/Arms
@onready var head_default_pos: Vector3 = head.position
@onready var arms_default_pos: Vector3 = arms.position
@export var SPEED: float = 10
@export var JUMP_VELOCITY: float = 4.5
@export var HEAD_LERP_SPEED: float = 10
@export var MAX_STEP_HEIGHT: float = 0.3
@kinoc
kinoc / jserv.py
Last active January 1, 2026 09:47
Simplest FastAPI endpoint for EleutherAI GPT-J-6B
# Near Simplest Language model API, with room to expand!
# runs GPT-J-6B on 3090 and TITAN and servers it using FastAPI
# change "seq" (which is the context size) to adjust footprint
#
# seq vram usage
# 512 14.7G
# 900 15.3G
# uses FastAPI, so install that
# https://fastapi.tiangolo.com/tutorial/