Skip to content

Instantly share code, notes, and snippets.

View djalilhebal's full-sized avatar
💜
Making the impossible possible

Abdeldjalil Hebal djalilhebal

💜
Making the impossible possible
View GitHub Profile
@enobayram
enobayram / maybe.c
Created May 21, 2017 15:57
Maybe monad in C
#include <stdlib.h>
#include <stdio.h>
// return :: Monad m => a -> m a
typedef void * /* m a */ return_t(void * /* a */);
// type kleisli_arrow a b = a -> m b
typedef void * /* m b */ kleisli_arrow(void * /* a */);
// bind :: Monad m => m a -> (a -> m b) -> m b
@carlosrymer
carlosrymer / BasicES6PromiseClass.js
Last active September 21, 2018 14:52
Simple ES6 Promise Class
// Simulating a Basic Promise in ES6
class Promise {
constructor(callback) {
this._errorCallbacks = [];
this._successCallbacks = [];
if (typeof callback === 'function') {
try {
callback(this.resolveIt.bind(this), this.rejectIt.bind(this));
} catch (e) {
@ncase
ncase / resume.md
Last active May 8, 2019 18:50
Nicky Case's Resume, I Guess

#Art. Code. Words.

Nicky Case plays with play. They make interactive non-fiction, to help people understand the world, and interactive stories, to help people understand themselves.

website: ncase.me
twitter: @ncasenmare
github: ncase

It's also been a really long time since they've needed to write a résumé, so they're going to assume this pseudo-third-person biography plus the following stuff shall suffice: