Skip to content

Instantly share code, notes, and snippets.

@maxpert
maxpert / Femto.js
Created May 24, 2011 17:16
Femto JS Templating
/**
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
@rebolek
rebolek / base32.red
Created August 16, 2017 20:18
Base 32 encoder and decoder
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"
@nathggns
nathggns / curry.es6.js
Created June 7, 2015 02:46
Recursive curry functions in ES6
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;