Skip to content

Instantly share code, notes, and snippets.

View ivancrneto's full-sized avatar

Ivan Neto ivancrneto

View GitHub Profile
## {{{ http://code.activestate.com/recipes/532908/ (r3)
#! /usr/bin/env python
"""
pyText2Pdf - Python script to convert plain text files into Adobe
Acrobat PDF files with support for arbitrary page breaks etc.
Version 2.0
Author: Anand B Pillai <abpillai at gmail dot com>
@ivancrneto
ivancrneto / README.markdown
Created June 23, 2012 16:13 — forked from Yavari/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.

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

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