add initial findings

This commit is contained in:
garrettmills
2019-11-22 11:57:53 -06:00
commit b550b5d1db
150 changed files with 17496 additions and 0 deletions

29
c2015/about/index.html Normal file
View File

@@ -0,0 +1,29 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ About Me</div>
<div class="content">
<h2>Garrett Mills</h2>
<p>Hello! My name is Garrett, in case you hadn't picked that up, and I am best described as a technology enthusiast. I work on
web design, coding, Raspberry Pi, Minecraft Modding, network structure, robotics, and just awesome computers and hardware in general.
</p>
<p>I have in the past taught the LEGO Mindstorms Robotics camp at the Anderson County Extention office, and have worked in many
competitions and courses for the robot platform myself. Aside from that, I have recently gotten in to Raspberry Pi robotics and electronics,
and computer hardware. </p>
<p>As for the software side, this is really where my passion for computers lies. I love to code and manipulate
computers to achieve a goal. I am fluent in HTML, JavaScript, CSS, Python, Java, and Bash
(<a href="https://www.gnu.org/software/bash/bash.html">the master of Linux</a>). I love open-source and have been working
with various Linux distrobutions and flavours for 5 years now. If you are curious about any of my current projects, feel free
to visit my <a href="http://github.com/cestaberous">GitHub Page.</a></p>
<p>Another thing I have an interest in is network structure, and this may strike people as strange, but I find it fascinating to tinker
play with computers and servers and routers to get them to talk to eachother.</p>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

22
c2015/contact/index.html Normal file
View File

@@ -0,0 +1,22 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ Contact Me</div>
<div class="content">
<br/><img src="/depPage/images/logoTransp.png" height="300px"/>
<p>garrett@glmills.gq
<br/><a href="https://www.linkedin.com/pub/garrett-mills/44/422/551">LinkedIn</a>
<br/><a href="https://plus.google.com/+Garrettmills1999/posts">Google+</a>
<br/><a href="https://www.youtube.com/user/5cbroadcast/feed">Youtube</a>
<br/><br/>
<iframe src="http://contactme.com/554ad610ffd1bd00030084dd/embed" frameborder="0" scrolling="no" allowtransparency="true" style="height: 500px; width: 510px;"></iframe>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,12 @@
<html>
<head>
<script type="text/javascript" src="/lib/jsurl/getvars.js"></script>
</head>
<body>
<script type="text/javascript">
var pages = {"home" : "/", "projects" : "/projects", "works" : "/works", "resources" : "/resources", "blog" : "/blog"};
document.write(pages[page]);
window.location=pages[page];
</script>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ Page Dependencies / Blank Template</div>
<div class="content">
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,28 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<a href="/"><div class="title">
Garrett Mills
</div></a>
<div class="navi">
<ul>
<li><a href="/about">About Me</a></li>
<li><a href="/projects">Projects</a></li>
<li><a href="http://cestaberous.gq/">Minecraft: Cestaberous</a></li>
<li><a href="/resources">Resources</a></li>
<li><a href="/contact">Contact Me</a></li>
</ul>
</div>
<img class="bkg" src="/depPage/images/background.jpg"/>
<div class="desc">/ Page Dependencies / Blank Template</div>
<div class="content">
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

117
c2015/depPage/css/index.css Normal file
View File

@@ -0,0 +1,117 @@
@import url('http://fonts.googleapis.com/css?family=Bitter');
html {
font-family: Bitter;
}
body {
background-image: url("/depPage/images/background.jpg");
background-repeat: repeat-y;
background-size: 100% 100%;
background-attachment: fixed;
}
a {
color: #EEEEEE;
}
.navi {
text-align: center;
background: #202020;
opacity: 1;
width: 100%;
position: fixed;
bottom: 0%;
left: 0%;
z-index: 110;
}
.navi ul {
list-style-type: none;
margin: 0;
padding: 6px;
}
.navi ul li {
display: inline;
padding-left: 15px;
padding-right: 15px;
padding-top: 6px;
padding-bottom: 7px;
}
.navi ul li:hover {
background: #000000;
}
.navi ul li a {
color: white;
text-decoration: none;
}
.title {
position: fixed;
z-index: 110;
color: #FFFFFF;
background: #202020;
opacity: 1;
padding: 15px;
font-size: 20pt;
bottom: 30;
left: 30;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
}
.title:hover {
background: #000000;
}
.content {
top: 60;
left: -5;
color: #DDDDDD;
position: relative;
z-index: 101;
background: rgba(40, 40, 40, 0.8);
/* border: 3px;
border-style: solid;
border-color: #282828;
border-radius: 10px;
width: 100%; */
padding-left: 8px;
padding: 5px;
width: 100%;
}
.desc {
position: relative;
z-index: 101;
background: rgba(40, 40, 40, 0.8);
text-align: center;
width: 100%;
left: -5;
font-size: 20pt;
color: #DDDDDD;
padding: 4px;
}
.copyright {
color: #555555;
}
.crbox {
visibility: hidden;
position: fixed;
bottom: 30;
right: 50;
background-color: #202020;
color: #DDDDDD;
padding: 10px;
width: 500px;
border-style: solid;
border-color: #202020;
border-top-right-radius: 7px;
border-top-left-radius: 7px;
z-index: 200;
}

