Skip to content

Instantly share code, notes, and snippets.

View nvlled's full-sized avatar

Ronald T. Casili nvlled

  • Philippines
View GitHub Profile
@lobre
lobre / zig_type_system.md
Last active June 16, 2025 21:56
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
@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)
-- 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.
@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"