Skip to content

Instantly share code, notes, and snippets.

@pilliq
pilliq / README.md
Last active August 29, 2015 14:14
Intro to d3

Code that we wrote during the tutorial

To run:

  1. Clone the repo onto your computer by running git clone https://gist.github.com/dc279728bc6b9e21c96b.git in a terminal
  2. Change your current directory to the folder containing the file index.html
  3. Run python -m SimpleHTTPServer 8000
  4. Navigate your browser to localhost:8000
@pilliq
pilliq / README.markdown
Created April 9, 2012 19:47 — 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