View File

@@ -0,0 +1,171 @@
a{
text-decoration: none;
}
section {
width: 80%;
height: 200px;
margin: auto;
padding: 10px;
text-decoration: none;
}
div#one {
position: relative;
width: 20%;
height: 200px;
background: red;
float: left;
overflow: hidden;
text-decoration: none;
}
div#two {
display: inline;
width: 20%;
height: 200px;
background: orange;
float: left;
overflow: hidden;
}
div#three {
width: 20%;
height: 200px;
background: yellow;
float: left;
overflow: hidden;
}
div#four {
width: 20%;
height: 200px;
background: #202020;
float: left;
overflow: hidden;
}
div#five {
margin-left: 15%;
height: 200px;
background: blue;
overflow: hidden;
}
div#one img {
position: relative;
top: 50%;
left: 50%;
margin-left: -345px;
margin-top: -170px;
}
div#two img {
position: relative;
height: 310px;
width: 310px;
top: 50%;
left: 50%;
margin-left: -155px;
margin-top: -155px;
}
div#three img {
position: relative;
height: 225px;
width: 360px;
top: 50%;
left: 50%;
margin-left: -180px;
margin-top: -112px;
}
div#four img {
position: relative;
height: 256px;
width: 256px;
top: 50%;
left: 50%;
margin-left: -128px;
margin-top: -128px;
}
div#five img {
position: relative;
height: 600px;
width: 960px;
top: 50%;
left: 50%;
margin-left: -480px;
margin-top: -270px;
}
div#one div {
display: none;
position: absolute;
background: rgba(40, 40, 40, 0.8);
bottom: 0;
width: 100%;
padding-left: 10px;
transition: display 0.2s linear 0s;
overflow: none;
}
div#two div {
position: absolute;
background: rgba(40, 40, 40, 0.8);
bottom: 15;
width: 20%;
padding-left: 10px;
display: none;
overflow: hidden;
}
div#three div {
position: absolute;
background: rgba(40, 40, 40, 0.8);
bottom: 15;
width: 20%;
padding-left: 10px;
display: none;
overflow: hidden;
}
div#four div {
position: absolute;
background: rgba(40, 40, 40, 0.8);
bottom: 15;
width: 20%;
padding-left: 10px;
display: none;
overflow: hidden;
}
div#five div {
position: absolute;
background: rgba(40, 40, 40, 0.8);
bottom: 15;
width: 15.15%;
padding-left: 10px;
display: none;
overflow: hidden;
}
div#one:hover > div {
display: block;
}
div#two:hover > div {
display: block;
}
div#three:hover > div {
display: block;
}
div#four:hover > div {
display: block;
}
div#five:hover > div {
display: block;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -0,0 +1,33 @@
var quote = document.getElementById("qotd");
//array of quotes
var quotelist = ['"The reason birds can fly and we cant is simply because they have perfect faith, for to have faith is to have wings." <br/> - J.M. Barrie',
'"We can never know what to want, because, living only one life, we can neither compare it with our previous lives nor perfect it in our lives to come." <br/> - Milan Kundera',
'"How satisfying it is to leave a mark on a blank surface. To make a map of my movement - no matter how temporary." <br/> - Craig Thompson',
'"You can forget that other people carry pieces of your own story around in their heads. Ive always thought--put together all those random pieces from everyone whos ever known you from your parents to the guy who once sat next to you on a bus, and you would probably see a fuller version of your life than you even did while living it." <br/> - Deb Caletti',
'"It wasnt infinity in fact. Infinity itself looks flat and uninteresting. Looking up into the night sky is looking into infinity--distance is incomprehensible and therefore meaningless. The chamber into which the aircar emerged was anything but infinite, it was just very very very big, so big that it gave the impression of infinity far better than infinity itself." <br/> - Douglas Adams',
'"It is a profound and necessary truth that the deep things in science are not found because they are useful; they are found because it was possible to find them." <br/> - J Robert Oppenheimer',
'"All things, even the deepest sorrow or the most profound happiness are all temporary. Hope is fuel for the soul, without hope, forward motion ceases." <br/> - Landon Parham',
'"A story so cherished it has to be dressed in casualness to disguise its significance in case the listener turned out to be unsympathetic." <br/> - Diane Setterfield',
'"Intelligence and war are games, perhaps the only meaningful games left. If any player becomes too proficient, the game is threatened with termination." <br/> - William S. Burroughs',
'"Only two things are infinite, the universe and human stupidity, and Im not sure about the former." <br/> - Albert Einstein',
'"To raise new questions, new possibilities, to regard old problems from a new angle, requires creative imagination and marks real advance in science." <br/> - Albert Einstein',
'"We live in a society exquisitely dependent on science and technology, in which hardly anyone knows anything about science and technology." <br/> - Carl Sagan',
'"Science knows no country, because knowledge belongs to humanity, and is the torch which illuminates the world. Science is the highest personification of the nation because that nation will remain the first which carries the furthest the works of thought and intelligence." <br/> - Louis Pasteur',
'"The distance between insanity and genius is measured only by success." <br/> - Bruce Feirstein',
'"Our greatest glory is not in never falling, but in rising every time we fall." <br/> - Confucius',
'"Few will have the greatness to bend history itself; but each of us can work to change a small portion of events, and in the total; of all those acts will be written the history of this generation." <br/> - Robert Kennedy',
'"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." <br/> - Ghandi',
'"History, despite its wrenching pain, cannot be unlived, but if faced with courage, need not be lived again." <br/> - Maya Angelou',
'"The aim of art is to represent not the outward appearance of things, but their inward significance." <br/> - Aristotle',
'"Excellence is an art won by training and habituation. We do not act rightly because we have virtue or excellence, but we rather have those because we have acted rightly. We are what we repeatedly do. Excellence, then, is not an act but a habit." <br/> - Aristotle',
'"Thats What" <br/> - She',
'"All men dream, but not equally. Those who dream by night in the dusty recesses of their minds, wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act on their dreams with open eyes, to make them possible." <br/> - T.E. Lawrence',
];
var nextQuote = Math.floor(Math.random() * 22) + 1 - 1;
quote.innerHTML = quotelist[nextQuote];
//Math.floor((Math.random() * 10) + 1)

