Last active
January 8, 2018 17:46
-
-
Save erossignon/ad01b6a18a0325f3733c872e11ef39d2 to your computer and use it in GitHub Desktop.
Playing with ipynb
This file contains hidden or 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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"console.log(\"Hello\");" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"var fs = require(\"fs\");\n", | |
"var testFolder = \"/\";\n", | |
"console.log('Hello World');\n", | |
"fs.readdir(testFolder, (err, files) => {\n", | |
" console.log('err=',err); \n", | |
" files.forEach(file => {\n", | |
" console.log(file);\n", | |
" });\n", | |
"});\n", | |
"\n", | |
"\n" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "NodeJS", | |
"language": "javascript", | |
"name": "nodejs" | |
}, | |
"language_info": { | |
"codemirror_mode": "javascript", | |
"file_extension": ".js", | |
"mimetype": "text/javascript", | |
"name": "nodejs", | |
"pygments_lexer": "javascript", | |
"version": "0.10" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment