Skip to content

Instantly share code, notes, and snippets.

View warmwaffles's full-sized avatar
πŸ› οΈ
Code Wrestling

Matthew Johnston warmwaffles

πŸ› οΈ
Code Wrestling
View GitHub Profile
@jbenet
jbenet / simple-git-branching-model.md
Last active March 19, 2025 16:09
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@phoet
phoet / menu.rb
Created October 15, 2013 07:52
curses example drawing a menu
require "curses"
include Curses
init_screen
start_color
noecho
def draw_menu(menu, active_index=nil)
4.times do |i|
menu.setpos(i + 1, 1)
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform
@ers35
ers35 / json2sqlite.lua
Last active July 13, 2016 20:01
Convert http://redd.it/3bxlg7 to an SQLite database
-- The author disclaims copyright to this source code.
-- Convert http://redd.it/3bxlg7 to an SQLite database
-- Convert the whole dataset at once like so:
-- find reddit_data -type f -exec time lua json2sqlite.lua {} \;
local cjson = require"cjson"
local sqlite = require"lsqlite3"
local db = sqlite.open("reddit_data.db")
db:exec[[
@steven2358
steven2358 / ffmpeg.md
Last active April 8, 2025 13:51
FFmpeg cheat sheet
@jart
jart / defer.c
Last active March 26, 2024 07:08
Go-like defer for C that works with most optimization flag combinations under GCC/Clang
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-β”‚
β”‚vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viβ”‚
β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•‘
β”‚ Copyright 2020 Justine Alexandra Roberts Tunney β”‚
β”‚ β”‚
β”‚ Permission to use, copy, modify, and/or distribute this software for β”‚
β”‚ any purpose with or without fee is hereby granted, provided that the β”‚
β”‚ above copyright notice and this permission notice appear in all copies. β”‚
β”‚ β”‚
β”‚ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL β”‚
@skeeto
skeeto / README.md
Last active September 23, 2024 02:16
AI driving simulation
@raysan5
raysan5 / raylib_vs_sdl.md
Last active April 6, 2025 12:31
raylib vs SDL - A libraries comparison

raylib_vs_sdl

In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.

Hope it helps future users to better understand this two libraries internals and functionality.

Table of Content