From 763182e58fd037726585a1f1d151b13cedd01c49 Mon Sep 17 00:00:00 2001 From: Burak Ozturk <63576640+burakozturk01@users.noreply.github.com> Date: Fri, 1 Mar 2024 13:56:31 +0300 Subject: [PATCH 1/7] Update 2024-02-27-burak-ozturk.md donut.c --- team/_posts/2024-02-27-burak-ozturk.md | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/team/_posts/2024-02-27-burak-ozturk.md b/team/_posts/2024-02-27-burak-ozturk.md index d6fc0e8..b442a9b 100644 --- a/team/_posts/2024-02-27-burak-ozturk.md +++ b/team/_posts/2024-02-27-burak-ozturk.md @@ -11,6 +11,70 @@ image: /images/team/burak.jpg I am a random Computer Science student at Bilkent University who started to show up at AlkanLab and do things. +

+
+
 ### Education
 
 - B.Sc., Computer Engineering, 2019 - present.

From 46c2bb140cf70f2f5148fcdc8156c3f4be3bb4b0 Mon Sep 17 00:00:00 2001
From: Burak Ozturk <63576640+burakozturk01@users.noreply.github.com>
Date: Fri, 1 Mar 2024 13:59:09 +0300
Subject: [PATCH 2/7] Update 2024-02-27-burak-ozturk.md

---
 team/_posts/2024-02-27-burak-ozturk.md | 63 +-------------------------
 1 file changed, 1 insertion(+), 62 deletions(-)

diff --git a/team/_posts/2024-02-27-burak-ozturk.md b/team/_posts/2024-02-27-burak-ozturk.md
index b442a9b..ffe998a 100644
--- a/team/_posts/2024-02-27-burak-ozturk.md
+++ b/team/_posts/2024-02-27-burak-ozturk.md
@@ -12,68 +12,7 @@ image: /images/team/burak.jpg
 I am a random Computer Science student at Bilkent University who started to show up at AlkanLab and do things.
 
 

-
+
 
 ### Education
 

From a8b18d0785291d586f9d06386657fef41f17e773 Mon Sep 17 00:00:00 2001
From: Burak Ozturk <63576640+burakozturk01@users.noreply.github.com>
Date: Fri, 1 Mar 2024 14:01:09 +0300
Subject: [PATCH 3/7] Create donut.js

---
 _scripts/donut.js | 60 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 _scripts/donut.js

diff --git a/_scripts/donut.js b/_scripts/donut.js
new file mode 100644
index 0000000..1438bb4
--- /dev/null
+++ b/_scripts/donut.js
@@ -0,0 +1,60 @@
+(function() {
+var _onload = function() {
+  var pretag = document.getElementById('donutBox');
+
+  var tmr1 = undefined;
+  var A=1, B=1;
+
+  // This is copied, pasted, reformatted, and ported directly from my original
+  // donut.c code
+  var asciiframe=function() {
+    var b=[];
+    var z=[];
+    A += 0.07;
+    B += 0.03;
+    var cA=Math.cos(A), sA=Math.sin(A),
+        cB=Math.cos(B), sB=Math.sin(B);
+    for(var k=0;k<1760;k++) {
+      b[k]=k%80 == 79 ? "\n" : " ";
+      z[k]=0;
+    }
+    for(var j=0;j<6.28;j+=0.07) { // j <=> theta
+      var ct=Math.cos(j),st=Math.sin(j);
+      for(i=0;i<6.28;i+=0.02) {   // i <=> phi
+        var sp=Math.sin(i),cp=Math.cos(i),
+            h=ct+2, // R1 + R2*cos(theta)
+            D=1/(sp*h*sA+st*cA+5), // this is 1/z
+            t=sp*h*cA-st*sA; // this is a clever factoring of some of the terms in x' and y'
+
+        var x=0|(40+30*D*(cp*h*cB-t*sB)),
+            y=0|(12+15*D*(cp*h*sB+t*cB)),
+            o=x+80*y,
+            N=0|(8*((st*sA-sp*ct*cA)*cB-sp*ct*sA-st*cA-cp*ct*sB));
+        if(y<22 && y>=0 && x>=0 && x<79 && D>z[o])
+        {
+          z[o]=D;
+          b[o]=".,-~:;=!*#$@"[N>0?N:0];
+        }
+      }
+    }
+    pretag.innerHTML = b.join("");
+  };
+
+  window.anim = function() {
+    if(tmr1 === undefined) {
+      tmr1 = setInterval(asciiframe, 75);
+    } else {
+      clearInterval(tmr1);
+      tmr1 = undefined;
+    }
+  };
+
+  asciiframe();
+  window.anim();
+}
+
+if(document.all)
+  window.attachEvent('onload',_onload);
+else
+  window.addEventListener("load",_onload,false);
+})();

From b46f265e4ea499d060c510358cd655f3ca0d3d81 Mon Sep 17 00:00:00 2001
From: Burak Ozturk <63576640+burakozturk01@users.noreply.github.com>
Date: Fri, 1 Mar 2024 14:03:01 +0300
Subject: [PATCH 4/7] Update 2024-02-27-burak-ozturk.md

