Skip to content

Instantly share code, notes, and snippets.

View rahil627's full-sized avatar
in a crisis, be back once i find 'n make a home ;(

rathewolf rahil627

in a crisis, be back once i find 'n make a home ;(
View GitHub Profile
@rougier
rougier / nano.el
Created February 4, 2025 18:48
NANO Emacs (minimal version: 256 lines)
;; nano-emacs.el --- NANO Emacs (minimal version) -*- lexical-binding: t -*-
;; Copyright (c) 2025 Nicolas P. Rougier
;; Released under the GNU General Public License 3.0
;; Author: Nicolas P. Rougier <[email protected]>
;; URL: https://github.com/rougier/nano-emacs
;; This is NANO Emacs in 256 lines, without any dependency
;; Usage (command line): emacs -Q -l nano.el -[light|dark]
@caspg
caspg / 1_searchbar_live.ex
Last active September 28, 2025 22:09
Example of real-time search bar implementation in Phoenix LiveView and Tailwind. Working example on https://travelermap.net/parks/usa
defmodule TravelerWeb.SearchbarLive do
use TravelerWeb, :live_view
alias Phoenix.LiveView.JS
alias Traveler.Places
def mount(_params, _session, socket) do
socket = assign(socket, places: [])
{:ok, socket, layout: false}
end

CSS Fireflies

An elegant HTML/CSS only solution for adding a tranquil fireflies effect to you page. CSS only.

A Pen by Mike Golus on CodePen.

License.

@haxiomic
haxiomic / ObjectPool.hx
Last active June 28, 2024 03:42
Structure of Array and Array of Structures in Haxe
/**
* ObjectPool is a type building macro to create array-of-structure or structure-of-array pools.
* With the intention being to improve access performance, both in CPU cache coherence and by avoiding the GC
*
* This implementation is a minimal working proof of concept
*
* Improvements you may want to make
* - Support deallocation of instances and space reclaiming
* - Replace haxe.io.Bytes because field access has overhead
*
@amirrajan
amirrajan / init.el
Last active November 4, 2025 21:06
Hello world emacs configuration for Windows for DragonRuby Game Toolkit.
;; create init.el under the directory: C:\Users\YOURUSERNAME\.emacs.d\init.el
;; download the dragonruby logo and save it as logo.png under C:\Users\YOURUSERNAME\.emacs.d\logo.png
;; url for logo: https://dragonruby.herokuapp.com/assets/logo-48676b845a1ad9b0218a5717cec4ce503f543d65e596044ec2117d910eeccda0.png
;; resize the logo to your liking
;; start git bash as an Administrator
;; type emacs and press enter
;; here are the contents for init.el
@Yanrishatum
Yanrishatum / hxsl-cheatsheet.md
Last active July 21, 2025 06:20
HXSL cheat-sheet

HXSL cheat-sheet

This is a WIP of a cheat-sheet that I will finish Eventually™

Types

Mapping of the shader types to Heaps types:

Float = Float
Int = Int
Bool = Bool
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active December 2, 2025 17:16
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like [Unreal](https:

@johnnypea
johnnypea / useful-one-liners.sh
Last active November 25, 2025 00:07
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
@Matan
Matan / HaxeScript.hx
Last active February 5, 2022 12:27 — forked from clarkjones/HaxeScript.hx
haxex, a short shell script that can be used so you have Haxe shell scripting
#!/usr/bin/env haxex -lib mcli @
/**
Taken from mcli example https://github.com/waneck/mcli
Say hello.
Example inspired by ruby's "executable" lib example
**/
class HaxeScript extends mcli.CommandLine
{
/**