View .firebaserc
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
{ | |
"projects": { | |
"default": "the-id-of-your-project" | |
} | |
} |
View config.js
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
const gql = require('graphql-tag'); | |
const { makeExecutableSchema } = require('graphql-tools'); | |
const books = [ | |
// ... | |
]; | |
const typeDefs = gql` | |
# ... | |
`; |
View index.js
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
const { ApolloServer, gql } = require('apollo-server'); | |
// This is a (sample) collection of books we'll be able to query | |
// the GraphQL server for. A more complete example might fetch | |
// from an existing data source like a REST API or database. | |
const books = [ | |
{ | |
title: 'Harry Potter and the Chamber of Secrets', | |
author: 'J.K. Rowling', | |
}, |
View .travis.yml
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
language: node_js | |
node_js: | |
- '8' | |
- '10' | |
cache: npm |
View .eslintrc.json
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
Show hidden characters
{ | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaVersion": 2019 | |
}, | |
"env": { | |
"node": true, | |
"es6": true | |
}, | |
"overrides": [{ |
View charCodeAt.js
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
'a'.charCodeAt(0); | |
// 97 | |
Buffer.from('a').toString('hex') | |
// 61 |
View Controller.scala
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
val queryString = {request.queryString.filter(_._2.exists(_.nonEmpty)).map { p => | |
"%s=%s".format(p._1, p._2.head.urlEncoded) | |
} ++ List(s"api-key=$key")}.mkString("&") |
View application-logger.xml
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
<logger name="com.amazonaws" level="TRACE" /> | |
<logger name="org.apache.http.wire" level="TRACE" /> |
View gist:dd38e85e3f3d42ed1acb
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
val f = FaciaPressQueue.enqueue(PressJob(FrontPath(path), Draft, forceConfigUpdate = Option(true))) | |
f.onComplete{ | |
case Success(_) => Logger.info("successful queued " + path) | |
case Failure(t) => Logger.info(s"failed with $path $t") | |
} |
View adapter.js
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 filterTests = document.location.search.match(/[\?\&]test=[a-z-\.]+/gi).map(function (test) { | |
return (test.split('=')[1] + '.spec.js').toLowerCase(); | |
}) || []; | |
var filterLoadedTests = filterTests.length ? function (spec) { | |
var found = false; | |
filterTests.forEach(function (test) { | |
found = found || spec.toLowerCase().indexOf(test) !== -1; | |
}); | |
return found; | |
} : function () { |
NewerOlder