Skip to content

Instantly share code, notes, and snippets.

View LaughingSun's full-sized avatar

Laughing Sun Development LaughingSun

  • Gianyar, Bali, Indonesia
View GitHub Profile
@LaughingSun
LaughingSun / private-static-const-char-array.cpp
Created December 4, 2015 06:40
C++11 private static * char and char[implied length] test cases (because my old school sh!t couldn't wrap my head around it until I was able to isolate it)
#include "private-static-const-char-array.hpp"
const char
PrivateStaticConstCharArray::private_static_const_char_array[]
= "A bit of text used to test private static const char array in a " \
"class declaration/definition";
PrivateStaticConstCharArray::PrivateStaticConstCharArray ( )
{
@LaughingSun
LaughingSun / ocd.cpp
Last active November 29, 2015 07:06
instance variables
// ocd.cpp, all rights reserved for the future.
#include <cstdlib>
#include <iostream>
class OCD {
protected:
@LaughingSun
LaughingSun / Makefile
Last active November 22, 2015 03:02
gnu make is a little hard to understand sometimes... this is telling in regards to how it handles environment variables generally, within rules and within sub makes
export TMP="You ain't got no kind of feeling inside"
.PHONY: all
all: ruleA ruleB ruleC ruleD
ruleA:
@echo root.ruleA ${TMP}
export TMP="I got something that'll sho nuff set yo' stuff on fire"
@LaughingSun
LaughingSun / Cuica-1.wav
Last active April 12, 2022 06:34 — forked from armornick/playwav.c
Play a sound with SDL2 added lots of print information and the ability to specify the wav file as first argument. Woohoo.