View File

@@ -0,0 +1,23 @@
var isOpen = false;
var isMobile = false;
var onLoginRedir;
document.write('\
<script src="/lib/jsurl/getvars.js"></script>\
<script src="/depPage/setup/jquery-1.11.3.js"></script>\
<script src="/lib/xml/xmlLib.js"/>\
<script src="/depPage/setup/utils.js"></script>\
<link rel="stylesheet" type="text/css" href="/depPage/css/index.css"/>\
<title>Garrett Mills</title>\
<link rel="shortcut icon" href="/depPage/images/favicon.ico"/>\
');
function showQuote() {
if (isOpen != true) {
document.getElementById("cr").style.visibility="visible";
isOpen = true;
}
else {
document.getElementById("cr").style.visibility="hidden";
isOpen = false;
}
}

View File

@@ -0,0 +1,28 @@
document.write('\
<a href="/"><div class="title">\
Garrett Mills\
</div></a>\
<div class="navi">\
<ul>\
<li><a href="/about/">About Me</a></li>\
<li><a href="/projects/">Projects</a></li>\
<li><a href="/works/">My Works</a></li>\
<li><a href="http://cestaberous.gq">Minecraft: Cestaberous</a></li>\
<li><a href="/resources/">Resources</a></li>\
<li><a href="/contact/">Contact Me</a></li>\
<li><a href="/blog/">My Blog</a></li>\
<li class="copyright" onclick="showQuote();">&copy;</li>\
</ul>\
</div>\
<div id="cr" class="crbox">\
All code in this website, unless otherwise specified, is licensed with the GNU GPL-2 license.\
<a href="http://opensource.org/licenses/GPL-2.0">View License</a>\
<br/><br/>\
Welcome, '+name+'! <a href="#" onclick="signOut();">Sign out</a><br/><br/>\
<div class="g-signin2" data-onsuccess="onSignIn"></div>\
<br/>\
<p id="qotd"></p>\
</div>\
<script type="text/javascript" src="/depPage/quoteBar/randQuote.js"></script>\
\
');

