Skip to content

Instantly share code, notes, and snippets.

View oma's full-sized avatar

Ole Morten Amundsen oma

View GitHub Profile
@oma
oma / README.txt
Created August 21, 2012 19:26 — forked from i-scorpion/README.txt
Twitter bootstrap fixed table header using jQuery
Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled.
Using the code from twitter bootstrap documentation page, this code is customized for table header.
Create the table with following layout -
<table class="table-fixed-header">
<thead class="header">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
@oma
oma / mongoid.yml
Created June 9, 2012 12:28 — forked from tal/mongoid.yml
development: &defaults
# Configure available database sessions. (required)
sessions:
# Defines the default session. (required)
default: &default_session
# Defines the name of the default database that Mongoid can connect to.
# (required).
database: delight_development
# Provides the hosts the default session can connect to. Must be an array
# of host:port pairs. (required)