Skip to content

Instantly share code, notes, and snippets.

class Nothing;
template <typename T>
class Optional
{
T value;
bool valid;
Optional(const T &value)
: value(value)
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
// Analysis of d_osc.c from Pure Data
#define UNITBIT32 1572864.
// #define UNITBIT32 524288.
/* #define UNITBIT32 1048576. */
@mrshpot
mrshpot / egl_opengl_test.cpp
Created June 26, 2018 19:58
EGL Offscreen Rendering RPi
/*
* Example program for creating an OpenGL context with EGL for offscreen
* rendering with a framebuffer.
*
*
* The MIT License (MIT)
* Copyright (c) 2014 Sven-Kristofer Pilz
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
--- PKGBUILD.bk 2020-05-17 16:46:22.215277658 +0300
+++ PKGBUILD 2020-05-17 16:40:27.445277285 +0300
@@ -15,9 +15,11 @@
install=openframeworks.install
source=(
"openal_fix.patch"
+ "make_fix.patch"
"of-make-workspace"
"https://openframeworks.cc/versions/v${pkgver}/of_v${pkgver}_linux64gcc6_release.tar.gz")
sha256sums=('3e04a8ff4da53e813c0d20b87d5f2231a10767b3a0960af46b0902812b616734'