Skip to content

Instantly share code, notes, and snippets.

View calebrash's full-sized avatar

Caleb Rash calebrash

View GitHub Profile

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions. This fork of the fork adds comparisons to string that have accents and prevent errors when the ajax is not complete yet.

For example, process typeahead list asynchronously and return objects


Forked for future reference

Highlighted important accent-related changes

@calebrash
calebrash / cachable.js
Last active August 29, 2015 14:21
JS cache decorator function
/**
* Cacheable decorator function.
* @returns cacheable function. Results will be cached based on first argument.
**/
let cacheable = function (f) {
var __ = {};
return function () {
if (__[arguments[0]]) {
return __[arguments[0]];
} else {

Keybase proof

I hereby claim:

  • I am calebrash on github.
  • I am calebrash (https://keybase.io/calebrash) on keybase.
  • I have a public key ASAk2DFa2BoOtMXBX35K348-Get_MH6z822sftCC5QY1YQo

To claim this, I am signing this object: