Date: 2014.11.05 (A Wednesday in November)
- fix cheat
- look into analytics education
- code school?
@student_handouts = student_handouts_unfiltered.select { |sh| sh.title !~ /guide/i } | |
puts "X__" * 64 | |
@student_handouts.each {|x| puts "#{x.title}"} | |
puts "X__" * 64 |
# remove "Guides" if a trial | |
if current_staffer_trial?(current_staffer.id, @program.id) | |
@student_handouts = student_handouts_unfiltered.select { |sh| sh.title !~ /guide/i } | |
else | |
@student_handouts = student_handouts_unfiltered | |
end |
class Shared::AnswersController < ApplicationController | |
before_filter :authenticate_student_or_teacher! | |
def create | |
@lesson = Lesson.where(id: params[:lesson_id]).first | |
authorize! :read, @lesson | |
@challenge = @lesson.challenge | |
@challenge_result = current_student ? @challenge.result_for_student(current_student) : @challenge.result_for_staffer(current_staffer) | |
@max_num_attempts = false |
complete_assessment = (e) -> | |
$.ajax( | |
type: "PATCH" | |
url: $('#student_view_assessment').attr('data-updateurl') | |
success: (data) -> | |
if data.error | |
$('<div id="flash" class="alert">').html('<p>' + data.error + '</p>').insertBefore('#student_content') | |
e.preventDefault() | |
$('#student_view_assessment').html('Submit Answers') | |
else |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Hello,
I was pointed to this position via a friend, PERSON/ROLE/LOCATION, and I’m really interested in seeing if we would be a good fit for each other.
COMPANY X is a powerhouse of a company, COMPANY PURPOSE. HOW PURPOSE IS IMPORTANT TO YOU, and I’m excited at the possibility of working with a company that makes it a mission. I feel that your work is important to the world, and I would love to help you do what you do!