I hereby claim:
- I am jplew on github.
- I am jplew (https://keybase.io/jplew) on keybase.
- I have a public key ASCYtTBpcRGcBz5SrlMo376ZIW0Fzu2hm0ujkEAZ_mBGAgo
To claim this, I am signing this object:
#!/usr/bin/env node | |
const boxen = require("boxen") | |
const logo = ` | |
[94m██████[39m[33m╗[39m [94m████████[39m[33m╗[39m [94m██████[39m[33m╗ [39m [94m█████[39m[33m╗[39m [94m██[39m[33m╗[39m | |
[94m██[39m[33m╔════╝[39m [33m╚══[39m[94m██[39m[33m╔══╝[39m [94m██[39m[33m╔═══[39m[94m██[39m[33m╗[39m [94m██[39m[33m╔══[39m[94m██[39m[33m╗[39m [94m██[39m[33m║[39m | |
[94m██[39m[33m║ [39m [94m ██[39m[33m║ [39m [94m██[39m[33m║[39m[94m ██[39m[33m║[39m [94m███████[39m[33m║[39m [94m██[39m[33m║[39m | |
[94m██[39m[33m║ [39m [94m ██[39m[33m║ [39m [94m██[39m[33m║[39m[94m ██[39m[33m║[39m [94m██[39m[33m╔══[39m[94m██[39m[33m║[39m [94m██[39m[33m║[39m |
[2018-10-11 12:39:17.023] [exthost] [info] extension host started | |
[2018-10-11 12:39:17.074] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"activationEvent":"*"} | |
[2018-10-11 12:39:17.074] [exthost] [info] ExtensionService#loadCommonJSModule /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/debug-auto-launch/dist/extension | |
[2018-10-11 12:39:17.088] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"activationEvent":"*"} | |
[2018-10-11 12:39:17.088] [exthost] [info] ExtensionService#loadCommonJSModule /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/emmet/dist/extension | |
[2018-10-11 12:39:17.149] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"activationEvent":"*"} | |
[2018-10-11 12:39:17.149] [exthost] [info] ExtensionService#loadCommonJSModule /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main | |
[2018-10-11 12:39:17.270] [exth |
/** | |
* @author: JP Lew ([email protected]) | |
* @date: Monday, 23rd July 2018 5:14:39 pm | |
* @lastModifiedBy: JP Lew ([email protected]) | |
* @lastModifiedTime: Thursday, 23rd August 2018 1:03:37 pm | |
* project: Share Results | |
* @copyright (c) 2018 Hack Capital | |
*/ | |
const randomNumber = (min = 0, max = 10) => Math.floor(Math.random() * max) + min; |
const initWordbankRoutes = require('./wordRoutes.js') | |
const initOxfordRoutes = require('./oxfordRoutes.js') | |
module.exports = function(app, db) { | |
initWordbankRoutes(app, db) | |
initOxfordRoutes(app) | |
return app | |
} |
const yargs = require('yargs') | |
const query = yargs.argv | |
const env = getEnv(query.env) | |
function getEnv(env) { | |
if (env === 'dev') { | |
return '' | |
} else if (env) { | |
return '.env.' + env | |
} else { |
const axios = require('axios') | |
const oxfordDefine = 'https://od-api.oxforddictionaries.com/api/v1/entries/en' | |
const oxfordInflect = | |
'https://od-api.oxforddictionaries.com/api/v1/inflections/en' | |
const config = { | |
headers: { | |
Accept: 'application/json', | |
app_id: process.env.OXFORD_ID, |
I hereby claim:
To claim this, I am signing this object:
/* | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. |
/* | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. |
/* | |
Copyright 2018 Esri | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and |