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 | |
/* | |
Log RedBullStratos Telemetry | |
Each telemetry data point is in the form: | |
[AltitudeImperial] => 103477.69028871 | |
[AltitudeIsValid] => 1 |
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
SELECT user_id, | |
COUNT(*) AS num, | |
date_format(creation_date, '%Y%u') AS theweek, | |
FROM awards | |
WHERE issued = 0 | |
GROUP BY user_id, theweek | |
HAVING num >= 3; |
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
SELECT | |
CONCAT( | |
'ALTER TABLE `', | |
TABLE_SCHEMA, | |
'`.`', | |
TABLE_NAME, | |
'` ADD `change-field-name` VARCHAR(5) NULL DEFAULT NULL', | |
';' | |
) AS sql_string | |
FROM |
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 | |
/* | |
PARSE CSVs OF SHIFT DATA | |
FORMAT: Note that spaces outside of < >'s are significant. ( )'s indicate optional | |
<Shift Number>, <start-end>(,<start-end>), <Days of the week off> | |
eg. Shift 16, 0700-1200,1700-2200, Mon,Tue,Wed off | |
eg. Shift 102, 0900-1930, Wed,Thu,Sat off |
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
!function ($) { | |
$(function(){ | |
// fix sub nav on scroll | |
var $win = $(window) | |
, $nav = $('.subnav') | |
, navTop = $('.subnav').length && $('.subnav').offset().top - 40 | |
, isFixed = 0 |
NewerOlder