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
| /* | |
| 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 |
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
| 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) |
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
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| typedef const char* str; | |
| #define TYPE str | |
| #include "vector.h" | |
| #include "vector.def" | |
| #undef TYPE |
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
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| typedef const char* str; | |
| #define TYPE str | |
| #include "vector.h" | |
| #include "vector.def" | |
| #undef TYPE |
NewerOlder