10351
c2015/depPage/setup/jquery-1.11.3.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
function reroute(url){
window.location=url;
}

View File

@@ -0,0 +1,26 @@
<head>
<style type="text/css">
html {
background-color: #000000;
}
img {
position: fixed;
top: 25%;
left: 30%;
}
input {
position: fixed;
top: 60%;
left: 36%;
width: 400px;
padding: 5px;
border: 2px;
border-style: solid;
border-radius: 3px;
border-color: #FFFFFF;
}
</style>
</head>
<img src="https://www.google.com/images/srpr/chrome_ntp_white_logo1.png"/>
<input type="text" id="textbox" name="search" placeholder="Search Google" onkeydown="if (event.keyCode == 13 || event.which == 13) { location='http://www.google.com/search?q=' + encodeURIComponent(document.getElementById('textbox').value);}"/>

View File

@@ -0,0 +1,16 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ Page Dependencies / Utilities</div>
<div class="content">
u420390168
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<script src="https://apis.google.com/js/platform.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<meta name="google-signin-callback" content="signinCallback"/>
<script type="text/javascript" src="/login/protectedHandler.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ Page Dependencies / Utilities</div>
<div class="content">
u420390168
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,5 @@
img {
width: 612px;
position: relative;
top: -9;
}

View File

@@ -0,0 +1,13 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="404.css"/>
</head>
<body>
<center>
<img src="err404.jpg"/>
<h2>Oops! Something broke!</h2>
<h4>But we're working on it. <a href="/contact">Let me know.</a></h4>
<p>Error 404</p>
</center>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

View File

@@ -0,0 +1,3 @@
var keys = {404:"404/404.html"};
window.location=keys[err];

View File

@@ -0,0 +1,9 @@
<html>
<head>
<script type="text/javascript" src="/lib/jsurl/getvars.js"></script>
<script type="text/javascript" src="handle.js"></script>
</head>
<body>
</body>
</html>

View File

@@ -0,0 +1,3 @@
*facepalm* You threw an Error Handler Error.<br/><br/>
The Error handler didn't find the Error you had. Good job. Let me know: garrett@glmills.gq

48
c2015/index.html Normal file
View File

@@ -0,0 +1,48 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/</div>
<div class="content">
<h1>Welcome!</h1>
<p>Whether on purpose, or by accident, you have arrived at my website! Feel free to look around and
explore my projects and resources! Below this text, I will post periodic updates as to my work.
<br/><br/>
Enjoy! --Garrett</p>
<br/>
<h2>Updates & Events</h2>
<h4>Google Login (Half-)Implemented</h4>
<p>
If you have looked at the copyright menu, you may have noticed that I have added a Google sign in button.
At the moment, the only function is to sign in and get the Name of the logged in user. I am continuing to implement
this further. More info, visit the <a href="/projects/web/gauth">Project Page</a>.
</p>
<h4>Collatz Java Program Released</h4>
<p>
I posted the first (stable) version of my simple Java application. This CLI application takes a number from arguments
and runs the Collatz Conjecture on it until it resolves to 1, counting the iterations, and reports the iterations and the
number of iterations until a number of double format (<a href="/resources/javavars.html">Java Variable Description Here</a>)
resolves to 1. <a href="http://en.wikipedia.org/wiki/Collatz_conjecture"><b>What is the Collatz Conjecture?</b></a>
<br/><br/>
<a href="/lib/collatz/collatz.jar">Download the .JAR Here</a>
</p>
<h4>JS URL Library Version 1 Released</h4>
<p>
I have released the first version of my JSURL Library.<br/><br/>
This library for JavaScript will, upon being loaded, scan the URL for variables in the following format: <br/><br/>
http://www.example.com/index.html?foo=bar&id=123 <br/>
</p>
<a href="/projects/web/jsurl/"><h4>Project Page</h4></a><br/>
---
<h4>KriOS Project Started! - 10 May 2015</h4>
<p>I have undertaken the massive project of hand compiling my own OS. <a href="/projects/linux/krios/">Project Page</a></p>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

Binary file not shown.

View File

@@ -0,0 +1,8 @@
<html>
<head>
<script type="text/javascript" src="getvars.js"></script>
</head>
<body>
<h2>COLLATZ JAVA PROJECT LIBRARY ROOT</h2>
</body>
</html>

View File

