Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<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> |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
var WAVE={}; | |
(function(){ | |
function str16(x){return (x>15)?x.toString(16):"0"+x.toString(16);} | |
function shortToStr(x){return "%"+str16(x&0xff)+"%"+str16((x>>>8)&0xff);} | |
function intToStr(x){return "%"+str16(x&0xff)+"%"+str16((x>>>8)&0xff)+"%"+str16((x>>>16)&0xff)+"%"+str16((x>>>24)&0xff);} | |
WAVE.makeWavDecimal=function(channels,sampleFrequency) | |
{ | |
var str="data:audio/x-wav,%52%49%46%46"+ | |
intToStr(channels.length*2*channels[0].length+0x24)+ | |
"%57%41%56%45%66%6D%74%20"+ |
#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install