{"id":17930109,"url":"https://github.com/nathanpeck/euphoria","last_synced_at":"2026-01-16T00:46:25.933Z","repository":{"id":66221302,"uuid":"43715913","full_name":"nathanpeck/euphoria","owner":"nathanpeck","description":"A bunch of code I wrote in 2004 in the EUPHORIA language","archived":false,"fork":false,"pushed_at":"2015-10-05T22:27:50.000Z","size":352,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T23:29:35.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Eiffel","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathanpeck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-05T21:53:24.000Z","updated_at":"2021-11-06T22:30:27.000Z","dependencies_parsed_at":"2023-02-20T00:30:46.514Z","dependency_job_id":null,"html_url":"https://github.com/nathanpeck/euphoria","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanpeck%2Feuphoria","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanpeck%2Feuphoria/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanpeck%2Feuphoria/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanpeck%2Feuphoria/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanpeck","download_url":"https://codeload.github.com/nathanpeck/euphoria/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246981166,"owners_count":20863828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T21:12:02.164Z","updated_at":"2026-01-16T00:46:25.902Z","avatar_url":"https://github.com/nathanpeck.png","language":"Eiffel","readme":"# euphoria\n\nA bunch of code I wrote back in 2004 (at 14 years old) in the [EUPHORIA](http://www.rapideuphoria.com/) language.\n\nContents include:\n\n* A low level mode 19 (13h) [graphics engine](/Emagine). It has some nice things like a 256 color palette fade algorithm,\nand a cute implementation of [RLE sprites](https://www.allegro.cc/manual/4/api/rle-sprites/) (which I thought I had invented at the time).\nA blast of [320x200 goodness](https://en.wikipedia.org/wiki/Mode_13h) from the past.\n\n* A few copies of the [VESA BIOS Extension documentation](Compression/Vbe20.txt) which was basically my goto handbook for all sorts of low level graphics goodness.\n\n* A platformer [game](/Escapade), written using the graphics engine. It ran in mode 19. The code for this game\nis horrific, but the most interesting thing about it is an [algorithm](/Escapade/g.e) that can analyze user generated platformer\nmaps and then generate new platformer maps based on the samples.\n\n* A Windows program [installer](/Installer) that can wrap up a compressed archive inside an executable that\ncan extract itself.\n\n* A [DOS commandline messagebox](/Dos%20Msgbox) (with terminal mouse support)\n\n* A really [weird sorting algorithm](/Sort)\n\n* An attempt at creating an [encryption algorithm](/Elfin) after reading Bruce Schneier's book Applied Cryptography.\n14 year old me was very impressed and thought it would be quite glamorous to roll my own algorithm.\n\n* A very naive [compression algorithm](/Compression) that frankly is pretty embarassing.\n\n* Some amazing quotes like this one: `I have a very old machine though with a slow processor, 32 mb memory and demo.ex runs at 56 kbs encoding and 56 kbs decoding.`\n\n* Some incredible ASM code:\n\n   ```\n    global constant retrace_vertical = allocate(20)\n    poke(retrace_vertical, {\n      #50,          --    PUSH EAX\n      #52,          --    PUSH EDX\n      #BA,#DA,3,0,0,--    MOV EDX, 0x03DA\n      #EC,          -- 1: IN AL, DX\n      #A8,#08,      --    TEST AL, 0x08\n      #75,#FB,      --    JNZ 1:\n      #EC,          -- 2: IN AL, DX\n      #A8,#08,      --    TEST AL, 0x08\n      #74,#FB,      --    JZ 2:\n      #5A,          --    POP EDX\n      #58,          --    POP EAX\n      #C3 } )       --    RET\n   ```\n   \n* A severe lack of well named variables, but an abundance of scary looking one liners:\n\n   ```\n   --A weird sprite routine that I doubt many will use.\n   --It is fast though!\n   global procedure buffer_sprite_fast(atom where,graphic_point xy,sequence img)\n     atom a,x3,y3\n     a = buffers[where][1]\n     x3 = buffers[where][2]\n     y3 = buffers[where][3]\n     for counter = 1 to length(img) do\n\t     poke(a+(xy[2]*x3)+xy[1]+((counter-1)*x3),img[counter]+peek({a+(xy[2]*x3)+xy[1]+((counter-1)*x3),length(img[1])}))\n     end for\n   end procedure\n   ```\n   \n* Many, many [8.3](https://en.wikipedia.org/wiki/8.3_filename) filenames.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanpeck%2Feuphoria","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanpeck%2Feuphoria","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanpeck%2Feuphoria/lists"}