Skip to content

Instantly share code, notes, and snippets.

Avatar

Laughing Sun Development LaughingSun

  • Gianyar, Bali, Indonesia
View GitHub Profile
@LaughingSun
LaughingSun / private-static-const-char-array.cpp
Created Dec 4, 2015
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)
View private-static-const-char-array.cpp
#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 Nov 29, 2015
instance variables
View ocd.cpp
// ocd.cpp, all rights reserved for the future.
#include <cstdlib>
#include <iostream>
class OCD {
protected:
@LaughingSun
LaughingSun / Makefile
Last active Nov 22, 2015
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
View Makefile
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 Feb 27, 2018 — 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.
You can’t perform that action at this time.