@@ -0,0 +1,56 @@
//UNDER CONSTRUCTION
var ctr1 = 0
var ctr2 = 0
var ctr3 = 0
var varlist
var varnames = [];
var varvals = [];
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
function isBoolean(str) {
if (str === 'true'){
return true;
}
else {
return false;
}
}
var varlist = window.location.search; //get variables extention from url
var varlist = varlist.replace("?", ""); //remove the '?'
var varlist = varlist + "&"; //add an extra '&' for formatting
var varlist = varlist.split("&"); //create an array for everything split by '&'
for (ctr1 = 0; ctr1 < varlist.length; ++ctr1) { //get the variable name only by removeing everything after the '='
var currVarName = varlist[ctr1];
currVarName = currVarName.substring(0, currVarName.indexOf('=')); //remove value and '='
varnames.push(currVarName); //create an array of the names
}
for (ctr2 = 0; ctr2 < varlist.length; ++ctr2) { //get the variable valus only by removing everything before the '='
var currVarVal = varlist[ctr2];
currVarVal = currVarVal.substring(currVarVal.indexOf("=") + 1);
varvals.push(currVarVal); //write to values array
}
for (ctr3 = 0; ctr3 < varlist.length -1; ++ctr3) {
if (isBoolean(varvals[ctr3]) === true){
document.write("<script> var " + varnames[ctr3] + " = " + varvals[ctr3] + "</script>");
}
if (isNumeric(varvals[ctr3]) === true){
document.write("<script> var " + varnames[ctr3] + " = " + varvals[ctr3] + "</script>");
}
else {
document.write("<script> var " + varnames[ctr3] + " = '" + varvals[ctr3] + "'</script>");
}
}

View File

@@ -0,0 +1,15 @@
<html>
<head>
<script type="text/javascript" src="getvars.js"></script>
</head>
<body>
JSURL Variable Retrieval Test Page.
<br/><br/>
Variables: <br/>
<script type="text/javascript">
for (var ctr = 0; ctr < varnames.length-1; ++ctr) {
document.write("name: " + varnames[ctr] + " & value: " + varvals[ctr] + "<br/>")
}
</script>
</body>
</html>

15
c2015/lib/xml/xmlLib.js Normal file
View File

@@ -0,0 +1,15 @@
function getInternalXML(url){
var xhttp, xmlDoc;
if (window.XMLHttpRequest)
{
xhttp=new XMLHttpRequest();
}
else // code for IE5 and IE6
{
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET",url,false);
xhttp.send();
xmlDoc=xhttp.responseXML;
return xmlDoc;
}

20
c2015/login/index.html Normal file
View File

@@ -0,0 +1,20 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ Login</div>
<div class="content">
<center>
<h2>Welcome! To access this area, please sign in.</h2>
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<br/>
</center>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

13
c2015/login/logged.html Normal file
View File

@@ -0,0 +1,13 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/jquery-1.11.3.js"></script>
<script id="foo" src="https://apis.google.com/js/platform.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<meta name="google-signin-callback" content="signinCallback"/>
<script type="text/javascript" src="protectedHandler.js"></script>
</head>
<body>
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<a href="#" onclick="signOut();">Sign out</a>
</body>
</html>

13
c2015/login/login.html Normal file
View File

@@ -0,0 +1,13 @@
<html>
<head>
<script type="text/javascript" src="/lib/jsurl/getvars.js"></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/depPage/setup/jquery-1.11.3.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script type="text/javascript" src="signIn.js"></script>
</head>
<body>
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<a href="#" onclick="signOut();">Sign out</a>
</body>
</html>

View File

@@ -0,0 +1,28 @@
var email, sessionKey, sessionVal;
function onSignIn(googleUser){
var profile = googleUser.getBasicProfile();
email = profile.email;
//
sessionKey = email;
sessionVal = localStorage.getItem(sessionKey);
}
function doAuthCheck(){
if (sessionVal != "in") {
alert("authError!");
} else {alert("auth successful")}
}
$(window).load(function ()
{
var i = setInterval(function ()
{
if ($('#foo').length)
{
clearInterval(i);
// safe to execute your code here
doAuthCheck();
}
}, 2000);
});

35
c2015/login/signIn.js Normal file
View File

@@ -0,0 +1,35 @@
var id, name, imgurl, email, sessionKey, sessionVal;
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
id = profile.getId();
name = profile.getName();
imgurl = profile.getImageUrl();
email = profile.getEmail();
sessionKey = email;
sessionVal = localStorage.getItem(sessionKey);
localStorage.setItem(sessionKey, "in");
if (onLoginRedir != undefined){
window.location=onLoginRedir;
}
else {console.log("Login Successful")}
}
//
function signOut() {
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function () {
localStorage.setItem(sessionKey, null);
name = "Guest";
window.location.reload();
});
}
//ATTENTION! Use this fuction for click to check ONLY!
function doIsAuth(){
if (sessionVal == "in"){
return true;
}
else {
return false;
}
}

