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
/** | |
* Circular Tooltip (SO) | |
* http://stackoverflow.com/q/13132864/1397351 | |
*/ | |
* { margin: 0; padding: 0; } | |
body { | |
overflow: hidden; | |
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg); | |
} | |
/* generic styles for button & circular menu */ |
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 valueInSet(value, set) { | |
var deepMatch = function(v){ return v.id == value; }; | |
var shallowMatch = function(v) { return v == value; }; | |
return _.any(set, set[0].id ? deepMatch : shallowMatch); | |
} |
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
-- be quiet during load of this file | |
\set QUIET | |
\encoding unicode | |
\set PROMPT1 '%[%033[33;1m%]%x%[%033[0m%]%[%033[1m%]%/%[%033[0m%]%R%# ' | |
\set PROMPT2 '' | |
\pset null ¤ | |
\pset pager off | |
\timing | |
\pset format wrapped |
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
#!/bin/sh | |
yes | cp -rf /origin/* /destination |
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 longstring = "blah blah blah"; | |
longstring += "more blah blah bloh"; | |
longstring += "more blah blah bloh"; | |
longstring += "more blah blah bloh"; |
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
$sortByPriority = function($app1, $app2) use ($resident) { | |
$priority1 = $app1->getResidentApplication($resident)->priority(); | |
$priority2 = $app2->getResidentApplication($resident)->priority(); | |
if(is_null($priority1) && is_null($priority2)) { | |
return 0; | |
} | |
var_dump($priority1); var_dump($priority2); | |
exit(); | |
if(is_null($priority1)) return -1; | |
if(is_null($priority2)) return 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
/* default? ref: executeventures.co */ | |
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 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
var animationHelpers = { | |
determineTransition: function() { | |
// technique from: | |
// https://github.com/dmotz/oriDomi/blob/master/oridomi.js#L80 | |
// @TODO cache value so it doesn't keep getting looked up | |
var prefixList, testEl, supportedProp; | |
prefixList = ['webkit', 'Moz', 'O', 'ms', 'Khtml']; | |
testEl = document.createElement('div'); |
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
$toArray = function($record) { | |
return $record->toArray(); | |
} | |
$dynamicCollectionData = array_map($toArray, $dynamicCollectionData); |