Skip to content

Instantly share code, notes, and snippets.

View lamarqua's full-sized avatar

Adrien lamarqua

  • Montréal, Québec
View GitHub Profile
@lamarqua
lamarqua / gui.c
Created October 9, 2017 16:54 — forked from vurtun/gui.c
/* ===========================================================================
*
* LIBRARY
*
* =========================================================================== */
/* Proof of Concept GUI:
* - PoC UI implementation in ~2kLOC of C89 (ANSI C)
* => Core solutions has no external dependencies (removing standard library dependency is trival)
* => Does not use or require any special language constructs or macro constructs just pointers and enums
* - Combines both "retained" and "immediate mode" UI by providing control over update frequency
@lamarqua
lamarqua / Logic.idr
Created September 10, 2016 12:42 — forked from mbbx6spp/Logic.idr
Propositions *AS* Types: The Cheatsheet (with Fancy Nancy)
module Logic
-- Connective is a fancy word for operator.
namespace Connectives
-- Truth: Also known as the "unit" type, (there is only one truth in value,
-- literally).
-- Scala: type Truth = Unit
-- Haskell: type Truth = ()
Truth : Type
@lamarqua
lamarqua / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console