Skip to content

Instantly share code, notes, and snippets.

View bnmnetp's full-sized avatar

Bradley Miller bnmnetp

View GitHub Profile
@bnmnetp
bnmnetp / simpleskulpt.html
Last active October 15, 2023 09:11
Here is about the simplest example I can think of that gets you a working skulpt environment. This little sample shows regular python as well as importing a module.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/js/skulpt.min.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/js/skulpt-stdlib.js" type="text/javascript"></script>
</head>
<body>
@bnmnetp
bnmnetp / third-party.js
Last active November 7, 2020 00:45
Include a Third Party library not in skulpt-stdlib.js
// This snippet shows the cool new functionality added by @bzwheeler and the team at trinket.io
// You can now develop and host your own modules for skulpt, and set up a page to make those
// modules available as in the following.
Sk.externalLibraries = {
numpy : {
path: 'http://example.com/static/primeronoo/skulpt/external/numpy/__init__.js',
dependencies: ['/static/primeronoo/skulpt/external/deps/math.js'],
},
matplotlib : {
@bnmnetp
bnmnetp / cleanDatabase.ipynb
Created July 30, 2014 13:46
interactivepython database cleanup
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.