Skip to content

Instantly share code, notes, and snippets.

@leonardosantos
Created September 2, 2014 00:15
Show Gist options
  • Save leonardosantos/f8f8b0ff6e2811ae337f to your computer and use it in GitHub Desktop.
Save leonardosantos/f8f8b0ff6e2811ae337f to your computer and use it in GitHub Desktop.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Python(ish)</title>
<link rel="stylesheet" type="text/css" media="all" href="http://www.skulpt.org/static/codemirror.css"/>
<link rel="stylesheet" type="text/css" media="all" href="http://www.skulpt.org/static/solarized.css"/>
<link rel="stylesheet" type="text/css" media="all" href="http://www.skulpt.org/static/main.css"/>
<style>
.CodeMirror{
height: auto !important;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="http://www.skulpt.org/static/codemirrorepl.js" type="text/javascript"></script>
<script src="//restazero.herokuapp.com/python/repl.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/static/python.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/static/skulpt.min.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/static/skulpt-stdlib.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
var resize = function () {
$('.CodeMirror').height($(window).height());
$('.CodeMirror').width($(window).width());
};
$(window).resize(resize);
resize();
if(location.pathname!="/")
$.get('//restazero.herokuapp.com'+location.pathname, function(data){
repl.eval(data);
});
});
</script>
</head>
<body>
<textarea id="interactive"></textarea>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment