Skip to content

Instantly share code, notes, and snippets.

@crm114
crm114 / gist:3113406
Created July 14, 2012 21:17
Django vs Rails
class Lesson
include Mongoid::Document
field :title, type: String
field :body, type: String
field :release_date, type: Date
field :pdf, type: String
field :image, type String
field :audio, type: String
end
function expand() {
$(this).hide();
var parent;
parent = $(this).parents(".span4");
console.log(parent);
$(parent).contents().find("a.collapse-translation").show();
$(parent).css("height", "auto");
$(parent).children(".extra-content").slideDown();
return false;
@crm114
crm114 / gist:2404176
Created April 17, 2012 07:26
navbar/login fix
// Dirty fix | Line 120
<div class="container" style="width: 980px;">
// CSS Fix
<div class="container" id="navbar">
// Add rule to CSS