Skip to content

Instantly share code, notes, and snippets.

@mrwonko
mrwonko / CMakeLists.txt
Created March 15, 2013 23:33
iojamp cmake file (WIP)
cmake_minimum_required(VERSION 2.8)
project("iojamp")
option(InstallDir "Where to install the binaries to" "install")
option(UseOpenAL "Whether to use OpenAL" ON)
option(UseOpenALDlopen "When using OpenAL, whether to open via dlopen at runtime to be able to abort in case of absence" ON)
option(UseCURL "Whether to use curl" ON)
option(UseCURLDlopen "When using CURL, whether to open via dlopen at runtime to be able to abort in case of absence" ON)
option(UseCodecVorbis "Whether to use the Vorbis codec" OFF)
@mrwonko
mrwonko / snapvector.c
Created March 15, 2013 23:37
iojamp wip stuff
/*
===========================================================================
Copyright (C) 2011 Thilo Schulz <thilo@tjps.eu>
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
@mrwonko
mrwonko / thiscall_test.c
Created March 16, 2013 20:14
Testing calling __thiscall functions (member functions) from (inline) asm (MSVC)
#include "stdafx.h"
#include <stdio.h> //printf
#include <stdlib.h>//system
class OpaqueClass
{
public:
OpaqueClass(const char* name) : mName(name) {}
@mrwonko
mrwonko / animation.cfg
Created March 18, 2013 00:22
vtol vehicle for jedi academy
// Animation Data generated from Blender Markers
// name start length loop fps
BOTH_GEARS_OPEN 0 15 -1 20
BOTH_GEARS_CLOSE 0 15 -1 -20
BOTH_WINGS_OPEN 15 20 -1 20
BOTH_WINGS_CLOSE 15 20 -1 -20
BOTH_VS_IDLE 14 1 -1 20
ROOT 14 1 -1 20
@mrwonko
mrwonko / uniqueJapackModels.txt
Created March 19, 2013 10:30
A list of models in GTK Radiant's JAPack that are in no way redundant (i.e. they are not included in assets1.pk3 and they're not just an .ase version of an available md3 model)
models/chunks/metal/vjun_metal1_1.md3
models/chunks/metal/vjun_metal1_2.md3
models/chunks/metal/vjun_metal1_3.md3
models/chunks/metal/vjun_metal1_4.md3
models/chunks/metal/vjun_metal2_1.md3
models/chunks/metal/vjun_metal2_2.md3
models/chunks/metal/vjun_metal2_3.md3
models/chunks/metal/vjun_metal2_4.md3
models/items/bacta.md3
models/items/psd_big.md3
@mrwonko
mrwonko / topicbot.py
Created April 10, 2013 19:10
IRC bot that reads out the topic to anyone who joins
import socket, signal, sys
nickname = "TopicBot"
server = "irc.arloria.net"
port = 6667
channel = "#jacoders"
blacklist = { "ghbot" }
RPL_WELCOME = "001"
RPL_TOPIC = "332"
@mrwonko
mrwonko / BiochemistTest.java
Last active December 18, 2015 13:49
Uni Ueb05 Tests
package willitests;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.*;
import lab.employees.Biochemist;
import org.junit.Test;
public class BiochemistTest {
@mrwonko
mrwonko / topicbot.py
Created September 6, 2013 17:56
irc bot for reading out the topic
import socket, signal, sys
nickname = "TopicBot"
server = "irc.arloria.net"
port = 6667
channel = "#jacoders"
blacklist = { "ghbot" }
RPL_WELCOME = "001"
RPL_TOPIC = "332"
@mrwonko
mrwonko / main.lua
Created August 26, 2012 11:46
Quick test of how multithreaded lua works
for i = 1, 20 do
print("Hello main thread world! " .. counter)
counter = counter + 1;
end
@mrwonko
mrwonko / errors.txt
Created March 19, 2018 21:27
Errors in a Nim snippet
in Visual Studio Code with https://play.nim-lang.org/?gist=e609c6c728d4cbf8751f0cf618d4df0e I got these errors:
type mismatch: got <int64> but expected 'bool'
type mismatch: got <Flags, set[range 0..65535(int)]>
but expected one of:
proc `==`(x, y: int32): bool
first type mismatch at position: 1
required type: int32