Skip to content

Instantly share code, notes, and snippets.

View cschladetsch's full-sized avatar
💭
Working on Distributed Xr Experiences.

Christian Schladetsch cschladetsch

💭
Working on Distributed Xr Experiences.
View GitHub Profile
MIT License
Copyright (c) 2019 Christian Schladetsch
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
fun f1(n)
n+1
fun f2(n)
f1(n + 2)
assert f1(1) == 2
assert f2(1) == 4
fun f3(n, a)
@cschladetsch
cschladetsch / AddArgType.h
Created May 18, 2016 10:17
Yay! After a little while, I understand variadic templates!
#pragma once
KAI_BEGIN
namespace function_detail
{
template<int N, class... Args>
struct AddArgType;
template<int N, class Head, class... Tail>
#include <cstddef>
class Foo
{
public:
bool _bool;
int _int;
float _float;
};
@cschladetsch
cschladetsch / CoParser
Created February 18, 2014 14:58
New Parsing Model using Co-routines
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Flow;
namespace Translate
{
class TextInterval
{