Skip to content

Instantly share code, notes, and snippets.

@mikewlange
Created November 30, 2019 03:01
Show Gist options
  • Save mikewlange/8faaa88eba33868722f0b6273c45e5ae to your computer and use it in GitHub Desktop.
Save mikewlange/8faaa88eba33868722f0b6273c45e5ae to your computer and use it in GitHub Desktop.
/astexplorer/server/constants.js
{
"cells": [
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "if (!process.env.AUTH_TOKEN) {\n console.error(\n 'AUTH_TOKEN is not set! That will result in all gists being anonymous, ' +\n 'which is probably not what you want.'\n );\n process.exit(1);\n}",
"execution_count": null,
"outputs": []
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "module.exports = {\n AUTH_TOKEN: process.env.AUTH_TOKEN,\n SETTINGS_FORMAT: 2,\n};",
"execution_count": null,
"outputs": []
}
],
"metadata": {
"jupytext": {
"notebook_metadata_filter": "-all",
"cell_metadata_filter": "-all",
"main_language": "javascript",
"text_representation": {
"extension": ".js",
"format_name": "light"
}
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"varInspector": {
"window_display": false,
"cols": {
"lenName": 16,
"lenType": 16,
"lenVar": 40
},
"kernels_config": {
"python": {
"library": "var_list.py",
"delete_cmd_prefix": "del ",
"delete_cmd_postfix": "",
"varRefreshCmd": "print(var_dic_list())"
},
"r": {
"library": "var_list.r",
"delete_cmd_prefix": "rm(",
"delete_cmd_postfix": ") ",
"varRefreshCmd": "cat(var_dic_list()) "
}
},
"types_to_exclude": [
"module",
"function",
"builtin_function_or_method",
"instance",
"_Feature"
]
},
"toc": {
"nav_menu": {},
"number_sections": false,
"sideBar": false,
"skip_h1_title": false,
"base_numbering": 1,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": false,
"toc_window_display": false
},
"language_info": {
"name": "python",
"version": "3.6.9",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"gist": {
"id": "",
"data": {
"description": "/astexplorer/server/constants.js",
"public": true
},
"public": true,
"description": "/astexplorer/server/constants.js.ipynb",
"extension": ".ipynb"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment