Forked from Brice Pierre de la Briere to include user-supplied parameters and plot of J(θ) over iterations.
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> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
</head> | |
<body> | |
<div id="block"></div> | |
<script> | |
// dimensions |
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
.eslintrc.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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src = "https://feyderm.github.io/d3/d3.js"></script> | |
<script src = "https://feyderm.github.io/d3/hexbin/hexbin.js"></script> | |
<script src = "https://feyderm.github.io/d3/d3-legend-master/d3-legend.js"></script> | |
<script src = "https://feyderm.github.io/js/viridis_colors.js"></script> | |
</head> |
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
:imap jj <Esc> | |
:nmap f x | |
" NB: must be capital 'S', unlike in .vimrc | |
:map <Space> viw |
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
object Karatsuba { | |
def main(args: Array[String]): Unit = { | |
def loop(str1: String, str2: String): BigInt = { | |
val n_digits1 = str1.length | |
val n_digits2 = str2.length | |
if (n_digits1 == 1 || n_digits2 == 1) { | |
BigInt(str1) * BigInt(str2) | |
} else { | |
val min_split = List(n_digits1, n_digits2).map(_ / 2).min |
Scroll down to lift top layer; scroll up to stack layers.
Inspired by a recent report on how cellular automata generates skin color patterns in lizards.
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> | |
<meta charset="utf-8"> | |
<style> | |
.cell { | |
height: 10px; | |
width: 10px; | |
} | |
</style> | |
<body> |
NewerOlder