Skip to content

Instantly share code, notes, and snippets.

View carlfindahl's full-sized avatar

Carl Findahl carlfindahl

View GitHub Profile
@carlfindahl
carlfindahl / main.cpp
Created February 27, 2020 22:05
EnTT Meta vs. Unique ptr Vector
#include <cmath>
#include <vector>
#include <memory>
#include <benchmark/benchmark.h>
#include <entt/meta/factory.hpp>
/** Arbitrary system with some pointers to give it a size */
class ISystem
{
@carlfindahl
carlfindahl / Trollbyrinth.py
Created September 17, 2017 07:24
DailyProgrammer Weekly #25 Challenge - Escape The Trolls. A solution using Python 3 and Curses
# TROLLBYRINTH - FOR /R/DAILYPROGRAMMER WEEKLY #25 - BY CARL F. (2016)
import curses
import random
from collections import deque
from functools import partial
LABYRINTH = [\
"#########################################################################",
"# # # # # # #",
@carlfindahl
carlfindahl / LiveSpeed.py
Created July 30, 2017 13:12
Live Speedometer
import threading
import time
import curses
class Speedometer(object):
def __init__(self):
# TRACKER VALUES
self.distTravelled = 0