Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <string>
#include <iostream>
class ShitString {
public:
ShitString( char const *_str ) : mData( _str ) {
}
@gazliddon
gazliddon / isa.cpp
Last active March 18, 2016 19:10
asd
#include "isa.h"
#include "six8.h"
#include <map>
#include <unordered_map>
#include <iostream>
namespace six8 {
@gazliddon
gazliddon / cons.h
Created February 2, 2016 08:56
everyone ends up writing lisp
#ifndef CONS_H_15URYTVP
#define CONS_H_15URYTVP
#include <tuple>
#include "list.h"
namespace shitlib {
namespace mpl {
namespace detail {
@gazliddon
gazliddon / main.cpp
Last active January 28, 2016 13:31
Function traits
#include <iostream>
#include <tuple>
////////////////////////////////////////////////////////////////////////////////
template<class A, template<class...> class B> struct mp_rename_impl;
template<template<class...> class A, class... T, template<class...> class B>
struct mp_rename_impl<A<T...>, B>
{
using type = B<T...>;
@gazliddon
gazliddon / notes.md
Created September 6, 2015 12:02
Livecoding notes

What Is This?

@gazliddon
gazliddon / gazscratch.md
Created September 5, 2015 18:29
Livecoding Info
@gazliddon
gazliddon / quake.md
Last active August 29, 2015 14:26
Quake Season

alt text

Quake Season Is On

I've set up a quake 1 server using the darkplaces dedicated server. You'll need the darkplaces client which you can down load from here.

To join the game you need to connect to www.ruffiangames.com

@gazliddon
gazliddon / Main.hs
Created July 10, 2015 18:03
RLE in Haskell
--------------------------------------------------------------------------------
-- Run length encode
encode :: Eq a => [a] -> [(Int, a)]
encode xs = map (\x -> (length x , head x)) (group xs)
@gazliddon
gazliddon / gist:298480b62c80f42593e3
Created December 15, 2014 16:45
Man, clojure is terse
(def get-event-action [table event current-state]
(let [identity (fn [o _] o)]
(get-in table [current-state event] identity)))
(def player-state-table
{:spawning {:timeout go-running }
:running {:button go-jump
:fall-off go-fall }
set autoupdategist
set nosmoothscroll
let scrollstep=100
site '*://feedly.com/*' {
unmap j
unmap k
unmap ;
}