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
require 'rake' | |
##!/usr/bin/env rake | |
# Add your own tasks in files placed in lib/tasks ending in .rake, | |
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
require File.expand_path('../config/application', __FILE__) | |
module ::Example | |
class Application | |
include Rake::DSL |
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
# Find the specific Linux Version | |
$ cat /etc/issue | |
#CentOS release 5.6 (Final) | |
#Kernel \r on an \m |
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
// Wait until document is ready | |
$(function(){ | |
// Click any anchor tag and an element with id 'box' will fade out 'fast.' | |
// You can also pass fadeOut() a milliseconds argument. | |
$("a").click(function(){ | |
$("#box").fadeOut('fast'); | |
}); | |
// Click any anchor tag and turn all anchors inside of p tags to red. |
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
class Rise.Views.Teach.Courses.Content extends Backbone.Marionette.Layout | |
el: '.course--content' | |
ui: | |
$addLesson: '.add--lesson' | |
$addSection: '.add--section' | |
$reorderButton: '.reorder--items' | |
regions: | |
items: '#course--items' |
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
require ['media-uploader'], (MediaUploader) -> | |
class Rise.Views.Teach.Lessons.UploadContentModal extends MediaUploader.UploadModal | |
el: '#upload-modal' | |
FILE_TYPES: | |
'Content::Document': ['pdf'] | |
'Content::Media': ['video', 'audio'] | |
initialize: -> | |
setDefaults() |