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
class ElasticSearchConnection < GraphQL::Relay::BaseConnection | |
def has_next_page | |
!nodes.last_page? | |
end | |
def has_previous_page | |
!nodes.first_page? | |
end | |
def cursor_from_node(node) |
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
+hooks: | |
+ pre: npm install && npm install bower && npm install phantomjs && bower install | |
+nodejs: | |
+ version: '0.10.32' | |
+tests: | |
+ - ember test |
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
// Brocfile.js | |
... | |
bootstrapCSS = pickFiles(vendor, { | |
srcDir: '/bootstrap/dist/css', | |
files: ['bootstrap.css'], | |
destDir: '/assets/' | |
}); | |
... | |
var outputTrees = [ | |
applicationJs, |
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
(($) -> | |
$.fn.logoPopup = () -> | |
this.mousedown -> | |
$(document).bind "contextmenu",(event)-> | |
true | |
if event.which === 3 | |
$('<div id="logo-lightbox-container">').hide().appendTo'body'.load '/u/logo',-> $.easybox "#logo-lightbox-container" | |
)jQuery |