Skip to content

Instantly share code, notes, and snippets.

View jwannamaker's full-sized avatar

Johnny Wannamaker jwannamaker

View GitHub Profile
@jakubtomsu
jakubtomsu / collision_3d.odin
Last active October 31, 2025 16:20
Simple raylib example of 3d FPS player movement with triangle collision
package main
import "core:fmt"
import "core:math"
import "core:math/linalg"
import rl "vendor:raylib"
main :: proc() {
rl.SetConfigFlags({.VSYNC_HINT, .WINDOW_RESIZABLE, .MSAA_4X_HINT})
rl.InitWindow(800, 600, "collision")
@muppetjones
muppetjones / config.h
Last active December 23, 2024 23:34
QMK Dynamic Layer Lighting
/* (Optional) Define RGB settings in your config.h */
#ifdef RGBLIGHT_ENABLE
# define RGBLIGHT_ANIMATIONS
# define RGBLIGHT_HUE_STEP 8
# define RGBLIGHT_SAT_STEP 8
# define RGBLIGHT_VAL_STEP 8
# define RGBLIGHT_LIMIT_VAL 150
# define RGBLIGHT_SLEEP
// # define RGBLIGHT_LAYERS // We do NOT need the layers!
#endif
@fabiovalse
fabiovalse / README.md
Last active January 20, 2024 19:56
Regular Polygon Vertices Generator

This script allows to generate the vertices, of a regular polygon, as svg circles. It is possible to specify:

  • the number of polygon sides;
  • the radius of the polygon;
  • the svg width and height.

The vertices coordinates are generated splitting a circumference in N parts, corresponding to the polygon sides. If N=1 then the vertice coordinates correspond to the center of the circumference.