Skip to content

Instantly share code, notes, and snippets.

View Lunanne's full-sized avatar

Anne Marije van der Meer Lunanne

View GitHub Profile
@Lunanne
Lunanne / stuff
Last active August 29, 2015 14:03
python alcscript
object:
logic:
actions:
-type: pythonfile
pythonfile:
file: blabla.py
@Lunanne
Lunanne / gist:11320799
Last active August 29, 2015 14:00
Webm Issues
  • no audio
  • game does not continue smoothly after video finishes
  • Intro movie continues playing & showing after skipping it. Expected behaviour : video stops and plate is destroyed/invisible
@Lunanne
Lunanne / gist:5607654
Last active December 17, 2015 12:09
part of unit test for plString
plString input1 = plString("abCdcBÁèab");
//available accented char, case sensitive
result = input1.Find('Á',plString::kCaseSensitive);
EXPECT_EQ(6,result);
Actual: 7
Expected: 6
//available accented char, case insensitive
result = input1.Find('è',plString::kCaseInsensitive);
EXPECT_EQ(7,result);
@Lunanne
Lunanne / gist:5101897
Created March 6, 2013 18:45
vertex class
class Vertex
{
union {struct {float x, y, z ;}; float pos[3];};
union {struct {float nx, ny, nz ;}; float normal[3];};
union {struct {float s, t ;}; float texPos[2];};
};
@Lunanne
Lunanne / gist:4676830
Created January 30, 2013 20:51
utf8 without signature, vs2010
plString input1 = plString("abCdcBÀéab");=> fShort 0x00c0fa64 "abCdcBÀéab" char [16]
@Lunanne
Lunanne / gist:4541193
Created January 15, 2013 19:19
maxplugin compile error
Error41998 error C2555: 'plGeneralAttrib::GetName': overriding virtual function return type differs and is not covariant from 'CustAttrib::GetName' D:\Development\Plasma\Sources\Tools\MaxMain\main.cpp 240
@Lunanne
Lunanne / PlStringTest.cpp
Last active December 11, 2015 00:29
Unit test tryout plString
TEST(PlStringTest,ToUtf16)
{
uint16_t text[] = {0xFEFF0061,0xFEFF00E8,0xFEFF03A3,0xFEFF2F49};
plStringBuffer<uint16_t> expected = plStringBuffer<uint16_t>(text,4);
plStringBuffer<uint16_t> output = plString("aèΣ⽉").ToUtf16();
//EXPECT_EQ(expected,output); Compare expected and output in some way
}
@Lunanne
Lunanne / readfile
Created November 28, 2012 20:03
Hashing code, stupid homework
typedef struct element
{
char * woord;
struct element * next;
} ELEMENT;
char* word;
ELEMENT * node;
ELEMENT * newNode