This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8' /> | |
<title>Create a draggable point</title> | |
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
play() { | |
playlist="http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/low/ak/bbc_$1.m3u8" | |
echo $playlist | |
if mpc | |
then | |
mpc add $playlist | |
mpc play | |
else | |
mplayer $playlist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
play() { | |
playlist="http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_$1.m3u8" | |
echo $playlist | |
if mpc | |
then | |
mpc add $playlist | |
mpc play | |
else | |
mplayer $playlist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"isbn": "9781578701902", "openlibrary_preview_url": "", "title": "GNU Autoconf, Automake, and Libtool", "lccn": "99067439", "number_of_pages": "390", "openlibrary_medcover_url": "", "subjects": "", "publish_date": "2001", "dewey_decimal_class": "", "authors": "", "id": 1236, "olid": "OL18155654M", "location": null}, {"isbn": "9781590595589", "openlibrary_preview_url": "https://archive.org/details/foundationflasha00legg", "title": "Foundation Flash Applications for Mobile Devices (Foundation)", "lccn": "", "number_of_pages": "536", "openlibrary_medcover_url": "https://covers.openlibrary.org/b/id/861477-M.jpg", "subjects": "Portable computerized instruments; Flash (Computer file)", "publish_date": "December 25, 2006", "dewey_decimal_class": "", "authors": "", "id": 1237, "olid": "OL8848801M", "location": 1}, {"isbn": "9780387974958", "openlibrary_preview_url": "", "title": "Representation theory", "lccn": "90024926", "number_of_pages": "551", "openlibrary_medcover_url": "https://covers.openlibrary.org/b/id/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.7.4/d3.js"></script> | |
</head> | |
<body> | |
<div id="heap"> | |
</div> | |
<script src="index.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// currently just not resetting parent after swap at the end of chain of stuff | |
// a zero in there seems like it breaks things | |
// var d3 = require('d3') | |
// This will make a heap node by node in a nice animation type thing. | |
var arr = [ 99, | |
94, | |
81, | |
75, |
NewerOlder