Skip to content

Instantly share code, notes, and snippets.

def self.assessment_note_value_for(company, question)
if self.assessment_question_value_for(company, question).not_nil?
if(set = company.question_set)
if(CUSTOM_QQ_NOTES[set])
return CUSTOM_QQ_NOTES[set][question.dss_version][question.number]
end
end
end
end
<script>
Event.observe(window, "load", function(){
$("payment_type_id").value = "";
});
</script>
class Object
def nil_or
self
end
def not_nil?
true
end
end
function updateButtonState(){
browsed && enable(UPLOAD);
selected && enable(SELECT);
(browsed && selected) && enable(REPLACE);
function enable(i){
buttons.eq(i).removeAttr("disabled");
}
}
#JOSHDO: ${1:"do something"} (`date "+%m/%d/%y"`)
$2
@jemmons
jemmons / #dotfiles
Last active February 23, 2021 02:38
Configuration dotfiles for various command line tools.
# Configuration dotfiles for various command line tools.