Skip to content

Instantly share code, notes, and snippets.

@danierdev
danierdev / ycombinator.php
Last active April 7, 2016 14:17
Y Combinator in PHP7
<?php
function Y($le) {
return (function ($f) {
return $f($f);
})(function ($f) use ($le) {
return $le(function ($x) use ($f) {
return $f($f)($x);
});
});
@danierdev
danierdev / jquery-plugin.js
Created March 31, 2016 03:42 — forked from benjasHu/jquery-plugin.js
ES6 Module jQuery Plugin Definition
import pluginify from 'pluginify';
class Plugin {
constructor() {
/* ... */
}
}
/*
Convert plugin class into a jQuery plugin