Skip to content

Instantly share code, notes, and snippets.

View jerstlouis's full-sized avatar

Jerome St-Louis jerstlouis

View GitHub Profile
PrintLn("a" + "B");
-----------------
String __a = { .len = 1, .string = "a", .refCount = 1 };
String __b = { .len = 1, .string = "b", .refCount = 1};
__a.concat(&__b);
PrintLn(__a);
import "ecere"
class Form1 : Window
{
caption = $"Form1";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
import "ecere"
class TriApp : Application
{
ConsoleFile f { };
void Main()
{
int w = 50;
int h = 20;
bool filled = false;
import "ecere"
class TriApp : Application
{
ConsoleFile f { };
void Main()
{
int w = 50;
int h = 20;
bool filled = false, inverted = true;
import "ecere"
class TriApp : Application
{
ConsoleFile f { };
void Main()
{
int w = 50;
int h = 20;
bool filled = false, inverted = false;
import "ecere"
class TriApp : Application
{
ConsoleFile f { };
void Main()
{
int w = 50;
int h = 20;
int x, y;
import "ecere"
class TriApp : Application
{
ConsoleFile f { };
void Main()
{
int w = 50;
int h = 20;
bool filled = false, inverted = false;
import "ecere"
ConsoleFile con { };
class MySocket : Socket
{
unsigned int OnReceive(unsigned char * buffer, unsigned int count)
{
con.Write(buffer, 1, count);
return count;
void Test()
{
enum Values { foo = 0, bar = 1 } am = 1, pm = 1;
unsigned char t = 4;
if(bar == 2)
{
}
if(t - am - pm == 2)
{
}
class App : Application
{
Map<const String, const String> m { };
void Test()
{
char key[256] = "Foo";
char value[256] = "Bar";
m.Add({ key, value });