Skip to content

Instantly share code, notes, and snippets.

View morkeleb's full-sized avatar

Morten Nielsen morkeleb

View GitHub Profile
@morkeleb
morkeleb / README.md
Last active August 29, 2015 14:13 — forked from ni-ka/README.md

Usage

  1. Put server.coffee next to config.coffee
  2. Register server.coffee in config.coffee server: path: 'server.coffee'
  3. Add required modules to package.json npm install --save express http-proxy

Notes

@morkeleb
morkeleb / README.markdown
Created February 28, 2012 14:21 — forked from gudbergur/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string