Self-hatred

Archive for the ‘website’ Category

100% CSS egg

I won’t call it pretty, but it works! .egg { /* Ratio between width and height should be 1.318:1. */ width: 200px; height: 263.6px; background-color: #fff; /* curve ratio 0.75:1 */ border-top-left-radius: 170% 225%; border-top-right-radius: 170% 225%; /* Curve ratio 1.41:1 */ border-bottom-left-radius: 170% 120%; border-bottom-right-radius: 170% 120%; }

Not bad.

As of now, the blog is seven years old and has one thousand, three hundred and thirty-three posts. Zero broken links found. Or maybe I’m just narcissistic and never link anywhere?

jQuery “hello world”

Yay, milestone. <head> <title>JSON Test #1</title> <style type=”text/css”> #test { position: absolute; width: 500px; height: 100px; top: 25%; left: 25%; color: black; } </style> </head> <body> <div id=”test”></div> <script> var data={ “firstName”:”Mark”, “lastName”:”Grealish”, }; document.getElementById(“test”).innerHTML=data.firstName+” “+data.lastName; </script> </body> </html>

[Bash] Prep version 3

I use a fairly basic script that formats pictures, uploads them via Dropbox, and inserts paste-ready HTML code into my clipboard. With some minor modifications this script can be used on Linux, Windows (Cygwin), or OS X. Taking a break from animating sprites, I wanted to improve this script, in order to reduce my work. [...]