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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript" src="underscore.js"></script> | |
<style> | |
.container { | |
position: relative; |
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
var list = []; | |
$(".institution").each( function(){ list.push( $(this).text() ); } ); | |
list = list.sort(); | |
list.join("\n"); |
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
<?php | |
class FastModelRebuild { | |
// Just return some standard Symfony configs | |
private static function getConfig(){ | |
return array( | |
"data_fixtures_path" => array( sfConfig::get("sf_data_dir") . "/fixtures" ), | |
"models_path" => sfConfig::get("sf_lib_dir") . "/model/doctrine", | |
"migrations_path" => sfConfig::get("sf_lib_dir") . "/migration/doctrine", |
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
jQuery(document).ready( function(){ | |
jQuery(window).scroll( function(){ | |
if( jQuery(window).scrollTop() > 1940 ){ | |
if( jQuery("#ss-ad").css("position") == "absolute" ){ | |
if( window.criteoTimer ){ | |
window.clearTimeout( window.criteoTimer ); |
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
jQuery("#answer26913X14194X74181").blur( function(){ | |
var age = parseInt(jQuery("#answer26913X14194X74181").val()); | |
age = 2012-age; | |
if( age == NaN ){ | |
return; | |
} | |
if( age >= 55 ){ | |
jQuery("#answer26913X14194X754604").click(); |
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
<?php | |
class MyTasks { | |
public static $HELP_TEXT = array( | |
"listAllFiles" => "List all the files in the current directory", | |
"clearOldRows" => "Clear out old rows from the DB. (Or something like that)" | |
); | |
public static function listAllFiles(){ |
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
foreach( $userIdProductIdTable as $userId => $productArray ){ | |
foreach( $productArray as $productId => $tpIds ){ | |
$total = 0; | |
foreach( $tpIds as $id ){ $total += $keyedResults[$id]["total"]; } | |
foreach( $tpIds as $id ){ $keyedResults[$id]["total"] = $total; } | |
} | |
} |
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
<div id="hiddenDiv" style="display: none; padding-bottom: 10px"> | |
<input type="range" min="1" max="100" step="1" value="5" /> | |
</div> | |
<a href="#" id="toggle">Show the slider!</a> |
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
// Set callbacks, where `this.events` is a hash of | |
// | |
// *{"event selector": "callback"}* | |
// | |
// { | |
// 'mousedown .title': 'edit', | |
// 'click .button': 'save' | |
// 'click .open': function(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
var questionArray = { }; | |
var questionLabels = []; | |
var tbl = $("<table class='js-format-table'><thead><tr></tr></thead><tbody></tbody></table>"); | |
var boilerplate; | |
$('div[id^="question"]').each(function(i) { | |
if( $(this).hasClass("boilerplate") ){ | |
boilerplate = $(this); | |
return true; |