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
# ... | |
gem 'canvas_oauth_engine', :require => 'canvas_oauth' | |
# ... |
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
# ... | |
gem 'lti_provider_engine', :require => 'lti_provider' | |
# ... |
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
config.cache_classes = true | |
config.action_controller.perform_caching = true | |
config.action_view.cache_template_loading = true | |
# ENV['USE_OPTIMIZED_JS'] = "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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
</head> | |
<body> | |
<a href='#' id='controller' aria-expanded=true aria-controls='blah'>Click Me</a> | |
<div id='blah'> | |
<p>hi</p> | |
</div> |
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
group :development do | |
gem "pry" | |
gem "powder" | |
gem "letter_opener" | |
gem "better_errors", ">= 0.7.2" | |
gem "binding_of_caller", ">= 0.7.1" | |
gem 'meta_request' | |
gem "html2haml", ">= 1.0.1" | |
gem 'guard' | |
gem 'rb-fsevent', require: false |
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
# - fail.png => http://cl.ly/image/183e0Z3L181f | |
# - pass.png => http://cl.ly/image/233w153f3o2C | |
# - add `.build-icon { border: none; }` to your theme css | |
images = | |
fail: 'http://f.cl.ly/items/3W0B3C1l3u3D0w231y2y/fail.png' | |
pass: 'http://f.cl.ly/items/1g153P1F302c1h1F0T0P/pass.png' | |
bind 'line', (line) -> | |
message = $(line).find '.message' |
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
guid = ... | |
LearningOutcomeGroup.find_by_vendor_guid(guid).destroy | |
LearningOutcomeGroup.find_all_by_workflow_state("deleted").each{|log| log.destroy!} | |
ContentTag.all.each{|ct| ct.content.try(:destroy!) if ct.context.blank?} | |
cts_to_delete = [] | |
ContentTag.all.each{|ct| cts_to_delete << ct if ct.content.blank? || ct.context.blank?} | |
cts_to_delete.each(&:destroy!) |
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
# encoding: UTF-8 | |
require "rubygems" | |
require "awesome_print" | |
unless IRB.version.include?('DietRB') | |
IRB::Irb.class_eval do | |
def output_value | |
ap @context.last_value | |
end |
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
# remove the timestamp that bip inserts in a backlog message and set the time | |
# of the span element that limechat uses | |
bind 'line', (line) -> | |
# see if out message matches 'hh:mm:ss>' | |
$line = $(line) | |
html = $line.html() | |
regex = /(\d{2}:\d{2}):\d{2}>/ | |
matches = html.match regex | |
return unless matches |