-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
97 changed files
with
114,324 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
// copy from a url to a local file on server | ||
|
||
if(isset($_GET["from"]) && isset($_GET["to"])){ | ||
$from = $_GET["from"]; | ||
$to = $_GET["to"]; | ||
copy($from,$to); | ||
} | ||
|
||
|
||
?> | ||
<a href = "index.html">CLICK TO GO HOME</a> | ||
|
||
<style> | ||
a{ | ||
font-size:3em; | ||
} | ||
</style> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,311 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<!-- | ||
EVERYTHING IS PHYSICAL | ||
EVERYTHING IS FRACTAL | ||
EVERYTHING IS RECURSIVE | ||
NO MONEY | ||
MO MINING | ||
NO PROPERTY | ||
LOOK AT THE INSECTS | ||
LOOK AT THE FUNGI | ||
LANGUAGE IS HOW THE MIND PARSES REALITY | ||
--> | ||
<title>QUANTUM NOISE CURVE</title> | ||
|
||
<link href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAZ4efAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEREREREREREREREREREREREAAAAAAAAREQEREREREBERAREREREQEREBEAAAARAREQEQEREBEBERARAQAQEQEREBEBABARAREQEQEREBEBERARAAAAEQEREBERERERAREQEREREREBERAAAAAAAAEREREREREREREREREREREREAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" rel="icon" type="image/x-icon"> | ||
|
||
|
||
<!--Stop Google:--> | ||
<META NAME="robots" CONTENT="noindex,nofollow"> | ||
<!--geometron javascript library--> | ||
<script src="https://cdn.jsdelivr.net/npm/p5@1.7.0/lib/p5.js"></script> | ||
<script src = "https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.6.0/addons/p5.sound.js"></script> | ||
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | ||
<script> | ||
MathJax.Hub.Config({ | ||
tex2jax: { | ||
inlineMath: [['$','$'], ['\\(','\\)']], | ||
processEscapes: true, | ||
processClass: "mathjax", | ||
ignoreClass: "no-mathjax" | ||
} | ||
});// MathJax.Hub.Typeset();//tell Mathjax to update the math | ||
</script> | ||
|
||
</head> | ||
<body> | ||
|
||
|
||
<div id = "feedscroll"> | ||
|
||
<h1><a style = "color:blue;text-align:center;font-family:Comic Sans MS;margin:auto" href = "index.html">HOME</a></h1> | ||
|
||
<p> | ||
this page doesn't work on mobile. hit the letter "s" to post a square to the feed. move pointer around on square to change the paramters of the curve. | ||
</p> | ||
|
||
<p> | ||
$$ | ||
\left(\frac{v+f}{2}\right)\coth{\left(\frac{v+f}{2T}\right)} + \left(\frac{v-f}{2}\right)\coth{\left(\frac{v-f}{2T}\right)} | ||
$$ | ||
</p> | ||
</div> | ||
|
||
<script> | ||
|
||
let G = 200;// gain in px per kelvin | ||
let T = 0.2;//temperature in kelvin | ||
let f = 0.25;// frequency in kelvin (hf/k_B) | ||
let margin = 10;//margin in px | ||
let vmax = 2.0; | ||
let x_ellipse = 0; | ||
let y_ellipse = 0; | ||
let v_ellipse = 0; | ||
let size_ellipse = 25; | ||
let omega = 2*3.14*0.5;// 2 PI frequency of animation motion | ||
let time = 0; | ||
let framespersecond = 30; | ||
|
||
|
||
|
||
if(innerWidth > innerHeight){ | ||
squaresize = innerHeight - 50; | ||
document.getElementById("feedscroll").style.right = squaresize.toString()+ "px"; | ||
} | ||
else{ | ||
squaresize = innerWidth - 50; | ||
|
||
document.getElementById("feedscroll").style.right = "0px"; | ||
document.getElementById("feedscroll").style.top = squaresize.toString() + "px"; | ||
} | ||
|
||
|
||
function setup() { | ||
|
||
createCanvas(squaresize, squaresize); | ||
strokeWeight(2); | ||
background(159,135,103); | ||
|
||
} | ||
|
||
|
||
|
||
function draw(){ | ||
|
||
frameRate(30); | ||
|
||
T = pow(10,(2*mouseX/width)-2); | ||
f = pow(10,(2*mouseY/height)-2); | ||
// background(220); | ||
background(159,135,103); | ||
|
||
translate(width/2, 0.5*(height - margin)); | ||
noFill(); | ||
// plot hyperbolic tangent functions | ||
strokeWeight(8); | ||
beginShape(); | ||
for (let v = -vmax; v <= vmax; v += 0.01) { | ||
let p = -(0.5*T*(v+f)/(2*T))/Math.tanh((v+f)/(2*T)) -(0.5*T*(v-f)/(2*T))/Math.tanh((v-f)/(2*T)); | ||
vertex(v * G, 2*p * G); | ||
} | ||
endShape(); | ||
|
||
} | ||
|
||
|
||
|
||
|
||
function post(){ | ||
|
||
png64 = document.getElementById("defaultCanvas0").toDataURL("image/png"); | ||
var timestamp = Math.round((new Date().getTime())/1000).toString(); | ||
var httpc = new XMLHttpRequest(); | ||
var url = "pngsave.php"; | ||
httpc.open("POST", url, true); | ||
httpc.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); | ||
httpc.send("data="+encodeURIComponent(png64.substring(22))+"&filename=trashmagic/square" + timestamp + "-coth.png");//send text to filesaver.php | ||
//location.reload(); | ||
|
||
newfilename = "trashmagic/square" + timestamp + "-coth.png"; | ||
|
||
var newbox = document.createElement("DIV"); | ||
newbox.classList.add("imagebox"); | ||
|
||
var deletespan = document.createElement("SPAN"); | ||
deletespan.innerHTML = "X"; | ||
deletespan.classList.add("deletespan"); | ||
deletespan.onclick = function(){ | ||
//delete the parent div of the image | ||
//delete the file | ||
var filename = this.parentElement.getElementsByClassName("filelabel")[0].innerHTML; | ||
var httpc = new XMLHttpRequest(); | ||
var url = "deletefile.php"; | ||
httpc.open("POST", url, true); | ||
httpc.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); | ||
httpc.send("filename=trashmagic/" + filename);//send text to deletefile.php | ||
this.parentElement.parentElement.removeChild(this.parentElement); | ||
} | ||
|
||
newbox.appendChild(deletespan); | ||
|
||
var newdiv = document.createElement("DIV"); | ||
newdiv.innerHTML = newfilename; | ||
newdiv.className = "filelabel"; | ||
newbox.appendChild(newdiv); | ||
|
||
var newimg = document.createElement("IMG"); | ||
newimg.src = png64; | ||
newimg.classList.add("uploadimage"); | ||
newimg.classList.add("button"); | ||
newbox.appendChild(newimg); | ||
|
||
|
||
document.getElementById("feedscroll").insertBefore(newbox,document.getElementById("feedscroll").getElementsByClassName("imagebox")[0]); | ||
|
||
} | ||
|
||
function keyPressed() { | ||
|
||
if(key == 's'){ | ||
post(); | ||
} | ||
|
||
} | ||
|
||
|
||
upuploadImages = []; | ||
var httpc9 = new XMLHttpRequest(); | ||
httpc9.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | ||
upuploadImages = JSON.parse(this.responseText); | ||
for(var index = upuploadImages.length - 1;index >= 0;index--) { | ||
|
||
if(upuploadImages[index].includes("-coth")){ | ||
|
||
var newbox = document.createElement("DIV"); | ||
newbox.classList.add("imagebox"); | ||
|
||
var deletespan = document.createElement("SPAN"); | ||
deletespan.innerHTML = "X"; | ||
deletespan.classList.add("deletespan"); | ||
deletespan.onclick = function(){ | ||
//delete the parent div of the image | ||
//delete the file | ||
var filename = this.parentElement.getElementsByClassName("filelabel")[0].innerHTML; | ||
var httpc = new XMLHttpRequest(); | ||
var url = "deletefile.php"; | ||
httpc.open("POST", url, true); | ||
httpc.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); | ||
httpc.send("filename=trashmagic/" + filename);//send text to deletefile.php | ||
this.parentElement.parentElement.removeChild(this.parentElement); | ||
} | ||
|
||
newbox.appendChild(deletespan); | ||
|
||
var newdiv = document.createElement("DIV"); | ||
newdiv.innerHTML = upuploadImages[index]; | ||
newdiv.className = "filelabel"; | ||
newbox.appendChild(newdiv); | ||
|
||
|
||
document.getElementById("feedscroll").appendChild(newbox); | ||
var newimg = document.createElement("IMG"); | ||
newimg.src = "trashmagic/" + upuploadImages[index]; | ||
newimg.classList.add("uploadimage"); | ||
newimg.classList.add("button"); | ||
newbox.appendChild(newimg); | ||
|
||
} | ||
|
||
} | ||
} | ||
}; | ||
httpc9.open("GET", "dir.php?filename=trashmagic", true); | ||
httpc9.send(); | ||
|
||
</script> | ||
<style> | ||
body{ | ||
overflow:hidden; | ||
background-color:#9f8767; | ||
} | ||
main{ | ||
position:absolute; | ||
right:25px; | ||
top:25px; | ||
border-left:solid; | ||
border-width:10px | ||
} | ||
|
||
|
||
#feedscroll img{ | ||
max-width:80%; | ||
display:block; | ||
margin:auto; | ||
margin-top:1em; | ||
border:solid; | ||
} | ||
|
||
p{ | ||
margin:1em 1em 1em 1em; | ||
font-size:1.5em; | ||
font-family:Comic Sans MS; | ||
overflow:scroll; | ||
} | ||
h1,h2,h3{ | ||
font-family:Comic Sans MS; | ||
text-align:center; | ||
overflow:scroll; | ||
|
||
} | ||
a{ | ||
color:blue; | ||
font-family:Comic Sans MS; | ||
font-size:1.5em; | ||
overflow:scroll; | ||
} | ||
#feedscroll{ | ||
position:absolute; | ||
left:0px; | ||
bottom:0px; | ||
top:6em; | ||
z-index:-2; | ||
overflow:scroll; | ||
background-color:#9f8767; | ||
padding:1em 1em 1em 1em; | ||
} | ||
.deletespan{ | ||
color:red; | ||
border:solid; | ||
border-color:red; | ||
border-radius:0.5em; | ||
padding: 1em 1em 1em 1em; | ||
cursor:pointer; | ||
} | ||
.deletespan:hover{ | ||
background-color:#ff000080; | ||
} | ||
.filelabel{ | ||
display:none; | ||
} | ||
.button{ | ||
cursor:pointer; | ||
} | ||
.button:hover{ | ||
background-color:green; | ||
} | ||
.button:active{ | ||
background-color:yellow; | ||
} | ||
.data{ | ||
display:none; | ||
} | ||
</style> | ||
</body> | ||
</html> |
Oops, something went wrong.