Skip to content

Instantly share code, notes, and snippets.

View emperorcezar's full-sized avatar

Adam "Cezar" Jenkins emperorcezar

  • SpotHero
  • Mokena, IL
View GitHub Profile
@emperorcezar
emperorcezar / jquery-pcollapse.js
Created December 14, 2010 20:16
This is a small jquery plugin that allows a div that partially collapses
(function( $ ){
$.fn.pCollapse = function( options ) {
var settings = {
'start': '100px',
};
// there's no need to do $(this) because
// "this" is already a jquery object
// $(this) would be the same as $($('#element'));
data = sorted(data)
times = {}
for single in data:
try:
times[single] += 1
except KeyError:
times[single] = 1