Skip to content

Instantly share code, notes, and snippets.

View Siapran's full-sized avatar
🐁

Katherine Miller Siapran

🐁
View GitHub Profile
@Siapran
Siapran / main.c
Last active August 29, 2015 14:17
GCL usage
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef const char* str;
#define TYPE str
#include "vector.h"
#include "vector.def"
#undef TYPE
@Siapran
Siapran / main.c
Created March 21, 2015 18:39
GCL usage example
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef const char* str;
#define TYPE str
#include "vector.h"
#include "vector.def"
#undef TYPE
function nouveau_compteur(increment)
local compte = 0
return function ()
compte = compte + increment
return compte
end
end
local incr_1 = nouveau_compteur(1)
local incr_2 = nouveau_compteur(2)
/*
13-10-2015
Retroactive (retroactive.me)
Siapran Candoris
This code is public domain, inspired by the work of Nathan Seidle, Spark Fun Electronics 2011.
This code allows writing data to the Nokia 5110 84x48 graphic LCD:
http://www.sparkfun.com/products/10168
$ g++ -std=c++98 main.cpp -o main
In file included from main.cpp:1:0:
ArduinoJson.h:513:39: error: ‘IsBaseOf’ is not a member of ‘ArduinoJson::TypeTraits’
typename TypeTraits::EnableIf<TypeTraits::IsBaseOf<
^~~~~~~~~~
ArduinoJson.h:513:39: error: ‘IsBaseOf’ is not a member of ‘ArduinoJson::TypeTraits’
ArduinoJson.h:514:44: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type
std::istream, typename TypeTraits::RemoveReference<
^~~~~~~~~~~~~~~
ArduinoJson.h:514:59: error: expected template-argument before ‘<’ token
siapran@pc-vlb-0163:~/Programming/C++/JSONTest$ git clone https://github.com/bblanchon/ArduinoJson.git
Cloning into 'ArduinoJson'...
remote: Counting objects: 8927, done.
remote: Compressing objects: 100% (131/131), done.
remote: Total 8927 (delta 50), reused 0 (delta 0), pack-reused 8794
Receiving objects: 100% (8927/8927), 2.91 MiB | 537.00 KiB/s, done.
Resolving deltas: 100% (6073/6073), done.
siapran@pc-vlb-0163:~/Programming/C++/JSONTest$ g++ -std=c++98 main.cpp -o main
In file included from ArduinoJson/src/ArduinoJson/JsonArray.hpp:13:0,
from ArduinoJson/src/ArduinoJson.hpp:11,
siapran@pc-vlb-0163:~/Programming/C++/JSONTest$ g++-4.9.3 --version
g++-4.9.3 (GCC) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
siapran@pc-vlb-0163:~/Programming/C++/JSONTest$ g++-4.9.3 -std=c++98 main.cpp -o main
In file included from ArduinoJson/src/ArduinoJson/JsonArray.hpp:13:0,
from ArduinoJson/src/ArduinoJson.hpp:11,
from ArduinoJson/src/ArduinoJson.h:10,
[ ] => Available
[X] => Taken
[?] => Reserved/Unsure
[ ] 2064: Read Only Memories
[ ] 7 Grand Steps
[ ] A Boy and His Blob
[ ] A Story About My Uncle
[ ] A Virus Named Tom
[ ] Abyss Odyssey
siapran@pc-vlb-0163:~/Programming/C++/JSON_Config$ make
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/home/siapran/Programming/C++/JSON_Config'
"make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/json_config
make[2]: Entering directory '/home/siapran/Programming/C++/JSON_Config'
mkdir -p build/Debug/GNU-Linux
rm -f "build/Debug/GNU-Linux/Config.o.d"
g++ -c -g -MMD -MP -MF "build/Debug/GNU-Linux/Config.o.d" -o build/Debug/GNU-Linux/Config.o Config.cpp
mkdir -p build/Debug/GNU-Linux
rm -f "build/Debug/GNU-Linux/ErrnoException.o.d"
siapran@pc-vlb-0163:~/Programming/C++/JSON_Config$ make
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/home/siapran/Programming/C++/JSON_Config'
"make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/json_config
make[2]: Entering directory '/home/siapran/Programming/C++/JSON_Config'
mkdir -p build/Debug/GNU-Linux
rm -f "build/Debug/GNU-Linux/Config.o.d"
g++ -c -g -MMD -MP -MF "build/Debug/GNU-Linux/Config.o.d" -o build/Debug/GNU-Linux/Config.o Config.cpp
mkdir -p build/Debug/GNU-Linux
rm -f "build/Debug/GNU-Linux/ErrnoException.o.d"