This file contains 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
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> | |
<game | |
name="Jedi Knight Jedi Academy" | |
enginepath_win32="D:/Modding/JKA/GameData" | |
gametools_win32="D:/Modding/JKA/GameData/ZeroRadiant" | |
engine_win32="jasp.exe" | |
mp_engine_win32="jamp.exe" | |
basegame="base" | |
shaderpath="shaders" | |
default_scale="0.25" |
This file contains 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
------------------ | |
System Information | |
------------------ | |
Time of this report: 5/10/2012, 00:20:57 | |
Machine name: WILLI-SEVEN | |
Operating System: Windows 7 Professional 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.120305-1505) | |
Language: German (Regional Setting: German) | |
System Manufacturer: Gigabyte Technology Co., Ltd. | |
System Model: EP35-DS3 | |
BIOS: Award Modular BIOS v6.00PG |
This file contains 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
DOSSEG | |
.MODEL MEDIUM ; 1x Data, Nx Code | |
.STACK | |
; Exportierte Symbole | |
PUBLIC Sortiere | |
PUBLIC Save | |
PUBLIC Restore |
This file contains 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
-- main menu layout: | |
-- title on top, buttons below | |
local margin = width * 0.05 | |
local titleHeight = 100 | |
local menuWidth = 400 | |
Layout | |
{ | |
name = "main", |
This file contains 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
template<const std::vector<std::string> (*function)(const std::string&)> luabind::object StringVectorAsTable(const std::string& argument, lua_State* L) | |
{ | |
luabind::object result = luabind::newtable(L); | |
std::vector<std::string> vec = function(argument); | |
std::vector<std::string>::iterator end = vec.end(); | |
unsigned int index = 0; | |
for(std::vector<std::string>::iterator it = vec.begin(); it != end; ++it) | |
{ | |
result[++index] = *it; | |
} |
This file contains 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 <iostream> | |
#include <fstream> | |
#include <string> | |
#include <sstream> | |
#include <vector> | |
void printUsage() | |
{ | |
std::cout<<"Usage: echo [data] | yourProgram | wizualize <width (= height)> <output directory>"<<std::endl; | |
} |
This file contains 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
#! /usr/bin/python | |
GLA_IDENT = b"2LGA" | |
GLA_VERSION = 6 | |
import struct | |
class MdxaHeader: | |
def __init__( self ): |
This file contains 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
#! /usr/bin/python | |
import struct | |
#### | |
#### Matrix Math | |
#### | |
# N-Dimensional vector with operators == and * (dot product) | |
class Vector: |
This file contains 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
local success, message = pcall(error, "this is an error") | |
if not success then | |
print("Caught error:", message) | |
end | |
local success, message = xpcall( | |
error, | |
function(err) | |
return debug.traceback(err, 3) | |
end, |
This file contains 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
local function hook(event) | |
assert(event == "count") | |
local info = debug.getinfo(2, "Sl") -- get source file related info (S) and current line (l) | |
error("Code took to long (over 1000 instructions), aborted at file \"" .. info.short_src .. "\" line " .. info.currentline) | |
end | |
debug.sethook(hook, "", 1000) -- "" = when to call this hook, if any of "every line", "every function call" or "every function return", 1000 = call every 1000 instructions | |
local i = 0 | |
while true do | |
print(i) |
OlderNewer