- Collections.get:
12561ms
- Collections.get:
12592ms
- Collections.get:
12242ms
- Collections.get:
13111ms
- Collections.get:
12918ms
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
ico($c, $aliases...) | |
&.{join(',&.', $aliases)} | |
&:before | |
content $c | |
i | |
ico('\E211', 'arrow-left') /* formerly left-arrow */ | |
ico('\E212', 'arrow-right') /* formerly right-arrow */ | |
ico('\E200', 'ban', 'restricted') | |
ico('\E090', 'building') |
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
&.nxt | |
$size = 22px | |
font-size $size | |
height $size | |
width $size | |
display inline-block | |
overflow hidden | |
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
_ = require 'lodash' | |
Promise = require 'bluebird' | |
Promise.retry = (action, options = {}) -> | |
_.merge | |
max: 5 | |
backoff: 500 | |
, options | |
d = Promise.defer() |
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> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> |
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
# before | |
r.table('replications') | |
.getAll(lab_id, index: 'lab_id') | |
.groupedMapReduce( | |
r.row('source_id'), | |
r.row.pluck('id', 'created'), | |
(acc, row) -> | |
r.branch acc('created').gt(row('created')), acc, row | |
) |
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
WILL_REJECT = true | |
a = -> | |
foo = q.defer() | |
if WILL_REJECT | |
foo.reject() | |
else | |
foo.resolve() | |
return foo.promise |
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
angular.module('catalog-diff') | |
.directive 'scheduleHeatmap', -> | |
margin = | |
top: 30 | |
right: 0 | |
bottom: 30 | |
left: 30 |
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
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# bind tab:cmd switch | |
# Push Bindings | |
bind right:ctrl;alt;cmd push right bar-resize:screenSizeX/2 | |
bind left:ctrl;alt;cmd push left bar-resize:screenSizeX/2 |
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
## Examples | |
# | |
# "Turn Around Low" | acronym -> "TAL" | |
# "turn_around.low" | acronym -> "TAL" | |
# "list_price" | acronym -> "LP" | |
# "name" | acronym -> "N" | |
# "name" | acronym:2 -> "NA" | |