Skip to content

Instantly share code, notes, and snippets.

View TheNeikos's full-sized avatar
😼
💻🐈🌈

Marcel Müller TheNeikos

😼
💻🐈🌈
View GitHub Profile
@tomstuart
tomstuart / gist:1466504
Created December 12, 2011 10:40
FizzBuzz in the lambda calculus in Ruby
>> IF = -> b { b }
=> #<Proc:0x007fb4e4049cc8 (lambda)>
>> LEFT = -> p { p[-> x { -> y { x } } ] }
=> #<Proc:0x007fb4e403d680 (lambda)>
>> RIGHT = -> p { p[-> x { -> y { y } } ] }
=> #<Proc:0x007fb4e4028ff0 (lambda)>
>> IS_EMPTY = LEFT
@31
31 / gist:3781b066e16bf538f170
Last active November 10, 2023 02:05
OpenGL functions by object
@Codimale
Codimale / FreeRes.lua
Last active November 27, 2016 05:27
An easy way to resize your game.
--[[
FreeRes - An easy way to resize your game.
FreeRes is a library that makes adding multiple aspect ratio support to your game
easily.
It's been created to fill the hole that TLfres left after it became obsolete.
Because of this its methods use the same names.
]]--
FreeRes = {} -- namespace
local currentWidth, currentHeight, originalWidth, originalHeight, scale, scaleMultiplier, letterWidth, letterHeight, xLetter, yLetter