Remove -g

Limit cluster length in clusters.html

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2020-01-08 21:33:38 -08:00
parent 1b32b1ea7c
commit f559e471ec
2 changed files with 9 additions and 3 deletions

View File

@ -2,11 +2,17 @@
<script>'<base href="BASEPATH">';</script>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
var div = document.createElement("div");
div.textContent = "There are " + clusters.length + " clusters.";
document.body.appendChild(div);
clusters.forEach((cluster, index) => {
var div = document.createElement("div");
div.textContent = "Cluster " + (index + 1);
div.textContent = "Cluster " + (index + 1) + " has " + cluster.length + " neighbors.";
document.body.appendChild(div);
cluster.forEach((id) => {
cluster.forEach((id, index) => {
if (index > 15) {
return;
}
var div = document.createElement("div");
div.classList.add("face");
div.style.backgroundImage = "url(face-data/" + (id % 100) + "/" + id + "-original.png)";

View File

@ -6,7 +6,7 @@ ifeq ("$(wildcard /usr/include/sqlite3.h)","")
endif
scanner: scanner.c
gcc -o scanner -g scanner.c -lm -lsqlite3
gcc -o scanner scanner.c -lm -lsqlite3
clean:
rm scanner