Skip to content

Instantly share code, notes, and snippets.

View AJLeuer's full-sized avatar

Adam Leuer AJLeuer

  • Seattle, WA
View GitHub Profile
//
// Vect.h
// Chess
//
// Created by Adam James Leuer on 11/3/14.
// Copyright (c) 2014 Adam James Leuer. All rights reserved.
//
#ifndef Chess_Position_h
#define Chess_Position_h
@AJLeuer
AJLeuer / ___FILEBASENAME___.cpp
Last active March 1, 2018 00:42
Xcode C++ Template Replacement
#include "___FILEBASENAME___.hpp"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using static System.Console;
class CSLambdaAndThreadExamples {
delegate void TestDelegate(string s);
@AJLeuer
AJLeuer / Timer.cpp
Last active September 18, 2015 07:22
C++ timer class
#include "Timer.hpp"
using namespace std ;
Timer::Timer() : timerStarted(false) {}
Timer::Timer(Timer && other) : timerStarted(std::move(other.timerStarted)), start(std::move(other.start)) {}
@AJLeuer
AJLeuer / BuildConfig.xcconfig
Last active August 29, 2015 14:18
Reusable common build configuration settings for Xcode projects
//
// Config.xcconfig
// AsteroidsLike
//
// Created by Adam James Leuer on 4/2/15.
// Copyright (c) 2015 Adam James Leuer. All rights reserved.
//
ALWAYS_SEARCH_USER_PATHS = NO;
@AJLeuer
AJLeuer / Random
Last active August 29, 2015 14:18
C++ random generator class (written on top of the standard library's <random> facility)
C++ random generator class (written on top of the standard library's <random> facility)
@AJLeuer
AJLeuer / OpenCLInit.cpp
Last active April 21, 2019 16:27
OpenCL Initialization boilerplate
//in header
#include <iostream>
#include <OpenCL/OpenCL.h>
using namespace std ;
void runOpenCLKernel() ;