Skip to content

Instantly share code, notes, and snippets.

View kingcoyote's full-sized avatar

Steve Phillips kingcoyote

View GitHub Profile
Teacher.virtual('highest_degree').get(function() {
var weights = {
'Doctorates' : 100,
'Masters' : 10,
'Bachelors' : 1
}
return this.education.degrees.sort(function(a, b) {
return weights[b.degree_type] - weights[a.degree_type];
})[0].degree_type;
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
if ($row['staffid.id']== $selectid) {
$counter++;
echo "<tr><td class='pad'><font class=content>";
echo "{$row['Year']}";
echo "</font></td><td></td><td><font class=content>";
echo "{$row['Counselor_Role']}";
<html>
<head>
<body>
$('table.priceForm tr th.subhead').click(function() {});
$('table.priceForm').on('click', 'tr th.subhead', function() {});