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
h2 | |
{ | |
/*text-shadow: -1px -1px -1px @white;*/ | |
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5); | |
font-size: 2.5em; | |
border-bottom: 1px @gray solid; | |
margin-bottom: .5em; | |
} | |
p |
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> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<link href="css/highlow.css" rel="stylesheet" type="text/css" /> | |
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="js/guts.js"></script> | |
<script src="js/highlow.js"></script> | |
<title>ScriptEd Unit 7 Project: Hi- Lo</title> | |
<style id="jsbin-css"> |
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
[I 20:29:05.985 NotebookApp] Writing notebook server cookie secret to /root/.ipython/profile_default/security/notebook_cookie_secret | |
[I 20:29:05.986 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js | |
[W 20:29:06.012 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended. | |
[W 20:29:06.013 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended. | |
[I 20:29:06.019 NotebookApp] Serving notebooks from local directory: /notebooks | |
[I 20:29:06.019 NotebookApp] 0 active kernels | |
[I 20:29:06.019 NotebookApp] The IPython Notebook is running at: http://[all ip addresses on your system]:8888/user/G7Dqldp5KZwe/ | |
[I 20:29:06.019 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). | |
[I 20:29:06.480 NotebookApp] 302 GET /user/G7Dqldp5KZwe (172.17.42.1) 2.75ms | |
[I 20:29:16.628 NotebookApp |
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
//http://stackoverflow.com/a/24201042/83859 | |
infix operator ^^ { } | |
func ^^ (radix: Double, power: Double) -> Double { | |
return Double(pow(Double(radix), Double(power))) | |
} | |
//Based on https://github.com/d3/d3-color/blob/master/src/lab.js |
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
function make_graph(data){ | |
var svg = d3.select("svg") | |
// hackily just remove everything from last time. | |
// a more sophisticated version would transition nicely | |
svg.selectAll("*").remove() | |
var margin = {top: 20, right: 20, bottom: 30, left: 40}, | |
width = +svg.attr("width") - margin.left - margin.right, | |
height = +svg.attr("height") - margin.top - margin.bottom; |
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: gpl-3.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
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
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
let cards = [0,1,2,3,4] |
OlderNewer