---
 team/_posts/2024-02-27-burak-ozturk.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/team/_posts/2024-02-27-burak-ozturk.md b/team/_posts/2024-02-27-burak-ozturk.md
index ffe998a..32b3fc6 100644
--- a/team/_posts/2024-02-27-burak-ozturk.md
+++ b/team/_posts/2024-02-27-burak-ozturk.md
@@ -12,7 +12,7 @@ image: /images/team/burak.jpg
 I am a random Computer Science student at Bilkent University who started to show up at AlkanLab and do things.
 
 

-
+
 
 ### Education
 

From 59453658017656011c7dbc5368957cbce8dee7b9 Mon Sep 17 00:00:00 2001
From: Burak Ozturk <63576640+burakozturk01@users.noreply.github.com>
Date: Fri, 1 Mar 2024 14:04:10 +0300
Subject: [PATCH 5/7] Update donut.js

---
 _scripts/donut.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_scripts/donut.js b/_scripts/donut.js
index 1438bb4..e3f811d 100644
--- a/_scripts/donut.js
+++ b/_scripts/donut.js
@@ -1,6 +1,6 @@
 (function() {
 var _onload = function() {
-  var pretag = document.getElementById('donutBox');
+  var pretag = document.getElementById('user-content-donutbox');
 
   var tmr1 = undefined;
   var A=1, B=1;

From 63d4e7166682015c9ce91df4f776f6234fb48fa7 Mon Sep 17 00:00:00 2001
From: Burak Ozturk <63576640+burakozturk01@users.noreply.github.com>
Date: Fri, 1 Mar 2024 14:25:16 +0300
Subject: [PATCH 6/7] Update 2024-02-27-burak-ozturk.md

---
 team/_posts/2024-02-27-burak-ozturk.md | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/team/_posts/2024-02-27-burak-ozturk.md b/team/_posts/2024-02-27-burak-ozturk.md
index 32b3fc6..2fcc129 100644
--- a/team/_posts/2024-02-27-burak-ozturk.md
+++ b/team/_posts/2024-02-27-burak-ozturk.md
@@ -11,8 +11,7 @@ image: /images/team/burak.jpg
 
 I am a random Computer Science student at Bilkent University who started to show up at AlkanLab and do things.
 
-

-
+
=0 && x>=0 && x<79 && D>z[o]) { z[o]=D; b[o]=".,-~:;=!*#$@"[N>0?N:0]; } } } pretag.innerHTML = b.join(""); }; window.anim = function() { if(tmr1 === undefined) { tmr1 = setInterval(asciiframe, 75); } else { clearInterval(tmr1); tmr1 = undefined; } }; asciiframe(); window.anim(); }; if (document.all) window.attachEvent('onload',_onload); else window.addEventListener('load',_onload,false); })();">
### Education From 726de89a7c44e4268132be1f8c4b79e56d6bb3a6 Mon Sep 17 00:00:00 2001 From: Burak Ozturk <63576640+burakozturk01@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:27:02 +0300 Subject: [PATCH 7/7] Delete _scripts/donut.js --- _scripts/donut.js | 60 ----------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 _scripts/donut.js diff --git a/_scripts/donut.js b/_scripts/donut.js deleted file mode 100644 index e3f811d..0000000 --- a/_scripts/donut.js +++ /dev/null @@ -1,60 +0,0 @@ -(function() { -var _onload = function() { - var pretag = document.getElementById('user-content-donutbox'); - - var tmr1 = undefined; - var A=1, B=1; - - // This is copied, pasted, reformatted, and ported directly from my original - // donut.c code - var asciiframe=function() { - var b=[]; - var z=[]; - A += 0.07; - B += 0.03; - var cA=Math.cos(A), sA=Math.sin(A), - cB=Math.cos(B), sB=Math.sin(B); - for(var k=0;k<1760;k++) { - b[k]=k%80 == 79 ? "\n" : " "; - z[k]=0; - } - for(var j=0;j<6.28;j+=0.07) { // j <=> theta - var ct=Math.cos(j),st=Math.sin(j); - for(i=0;i<6.28;i+=0.02) { // i <=> phi - var sp=Math.sin(i),cp=Math.cos(i), - h=ct+2, // R1 + R2*cos(theta) - D=1/(sp*h*sA+st*cA+5), // this is 1/z - t=sp*h*cA-st*sA; // this is a clever factoring of some of the terms in x' and y' - - var x=0|(40+30*D*(cp*h*cB-t*sB)), - y=0|(12+15*D*(cp*h*sB+t*cB)), - o=x+80*y, - N=0|(8*((st*sA-sp*ct*cA)*cB-sp*ct*sA-st*cA-cp*ct*sB)); - if(y<22 && y>=0 && x>=0 && x<79 && D>z[o]) - { - z[o]=D; - b[o]=".,-~:;=!*#$@"[N>0?N:0]; - } - } - } - pretag.innerHTML = b.join(""); - }; - - window.anim = function() { - if(tmr1 === undefined) { - tmr1 = setInterval(asciiframe, 75); - } else { - clearInterval(tmr1); - tmr1 = undefined; - } - }; - - asciiframe(); - window.anim(); -} - -if(document.all) - window.attachEvent('onload',_onload); -else - window.addEventListener("load",_onload,false); -})();