Skip to content

Instantly share code, notes, and snippets.

View jaxlo's full-sized avatar
🪨
Living under a rock

Jackson Lohman jaxlo

🪨
Living under a rock
View GitHub Profile
#!/bin/bash
WATCH_EXTENSIONS=("go" "html" "css")
COLOR='\033[0;35m' # Purple (change this to change the color)
NC='\033[0m' # No Color
PID=""
# Check if inotify-tools is installed and install if not
check_inotify() {
@jaxlo
jaxlo / main.c
Created July 11, 2025 22:51
Raylib raytracing neon lights with dithering
// This is a demo with the following pipeline
// - Quarter-Resolution Raytracing - Renders at 200x112 instead of 800x450 (16x fewer pixels)
// - RGB565 Conversion - Reduces color depth with Bayer dithering
// - Atmospheric Fog - Adds neon-tinted fog with animated density
// - Bilinear Upscaling - Smoothly scales quarter-res to full resolution
// - Posterization - Quantizes colors to 8 levels per channel with dithering
// - Bloom Effect - Extracts bright areas and additively blends them
// Generated by Claude Sonnet 4
@jaxlo
jaxlo / tcp.go
Created September 12, 2023 20:14
Simple tcp client/server example in Go
package main
import (
"bufio"
"fmt"
"net"
"os"
"strings"
"time"
)
@jaxlo
jaxlo / stack.py
Last active March 19, 2023 03:25
A Python stack implementation (Linked list)
# This stack was programmed by Jackson Lohman for part of a CS2420 assignment
class Stack:
def __init__(self):
self.head = None
def push(self, item):
""" Push an item onto the stack. Size increases by 1 """
if self.head is None:
self.head = self.Node(value=item)
@jaxlo
jaxlo / rocket_electronics.ino
Created March 15, 2022 19:52
rocket_electronics.ino
#include <TinyGPSPlus.h>
#include <SoftwareSerial.h>
// SD Logger
// ESP32 pin - wire color - SD card pin
//---------------------------------
// P4 - green - GRN
// P0 - yellow - RXI
// P2 - orange - TX0
@jaxlo
jaxlo / socket.py
Last active February 18, 2018 14:37
Posted on reddit to get help with python socket programming -- (This includes the server and client in one file)
import socket
NetworkPort = 59281
class NetworkClient:#run on ML /remote computer
#global NetworkHost, NetworkPort
def __init__(self, sock=None):
if sock is None:
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
else: