This file contains hidden or 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 "stdafx.h" | |
| #include <stdio.h> //printf | |
| #include <stdlib.h>//system | |
| class OpaqueClass | |
| { | |
| public: | |
| OpaqueClass(const char* name) : mName(name) {} |
This file contains hidden or 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
| /* | |
| =========================================================================== | |
| 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. |
This file contains hidden or 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
| 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) |
This file contains hidden or 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
| # --------------------------------------------- # | |
| # Fachhochschule Wedel, Wintersemester 2012 # | |
| # C-Uebung 04 - ALU # | |
| # Hanno Sternberg # | |
| # # | |
| # Makefile # | |
| # --------------------------------------------- # | |
| # Compiler | |
| CC = gcc |
This file contains hidden or 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
| for i = 1, 20 do | |
| print("Hello main thread world! " .. counter) | |
| counter = counter + 1; | |
| end |
This file contains hidden or 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) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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; | |
| } |