This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |