Skip to content

Instantly share code, notes, and snippets.

View robin-a-meade's full-sized avatar

Robin A. Meade robin-a-meade

View GitHub Profile
@robin-a-meade
robin-a-meade / sdl2hello.cc
Last active August 14, 2022 01:49 — forked from fschr/main.cpp
SDL2 Hello World | SDL2 Getting Started | SDL | OpenGL
// SDL2 Hello, World!
// This should display a white screen for 2 seconds
// with the text 'Hello World!'
// Prerequisites (Fedora):
// sudo dnf install SDL2-static
// sudo dnf install SDL2-devel (Actually, this gets installed as a dependency of SDL2-static)
// sudo dnf install SDL2_ttf-devel
// Compile:
// gcc -g sdl2hello.cc -o sdl2hello -lSDL2 -lSDL2main -lSDL2_ttf
// Run:
@robin-a-meade
robin-a-meade / lipsum
Last active July 1, 2022 21:18 — forked from candu/lipsum
Command-line Lorem Ipsum generator using curl, lipsum.com, and jq
#!/bin/sh
AMOUNT=5
WHAT=paras
START=false
MARKDOWN_PARAGRAPHS= # Insert a blank line between paragraphs, like Markdown
HARD_WRAP=
WIDTH=78
while getopts ":n:wpblsmhW:" opt; do