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
$('.editable').mouseenter(function(){ | |
$(this).children('.nubbin_wrapper').fadeIn() | |
}) | |
$('.editable').mouseleave(function(){ | |
$(this).children('.nubbin_wrapper').fadeOut() | |
}) |
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
teachfirst:mongocc ScottMessinger$ rvm info | |
ruby-1.8.7-p299@mongocc: | |
system: | |
uname: "Darwin teachfirst.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386" | |
shell: "bash" | |
version: "3.2.48(1)-release" | |
rvm: | |
version: "rvm 0.1.41 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]" |
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
def sort_roots | |
sequence_groups = [] | |
#turn hash into array | |
params[:sequence_groups].each do |k, v| | |
sequence_groups << v | |
end | |
# First, assign the correct group_id | |
root_sequences = [] | |
sequence_groups.each do |sg| | |
group_id = sg.keys[0].to_s.gsub('sequence_group_', '') |
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
def sort_roots | |
sequence_groups = [] | |
#turn hash into array | |
params[:sequence_groups].each do |k, v| | |
sequence_groups << v | |
end | |
# First, assign the correct group_id | |
root_sequences = [] | |
sequence_groups.each do |sg| | |
group_id = sg.keys[0].to_s.gsub('sequence_group_', '') |
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
$('.editable').live('mouseover mouseout', function(event) { | |
if (event.type == 'mouseover') { | |
function() { | |
$(this).children('.nubbin_wrapper').show(); | |
} | |
} else { | |
function() { | |
$(this).children('.nubbin_wrapper').hide(); | |
} | |
} |
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
# from sequences_controller.rb | |
def sort | |
sequence_groups = [] | |
#turn hash into array | |
if params[:sequence_groups] | |
params[:sequence_groups].each do |k, v| | |
sequence_groups << v | |
end | |
array = Sequence.assign_group_id(sequence_groups) |
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
def match_text_for_idx idx | |
match = truncated_match @matches[idx] | |
if idx == @selection | |
prefix = @@selection_marker | |
suffix = padding_for_selected_match match | |
else | |
prefix = @@unselected_marker | |
suffix = '' | |
end | |
prefix + file_name(match) + match + suffix |
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
module CoursePresenters | |
class ShowPresenter < Presenter | |
include AvailableResourceTypes | |
available_types #this is how I initialize availabe_resource_types...there has to be a better way | |
include CanCan::Ability | |
def initialize(course, current_user) | |
@current_user = current_user || User.new | |
@course = Course.find(course) |
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
{ | |
"uuid": "1a8c3540-ad56-53a4-92b4-cbb1e90f2e6f", | |
"ukey": "CC.E.K.RF.Print Concepts.1.a", | |
"_id": "1a8c3540-ad56-53a4-92b4-cbb1e90f2e6f", | |
"set": "Common Core State Standards Initiative", | |
"set_code": "CC", | |
"subject": "English/Language Arts", | |
"subject code": "E", |
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
<iframe name='please' style='display: none' src='https://spreadsheets.google.com/formResponse?formkey=asdasdf'></iframe> | |
<form target='please' action='https://spreadsheets.google.com/formResponse?formkey=asdasdf' class='contact_us' id='contact_us_form' method='POST' > |
OlderNewer