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
@seanjensengrey
seanjensengrey / tiny.c
Last active October 22, 2025 01:26
Marc Feeley Tiny C compiler
/* file: "tinyc.c" */
/* originally from http://www.iro.umontreal.ca/~felipe/IFT2030-Automne2002/Complements/tinyc.c */
/* Copyright (C) 2001 by Marc Feeley, All Rights Reserved. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
@nicolasdao
nicolasdao / open_source_licenses.md
Last active August 19, 2026 16:10
What you need to know to choose an open source license.
@zlash
zlash / main.cpp
Created February 19, 2017 04:57
Minimal bgfx + SDL2
#include <SDL2/SDL.h>
#include <SDL2/SDL_syswm.h>
#include <bgfx/bgfx.h>
#include <bgfx/platform.h>
#include <bx/bx.h>
#include <bx/mutex.h>
#include <bx/thread.h>
void threadInit()
{
@haxpor
haxpor / skeleton.cpp
Last active March 11, 2023 12:13
OpenGL with SDL2. Compile it with "gcc -Wall -o skeleton skeleton.cpp -F /Library/Frameworks -lstdc++ -I /Library/Frameworks/SDL2.framework/Headers -framework SDL2 -framework OpenGL" on Mac OSX.
/**
* Simple SDL2 program using OpenGL as rendering pipeline.
*/
#include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <OpenGL/GLU.h>
#define SCREEN_WIDTH 640
@jryio
jryio / Prepend YAML Front Matter to Markdown Files
Last active July 12, 2023 12:06
Adding YAML front matter to markdown files (title)
# For each result of find call our script to run on the filename
$ find . -name "*.md" -print0 | xargs -0 -I file ./prepend.sh file
@emersonmx
emersonmx / simple_opengl_sfml.cpp
Created February 4, 2016 02:21
Simple OpenGL with SFML
/**
* Simple OpenGL with SFML.
*
* Build: g++ -o simple_opengl_sfml simple_opengl_sfml.cpp -lsfml-window -lsfml-system -lGL
*/
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#define WINDOW_WIDTH 640
@bkaradzic
bkaradzic / orthodoxc++.md
Last active October 3, 2026 18:01
Orthodox C++

Orthodox C++

This article has been updated and is available here.

@ericboehs
ericboehs / Fresh-Install.markdown
Last active July 24, 2023 08:16
What I do after a fresh install of Mac OS X