Skip to content

Instantly share code, notes, and snippets.

View kaimys's full-sized avatar

Kai Mysliwiec kaimys

View GitHub Profile
@kaimys
kaimys / lamba-calculus.js
Last active February 12, 2021 15:01
Have fun with lambda calculus and JavaScript
/*
* Experimenting with lambda calculus by translating it to JavaScript
*
* Some resources
* - http://www.cs.columbia.edu/~sedwards/classes/2017/4115-fall/lambda.pdf
* - https://medium.com/@ahlechandre/lambda-calculus-with-javascript-897f7e81f259
* - https://crypto.stanford.edu/~blynn/lambda/index.html
*/
// *Church booleans* are functions which accept two parameters. In case of True
@kaimys
kaimys / keybase.md
Created January 20, 2021 07:50
Keybase proof

Keybase proof

I hereby claim:

  • I am kaimys on github.
  • I am kaimys (https://keybase.io/kaimys) on keybase.
  • I have a public key ASD3AFL6Gle-mabzPpZRJUsqNOy6SMbTjCm79lSjWpRQzQo

To claim this, I am signing this object:

@kaimys
kaimys / persistent_variable.txt
Created January 20, 2012 09:06
eZ Publish persistent_variable
{* Merge a new key/value pair to persistent_variable in node context *}
{set scope=global $persistent_variable = $#persistent_variable | merge(hash('key', 'value')) }
{* Access the value of the persistent 'key' in pagelayout context *}
{$module_result.content_info.persistent_variable.key}