This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.navbar.navbar-inverse | |
.navbar-inner | |
a.brand href="#" Home | |
#profile-pic.row-fluid.pagination-centered | |
if profile_pic_url | |
img src=profile_pic_url | |
else | |
i.img-polaroid.icon-user | |
.row-fluid.pagination-centered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Video Sync tool for fast seeking without | |
* breaking video because of an event overload | |
* | |
* Developed for ThinkWell Player | |
*/ | |
(function($) { | |
//Shortcuts (to increase compression) | |
var videosync = 'videosync', | |
TRUE = true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var imageCache = []; | |
// preload images and cache them for rapid loading | |
function preloadImages(paths) { | |
for (var i = paths.length; i--;) { | |
var cacheImage = document.createElement('img'); | |
cacheImage.src = paths[i]; | |
imageCache.push(cacheImage); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
++++++++++[>+>+++>++++++>++++++++++>++++++++++>+++++++++++>+++++++++++<<<<<<<-]>>++>>>+++++>>+++++<<<<<<<[-]>>>>>>>>++++++++++[<<<<<<<<++++++++++>>>>>>>>-]<<<<<<<<[>>>+->>>+->+-<--++<<+->>><<<<<>>>>+-<<++--<<>+->+->>>-+<<<<<<<><-]<<<<<< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::Base.class_eval do | |
class << self | |
# Ugly bit of metaprogramming to remove an existing validation | |
# @param type of validation. ex. :validates_uniqueness_of | |
# @param name of attribute to be validated. ex. :email | |
def remove_validation type, name | |
@validate_callbacks.reject! do |back| | |
proc = back.method | |
if proc.is_a?(Proc) | |
# Returns the name of method the proc was declared in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##############commands################# | |
run "rm .gitignore" | |
file '.gitignore', <<-ENDEND | |
*~ | |
.bundle | |
nbproject/ | |
.idea | |
.DS_Store | |
Thumbs.db | |
db/*.sqlite3 |