View File

@@ -0,0 +1,19 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ Login</div>
<div class="content">
<center>
<h2>Thanks! You have been signed out.</h2>
<br/>
</center>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ My Projects / Android Development</div>
<div class="content">
<h3>There are currently no ongoing projects. To suggest one, visit the <a href="/contact/">contact me page.</a></h3>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

81
c2015/projects/index.html Normal file
View File

@@ -0,0 +1,81 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
<link rel="stylesheet" href="/depPage/css/projects.css" type="text/css"/>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ My Projects</div>
<div class="content">
<section>
<div id="one">
<img src="/depPage/images/rpilogo.png"/>
<div>
<a href="/projects/rpi/">
<h2>Raspberry Pi</h2>
<p>Quest Drone!</p>
</a>
</div>
</a>
</div>
<div id="two">
<img src="/depPage/images/html5logo.png"/>
<div>
<a href="/projects/web/">
<h2>Web Design</h2>
<p>Templates & Projects</p>
</a>
</div>
</div>
<div id="three">
<img src="/depPage/images/mclogo.jpg"/>
<div>
<a href="http://cestaberous.gq/">
<h2>Minecraft</h2>
<p>Mods & Servers</p>
</a>
</div>
</div>
<div id="four">
<img src="/depPage/images/androidlogo.png"/>
<div>
<a href="/projects/android/">
<h2>Android</h2>
<p>App Development</p>
</a>
</div>
</div>
<div id="five">
<img src="/depPage/images/linuxlogo.jpg"/>
<div>
<a href="/projects/linux/">
<h2>Linux</h2>
<p>Bash & Devel</p>
</a>
</div>
</div>
</section>
</div>
<div class="content">
<h2>Other Projects:</h2>
<h4>Collatz Conjecture Calculator</h4>
<p>
The Collatz conjecture is a conjecture in mathematics named after Lothar Collatz,
who first proposed it in 1937. The conjecture is also known as the <code>3n + 1</code> conjecture.
Take any natural number n. If n is even, divide it by 2 to get <code>n / 2</code>. If n is odd,
multiply it by 3 and add 1 to obtain <code>3n + 1</code>. Repeat the process (which has been called
"Half Or Triple Plus One") indefinitely. The conjecture is that no matter what number you
start with, you will always eventually reach 1. The property has also been called oneness.
(Source: <a href="http://en.wikipedia.org/wiki/Collatz_conjecture">Wikipedia</a>)<br/><br/>
This Executable JAR application accepts any number, and will automatically attempt to resolve
the number to 1 using the Collatz Conjecture rules. When it does this, it counts and prints the iterations.
<br/><br/><br/><a href="/lib/collatz/collatz.jar">Download the .JAR Here</a>
<br/><br/><br/><a href="http://en.wikipedia.org/wiki/Collatz_conjecture"><b>What is the Collatz Conjecture?</b></a>
</p>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ My Projects / Linux Development</div>
<div class="content">
<h2><a href="krios/">KriOS - A hand compiled Linux Operating System</a></h2>
<p>This is exciting news! I am currently in the process of collecting resources and information to make my own,
hand compiled Linux Operating System. The system will follow the Linux From Scratch tutorial, and I will post periodic
updates and helpful comments and notes for anyone wishing to embark on the same project over at the
<a href="/projects/linux/krios/">Project Page.</a></p>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,29 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ My Projects / Linux Development / KriOS</div>
<div class="content">
<h2>KriOS - A hand compiled Linux Operating System</h2>
<p>This is exciting news! I am currently in the process of collecting resources and information to make my own,
hand compiled Linux Operating System. The system will follow the Linux From Scratch tutorial, and I will post periodic
updates and helpful comments and notes for anyone wishing to embark on the same project.</p>
<h3>What's with the funny name?</h3>
<p>That's Krios (Kree-ohs). That is the name of the small technology solutions startup that includes myself
and a few other people with similar interests. <a href="http://krioscom.gq/info/krios">More Info</a></p>
<h3>Project Resources</h3>
<ul>
<li><a href="http://www.linuxfromscratch.org/">Linux From Scratch Homepage</a></li>
<li><a href="http://www.linuxfromscratch.org/lfs/view/stable/">Beginner's Tutorial</a></li>
</ul>
<h3>Project Updates</h3>
<p>No updates at this time.</p>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,36 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ My Projects / Raspberry Pi / QUEST Drone</div>
<div class="content">
<h3>The QUEST Drone!</h3>
<p>The quest drone project is something that myself as well as <a href="http://jakemitchell.com/">Jake Mitchell</a>
and the end goal is to have a fully automated Raspberry Pi powered drone that we can send on automated missions, as
well as fly normally.
</p>
<h3>Project Resources</h3>
<ul>
<li><a href="http://computers.tutsplus.com/tutorials/controlling-dc-motors-using-python-with-a-raspberry-pi--cms-20051">
Controlling Motors w/ RPi
</a></li>
<li><a href="https://www.raspberrypi.org/help/what-is-a-raspberry-pi/">Wait! What's a Raspberry Pi?</a></li>
<li><a href="http://www.themagpi.com/issue/issue-19/">Reference Article in MagPi</a></li>
<li><a href="https://docs.google.com/spreadsheets/d/1k9dQeWEC4-IHpYCEu507Tvav_LJoZseY9cMxV_Hf9hg/edit?usp=sharing">Complete Parts List + Prices</a></li>
</ul>
<h3>Project Updates</h3>
<h4>10 May 2015 - On Hold</h4>
<p>In lieu of the last few days of school, we are finished with the ordering of parts for the drone, and
I am hoping that we can meet over the summer to begin development of the hardware, in time to get back in
full swing when school resumes in August. A full list of ordered parts is avaiilable above.
<br/><br/><br/> --Garrett</p>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,18 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ My Projects / Raspberry Pi</div>
<div class="content">
<script type="text/javascript">
reroute("drone.html");
</script>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,54 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ My Projects / Web Development / Google Auth Implementation</div>
<div class="content">
<h2>Google Auth</h2>
<p>
So, lately I have been experimenting with Google APIs, and decided to implement the Google Authentication on my website.
At the moment, it is only half-implemented, but if you click on the copyright menu on the main website,
you will see a name identifier, as well as a Google Sign-In button. You can click the button to log in,
and (upon refreshing) the Name identifier will update. If you then click sign out, it will log you out of the website,
and the Name identifier will change back to 'Guest'.
</p>
<img style="border-style: solid; border-width: 3px; border-color: #CCCCCC; border-radius: 10px; width: 274px; height: 187;" src="http://glmills.gq/blog/wp-content/uploads/2015/06/signinblank.png"/>
<img style="border-style: solid; border-width: 3px; border-color: #CCCCCC; border-radius: 10px; width: 274px; height: 187;" src="http://glmills.gq/blog/wp-content/uploads/2015/06/signin.png"/>
<p>
I have not implemented a handler for protecting pages yet, but I am currently working on it, and plan to integrate it with my JSURL Project so that webpages can forward to a login handler, and be redirected back to a set page after authentication, as follows:
<br/><br/>
glmills.gq/login/?doLoginRedir=URL/to/redirect/to
<br/><br/>
So for example, if you click the link below, it will log you in and send you to the Projects page.
<br/><br/>
<a href="http://glmills.gq/login/index.html?doLoginRedir=/projects">http://glmills.gq/login/index.html?doLoginRedir=/projects</a>
<br/><br/>
This is not implemented yet, however. The in-progress source code is available in the aforementioned files. For those of you curious
about how I handled sign ins, here you go:
</p>
<!-- HTML generated using hilite.me --><div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin: 0; line-height: 125%">
</pre></td><td><pre style="margin: 0; line-height: 125%"><span style="color: #008800; font-weight: bold">function</span> onSignIn(googleUser) {
<span style="color: #008800; font-weight: bold">var</span> profile <span style="color: #333333">=</span> googleUser.getBasicProfile();
id <span style="color: #333333">=</span> profile.getId();
name <span style="color: #333333">=</span> profile.getName();
imgurl <span style="color: #333333">=</span> profile.getImageUrl();
email <span style="color: #333333">=</span> profile.getEmail();
sessionKey <span style="color: #333333">=</span> email;
sessionVal <span style="color: #333333">=</span> localStorage.getItem(sessionKey);
localStorage.setItem(sessionKey, <span style="background-color: #fff0f0">&quot;in&quot;</span>);
<span style="color: #008800; font-weight: bold">if</span> (onLoginRedir <span style="color: #333333">!=</span> <span style="color: #008800; font-weight: bold">undefined</span>){
<span style="color: #007020">window</span>.location<span style="color: #333333">=</span>onLoginRedir;
}
<span style="color: #008800; font-weight: bold">else</span> {console.log(<span style="background-color: #fff0f0">&quot;Login Successful&quot;</span>)}
}
</pre></td></tr></table></div>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,26 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ My Projects / Web Development</div>
<div class="content">
<h2><a href="jsurl/">JavaScript Variables From URLs</a></h2>
<p>
This library for JavaScript will, upon being loaded, scan the URL for variables in the following format: <br/><br/>
http://www.example.com/index.html<b>?foo=bar</b>&<b>id=123</b>
</p>
<h4>List Of Sites:</h4>
<ul>
<li>This Site (duh)</li>
<li><a href="http://krioscom.gq/">Krios Project Homepage</a></li>
</ul>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,30 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ My Projects / Web Development / JSURL</div>
<div class="content">
<h2>Retrive Variables from URLs</h2>
<p>
This library for JavaScript will, upon being loaded, scan the URL for variables in the following format: <br/><br/>
http://www.example.com/index.html<b>?foo=bar</b>&<b>id=123</b>
<br/><br/>
And will define them in the same section of the document as they were called (eg, call the script in the head, the variables load there.
The Variables are each in their own respective script tags directly in the HTML code to allow for universal use.
</p>
<h4>To use, simply call the following file:</h4>
<p>
<a href="/lib/jsurl/getvars.js">http://lib.glmills.gq/jsurl/gervars.js</a>
</p>
<h4>Or to test the mechanic, visit:</h4>
<a href="/lib/jsurl/">http://lib.glmills.gq/jsurl/</a>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

View File

@@ -0,0 +1,28 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/ Resources</div>
<div class="content">
<h2>Links to My Favourite Things!</h2>
<ul>
<li><a href="https://ninite.com/">Ninite - Install and Update Multiple Applications</a></li>
<li><a href="https://winworldpc.com/">WinWorld - Abandonware and Old OS Downloads</a></li>
<li><a href="http://www.havenandhearth.com/">Haven and Hearth Game</a></li>
<li><a href="http://ringofbrodgar.com/wiki/Haven_and_Hearth_Wiki">Ring of Brodgar - Haven and Hearth Wiki</a></li>
<li><a href="http://www.thinkgeek.com/">ThinkGeek Web Store</a></li>
<li><a href="http://agoogleaday.com/#game=started">A Google A Day</a></li>
<li><a href="http://edx.org/">EdX Free Online Courses</a></li>
<li><a href="http://alison.com">ALISON Free Online Courses</a></li>
<li><a href="http://portableapps.com">Portable Applications</a></li>
<li><a href="http://www.theguardian.com/science/2013/sep/01/20-big-questions-in-science">20 Big Questions in Science</a></li>
</ul>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

31
c2015/works/index.html Normal file
View File

@@ -0,0 +1,31 @@
<html>
<head>
<script type="text/javascript" src="/depPage/setup/head.js"></script>
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="/login/signIn.js"></script>
</head>
<body>
<script type="text/javascript" src="/depPage/setup/header.js"></script>
<div class="desc">/</div>
<div class="content">
<h2>A Chronological List of Works by Garrett Mills:</h2>
<h4>A Brief History of Mount Rainier</h4>
<p>
<a href="/works/mountrainier.pdf">Download as PDF</a><br/>
<a href="/works/mountrainier.odt">Download as ODT (for Word or similar)</a><br/><br/>
MLA Journal Citation:<br/><br/>
Mills, Garrett L. "A Brief History of Mount Rainier." Works of Garrett Mills (2015): 21 Jan. 2015. http://glmills.gq/works/mountrainier.pdf.
<br/>--
</p>
<h4>An Analysis of Odysseus, Epic Hero</h4>
<p>
<a href="/works/odysseus.pdf">Download as PDF</a><br/>
<a href="/works/odysseus.odt">Download as ODT (for Word or similar)</a><br/><br/>
MLA Journal Citation:<br/><br/>
Mills, Garrett L. "An Analysis of Odysseus, Epic Hero." Works of Garrett Mills (2015): 15 May 2015. http://glmills.gq/works/odysseus.pdf.
</p>
</div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>

Binary file not shown.

Binary file not shown.

BIN
c2015/works/odysseus.odt Normal file

Binary file not shown.

BIN
c2015/works/odysseus.pdf Normal file

Binary file not shown.