Skip to content

Instantly share code, notes, and snippets.

View nvlled's full-sized avatar

Ronald T. Casili nvlled

  • Philippines
View GitHub Profile
@s4l1h
s4l1h / install_xampp.sh
Created October 29, 2011 12:28
Install XAMPP on 64 bit linux
#/usr/bin/sh
echo "Download XAMPP"
wget http://downloads.sourceforge.net/project/xampp/BETAS/xampp-linux-1.7.7.tar.gz
echo "install ia32-libs"
sudo apt-get install ia32-libs
echo "Extrach XAMPP"
sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
echo "install python-gtk2-dev with xampp controller panel"
sudo apt-get install python-gtk2-dev
echo "Start LAMP"
-- So shaders in love only are applied to drawables, which means you can apply
-- diffrent shaders to diffrent sprites, which is nice. Although if you want to
-- apply a shader to a whole scene at once, for example a bloom shader, then you
-- will have to draw all your sprites to a canvas or image, and then draw that
-- composite with the shader.
-- Creates a shader with the given vertex and fragment shader source code. I'll
-- explain that in more detail later. You want to be caching this shader somewhere
-- because it's expensive to create.
@ThirdPartyNinjas
ThirdPartyNinjas / Coroutine.cs
Last active September 22, 2022 19:56
Simple Coroutines (for XNA/FNA/etc.)
using System.Collections;
using System.Collections.Generic;
namespace Memento
{
public class Coroutine
{
public bool Paused { get; set; }
internal void Reset(IEnumerator routine)
@CoryBloyd
CoryBloyd / SDLblit.cpp
Last active June 10, 2026 07:36
Minimal code to set up a window in SDL and blit from CPU RAM to the window
// This work (SDLblit.cpp, by Cory Bloyd) is free of known copyright restrictions.
// https://creativecommons.org/publicdomain/zero/1.0/
#include <SDL.h>
inline uint32_t argb(uint8_t a, uint8_t r, uint8_t g, uint8_t b) { return (a<<24) | (r << 16) | (g << 8) | (b << 0); }
int main(int argc, char *argv[]) {
SDL_Init(SDL_INIT_VIDEO);
SDL_Rect screenRect = { 0,0,1024,1024 };
@lobre
lobre / zig_type_system.md
Last active June 21, 2026 20:20
Zig type system illustrated using ascii diagrams

Zig Type System

Zig aims to be a simple language. It is not easy to define what simple exactly means, but zig is also a low-level programming language that aims for c-compatibility. To reach this goal, it needs good semantics in its type system so that developers have a complete toolbox to manipulate data.

So types in zig are composable, but this can become rapidly overwhelming. See those examples. Are you able to understand them at a glance, as soon as you read them?

*const ?u8
?*const u8
*const [2]u8
@notnotrobby
notnotrobby / cgp.md
Last active July 13, 2026 16:50
List of free resources to study computer graphics programming.