Skip to content

Instantly share code, notes, and snippets.

View agrif's full-sized avatar

agrif agrif

View GitHub Profile
2013-05-24 17:03:19 E An error was encountered with your configuration.
2013-05-24 17:03:19 E You must specify a valid rendermode, not 'smooth_lightning'. See the docs for valid rendermodes.
do x <- foo
y <- bar
return x * y
(which is (almost*) equivalent to (in python syntax))
foo.bind(lambda x:
bar.bind(lambda y:
x * y))
Name: -1 (null)
Zip: 0
Scripts:
event load-card {
activate-plst 1;
}
event display_update {
@agrif
agrif / gist:5753340
Last active December 18, 2015 08:19
Gehn -+- (?)
|
Kahlis -+- Tasera
|
Aitrus -+- Ti'ana
|
Gehn -+- Keta
|
Atrus -+- Katran
+-------+--------+
Raymond. Died June 12, 2013.
Intel E7500 Core 2 Duo 2.93GHz/3M/1066/06
GeForce 8400GS 512MB DDR3 PCI-E EVGA
2x1GB dual channel PC2-6400 5-5-5-15
http://i.imgur.com/rI3zWLQ.jpg
RIP
class SuperClass : Object
{
public class void test();
}
class SubClass : SuperClass
{
static construct
{
// error: Access to instance member `SuperClass.test' denied
@agrif
agrif / co-string.c
Last active December 20, 2015 10:49
#include "co-string.h"
#include <stdio.h>
static void co_string_construct(void* p)
{
printf("string construct\n");
CoString* self = p;
self->data = NULL;
self->length = 0;
}
@agrif
agrif / test.c
Last active December 20, 2015 11:49
#include "cobalt.h"
#include <stdio.h>
int main(int argc, char** argv)
{
foreach(x in co_range(0, 10) as int)
{
printf("iterating %i\n", *x);
}
@agrif
agrif / dummy.txt
Created July 31, 2013 23:22
a horrible, horrible, wonderful C Preprocessor hack library
.
@agrif
agrif / Makefile
Last active November 8, 2024 16:14
a horrible, horrible, wonderful C Preprocessor hack library
OBJECTS = cobalt.o co-new.o co-iterate.o co-range.o test.o
TARGET = test
CFLAGS = -Wall -Werror -std=gnu99
.PHONY : all clean
all : ${TARGET}
clean :
rm -f ${TARGET} ${OBJECTS}