Skip to content

Instantly share code, notes, and snippets.

View felipero's full-sized avatar
🐞
Debugging

Felipe Rodrigues felipero

🐞
Debugging
View GitHub Profile

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

  • Ability to disable autoselect of first matched element.
  • Ability to automatically set the width of the dropdown to that of the text input.
  • Ability to fetch source element via AJAX
  • Ability to have a comma separated list of tags.

For the proper source, and other examples, please see the original gist.

Example showing off all the above features

@felipero
felipero / gist:1084997
Created July 15, 2011 16:15 — forked from juanplopes/gist:1084911
Sugestão de refactoring
# adapter = ConnectionAdapter.new(connection
# request = Request.new(registration, card)
# transaction = request.execute_at!(adapter)
module Integration
class Transaction
def initialize(data)
@data = data
end
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
#
# <VirtualHost *:80>
# ServerName example.com
# ServerAlias *.example.com
# </VirtualHost>
#
# 3) Set the current account from the subdomain