Skip to content

Instantly share code, notes, and snippets.

@ln-north
Last active April 4, 2020 12:25
Show Gist options
  • Select an option

  • Save ln-north/18e73ce844550efd6fc782c5b7292255 to your computer and use it in GitHub Desktop.

Select an option

Save ln-north/18e73ce844550efd6fc782c5b7292255 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<script type="module" src="PyRun.js"></script>
<script type="module" src="script.js"></script>
</body>
</html>
export default function() {
console.log('My name is PyRun.js')
}
import PyRun from "./PyRun.js";
PyRun();
import http.server
import socketserver
PORT = 8000
Handler = http.server.SimpleHTTPRequestHandler
Handler.extensions_map['.js']='application/javascript;charset=UTF-8'
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment