Potential Energy:

The energy held by an object due to its position relative to other objects, as well as stresses within itself, among other factors

What's new?

Weather Site

For one of my weekly labs, my class was instructed to make a simple site that uses an API. Of course I took the opportunity to go massively overkill with things, and set up a little weather site. Enter your Country, Province (or other type of administrative region) and City, and see what the weather's like right now, featuring images from Unsplash's API.

The site has proper error handling in place, along with proper fallback images incase it runs out of Unsplash API calls. (It really never should naturally, as Unsplash's demo API is actually pretty generous, but during development it happened a few times and it was annoying me.) It also uses URL arguments to pass information between the first and second pages, as well as a media query to make the page look acceptable on most mobile devices.

I'll be honest, I've been using it over The Weather Network these past few weeks. It loads quicker, and I don't care about knowing what the weather will be like in 3 days-- I just want to know if I should bring my coat.

Link

CoffeeTime

Last year for my creative coding final I put together a little JavaScript learning game. It's mostly unimpressive, and has a spaghetti code problem, but it would've gotten me a 100/100 if I hadn't fumbled right at the end and forgotten to click submit on the Blackboard Assignment, so clearly I'm doing something right.

It doesn't look too fancy, and it isn' very long, but the cool thing about it is that all of the code revolves around a few core functions -- effectively making it a really bad, ugly, inefficient Game Engine-- but for someone's first major project, I'd say it's pretty good.

Link

There'll be more here eventually. I just dont know what.