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/env python3 | |
# license MIT | |
import sys | |
import traceback | |
print("Content-type: text/html\r\n\r\n") | |
def run(): |
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
#!/bin/bash | |
set -euxo pipefail | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
cd "$DIR" | |
# Treat as c source file: -x c | |
# Don't output line markers: -P | |
# Don't search system include path: -nostdinc |
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
// Headerphile.com OpenGL Tutorial part 1 | |
// A Hello World in the world of OpenGL ( creating a simple windonw and setting background color ) | |
// Source code is an C++ adaption / simplicication of : https://www.opengl.org/wiki/Tutorial1:_Creating_a_Cross_Platform_OpenGL_3.2_Context_in_SDL_(C_/_SDL) | |
// Compile : clang++ main.cpp -lGL -lSDL2 -std=c++11 -o Test | |
// C++ Headers | |
#include <string> | |
#include <iostream> | |
// OpenGL / glew Headers |
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 <thread> | |
#include <mutex> | |
#include <atomic> | |
class State | |
{ | |
public: | |
std::mutex mMutex; | |
}; |
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
funcs = [ | |
"glGenBuffers", | |
"glBindBuffer", | |
"glBufferData", | |
"glGenVertexArrays", | |
"glBindVertexArray", | |
"glEnableVertexAttribArray", | |
"glVertexAttribPointer", | |
"glCreateShader", | |
"glCompileShader", |
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: 7/16/2014, 23:06:38 | |
Machine name: PONG | |
Operating System: Windows Server 2012 Datacenter 64-bit (6.2, Build 9200) (9200.win8_rtm.120725-1247) | |
Language: English (Regional Setting: English) | |
System Manufacturer: System manufacturer | |
System Model: System Product Name | |
BIOS: BIOS Date: 02/05/10 19:13:52 Ver: 08.00.10 |