Skip to content

Instantly share code, notes, and snippets.

View michaelpacker's full-sized avatar

Mike Packer michaelpacker

  • Indianapolis, Indiana
View GitHub Profile
function sortResults(results, sortOrder, sortBy) {
var datePattern = /^\/Date\((\d*)\)\/$/;
var sortByString = String(results[0][sortBy]);
results.sort(function(a, b) {
if (sortBy) {
if (sortByString.match(datePattern)) {
var x = Healthx.convertJsonDateToDateObject(a[sortBy]);
var y = Healthx.convertJsonDateToDateObject(b[sortBy]);
} else {
var x = a[sortBy];
@michaelpacker
michaelpacker / gist:423631218adcfe3ef215
Created July 5, 2015 01:05
Kaliber 10K - The Designer's Lunchbox - Circa December 14, 2000
<html>
<head>
<title>Kaliber10000 { The Designer's Lunchbox }</title>
<!-- the master preload + the generic js -->
<!-- some js done by Dan Steinman (http://www.dansteinman.com/dynduo/) who rocks the world -->
<!-- other js created or borrowed by the K10k crew -->
<link rel="stylesheet" href="css/k10k.css" type="text/css">
<script language="JavaScript" type="text/javascript"><!--