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
$ -> | |
autocomplete_cache = {} | |
lastXhr = '' | |
$("#tags").autocomplete({ | |
minLength: 2, | |
source: (req, res) -> | |
console.log autocomplete_cache | |
term = req.term | |
if autocomplete_cache[term]? |
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
@mixin triangle($direction-h, $direction-w, $color, $width, $height) { | |
width: 0; | |
height: 0; | |
@if $direction-h == top { | |
border-top: $height solid $color; | |
border-bottom: $height solid transparent; | |
} @else { | |
border-bottom: $height solid $color; | |
border-top: $height solid transparent; | |
} |
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
calc = (buf,idx,i) -> | |
if i != 2 then buf[idx++] * Number("0x1" + [1..i].map(j) -> "0") + calc(buf,idx, i - 2) else buf[idx++] | |
return num * 0x100000000000000 + calc(buf,idx,i) | |
## Original, lines 343 - 350 ## | |
return num * 0x100000000000000 + | |
buf[idx++] * 0x1000000000000 + | |
buf[idx++] * 0x10000000000 + | |
buf[idx++] * 0x100000000 + | |
buf[idx++] * 0x1000000 + |