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
--------------------------------------------------------------- | |
oooo | |
`888 | |
oooo d8b .ooooo. oooo ooo 888 oooo oooo | |
`888""8P d88' `88b `88b..8P' 888 `888 `888 | |
888 888 888 Y888' 888 888 888 | |
888 888 888 .o8"'88b 888 888 888 | |
d888b `Y8bod8P' o88' 888o o888o `V88V"V8P' |
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 <assert.h> | |
#include <GLFW/glfw3.h> | |
#include <swnt/GUI.h> | |
GUI::GUI() | |
:win_w(0) | |
,win_h(0) | |
{ | |
} |
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/sh | |
# Compiling nginx + php + mysql on Mac OSX 10.9 | |
# --------------------------------------------- | |
# | |
# | |
# CONFIGURE | |
# --------------- | |
# 1) Edit `conf/nginx.conf` and add this to the between the server { ... } config. | |
# NOTE: the current config you only need to uncomment the example that looks like this, |
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/sh | |
# Compiling nginx + php + mysql on Mac OSX 10.9 | |
# --------------------------------------------- | |
# | |
# | |
# CONFIGURE | |
# --------------- | |
# 1) Edit `conf/nginx.conf` and add this to the between the server { ... } config. | |
# NOTE: the current config you only need to uncomment the example that looks like this, |
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 "ParallelTransportFrames.h" | |
#include "OpenGL.h" | |
void ParallelTransportFrames::addPoint(const Vec3& p) { | |
points.push_back(p); | |
} | |
void ParallelTransportFrames::create(Vec3 V) { | |
Vec3 V_prev = V; | |
for(int i = 0; i < points.size()-2; ++i) { |
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
/* | |
-------------------------------------------------------------------------------- | |
oooo | |
`888 | |
oooo d8b .ooooo. oooo ooo 888 oooo oooo | |
`888""8P d88' `88b `88b..8P' 888 `888 `888 | |
888 888 888 Y888' 888 888 888 | |
888 888 888 .o8"'88b 888 888 888 |
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 <gfx/AsyncUpload.h> | |
namespace gfx { | |
AsyncUpload::AsyncUpload() | |
:width(0) | |
,height(0) | |
,dx(0) | |
,channels(0) | |
,n(0) |
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 <rapidxml.hpp> | |
#include "Config.h" | |
Config::Config() { | |
} | |
Config::~Config() { | |
} |
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
on appIsRunning(appName) | |
tell application "System Events" to (name of processes) contains appName | |
end appIsRunning | |
on makeActive(appName) | |
tell application appName | |
activate | |
end tell | |
end makeActive |
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
cmake_minimum_required(VERSION 2.8.11) | |
set(bd ${CMAKE_CURRENT_LIST_DIR}) | |
set(id ${bd}) | |
include_directories(${id}) | |
add_executable(test_thread test_thread.cpp) | |
if (WIN32) |