find the files like this:
find ./ -type f -name "*.mp3"
Pipe them into a loop:
help read
help while
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://github.com/mbostock/d3/raw/v1.8.4/d3.js"></script> | |
<script type="text/javascript" src="https://github.com/simplegeo/polymaps/raw/v2.4.0/polymaps.js"></script> | |
<style type="text/css"> | |
@import url("http://github.com/simplegeo/polymaps/raw/v2.4.0/examples/example.css"); | |
html, body { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Hexagons Test</title> | |
<script type="text/javascript" src="http://hperantunes01.appspot.com/static/js/d3/d3.min.js"></script> | |
<script type="text/javascript" src="http://hperantunes01.appspot.com/static/js/d3/d3.behavior.min.js"></script> | |
<style type="text/css"> | |
svg { | |
border: solid 1px #aaa; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.0.0"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.csv.js?2.0.0"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?2.0.0"></script> | |
<style type="text/css"> | |
body { | |
font: 10px sans-serif; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Spline + Pan</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
<style type="text/css"> | |
body { | |
font: 13px sans-serif; | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://github.com/mbostock/d3/raw/v1.8.4/d3.js"></script> | |
<script type="text/javascript" src="https://github.com/mbostock/d3/raw/v1.8.4/d3.geo.js"></script> | |
<script type="text/javascript" src="https://github.com/simplegeo/polymaps/raw/v2.4.0/polymaps.js"></script> | |
<script type="text/javascript" src="tiler.js"></script> | |
<style type="text/css"> | |
@import url("http://github.com/simplegeo/polymaps/raw/v2.4.0/examples/example.css"); |
body { | |
font-family: Helvetica, Verdana | |
} | |
p { | |
padding: 7px 10px; | |
} | |
#demo { | |
border: 1px solid #999; | |
} |
def decode_chunk(chunk): | |
""" | |
Experiment: decode a chunk! | |
<snip> | |
""" | |
# give ourselves a copy of this record as a bytearray to sanitize things a bit. | |
record = bytearray(chunk) | |
if chunk == 0x1f: | |
try: | |
print hex(record) |
Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)
Alter the port the script talks to from 8000 to 80:
}).listen(80);