9 ms·
I've written lots of small things. Some of them maybe used love as an excuse to explore some interesting idea. For valentines day once I wrote a stupid little
by swiley 6y ago
I've written lots of small things. Some of them maybe used love as an excuse to explore some interesting idea.
For valentines day once I wrote a stupid little hack in javascript where some hearts bounce around the screen and leave trails. I sent it to a bunch of girls including one that I really liked.
I have this penpall in Germany, at one point we were really close and would talk all the time. Before bed we would always send eachother long strings of something (it was Sl[eE]*p for a while, then when emojis became popular it was the sheep emoji) so I made her a little clock with sheep around it.
I probably was sexting more than I should. I used to not keep a pin on my phone (it's so inconvenient and on android you don't even need a lock screen) so to keep the kids at church from going through everything I wrote a little web page that lets you encrypt images along with a text note and generate a data: URI that has a tiny (homebrew! yikes!) RC4 implementation to decrypt them. The whole thing was entirely client side and kind of nifty IMO. I think I got one person to use it once. I ended up finding some ugly bugs in the application (not that it mattered, it's RC4 heh) for example the original version always included an image (it would be a black png that was always the same size if you didn't add one yourself.) So if someone sends a text note with no image and then sends an image using the same password you could decrypt the first few hundred bytes of the secret image without knowing the password.
There was a girl in college I was dating and I made her a display hack in GLSL that draws a 3d flower using the cosin rose. It was rendered by relating the fragment brightness to the distance of a bunch of points in orthographically projected 3d space. The whole thing unfolded from a single bright blob and as time went on the points would move across each other making this pulsating pattern that got more and more intense until the whole thing shrank back into the single bright point. I added some code to the viewer that would check the phone's accelerometer/gyroscope so when you moved the phone around the flower would move too which give it this pretty intense VR feel.
At another point in college I was dating this other girl, it seemed like we would be apart for a while and she didn't like video games so I wrote a chess program that would let us play over text by sending moves in algebraic notation (you could also play it on the same computer, it would even check argv[0] for "cgi" and give you a web interface.) I thought I had written something pretty minimalist and was all proud of myself until I found the 4k chess program for z80.