Skip to content

Instantly share code, notes, and snippets.

@nathggns
nathggns / curry.es6.js
Created Jun 7, 2015
Recursive curry functions in ES6
View curry.es6.js
function curry(fn, ...args) {
if (args.length === fn.length) {
return fn(...args);
}
return curry.bind(this, fn, ...args);
}
function add(a, b) {
return a + b;
@rebolek
rebolek / base32.red
Created Aug 16, 2017
Base 32 encoder and decoder
View base32.red
Red [
file: %base32.red
date: 17-Sep-2015
author: "Graham Chiu"
red-version: "Boleslav Březovský"
version: 0.0.3
notes: {
encodes string to base32 or base32hex
padding to 5 characters is not required in this method
>> to-base32/decode/hex to-base32/hex "yessir"
@maxpert
maxpert / Femto.js
Created May 24, 2011
Femto JS Templating
View Femto.js
/**
The MIT License
Copyright (c) 2010 Zohaib Sibt-e-Hassan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is