Tag Archives: programming

Exploring the ZIP File Format in JavaScript

The JavaScript program below, when run, prompts the user to upload a file in .ZIP format. Then the file is parsed and its internal structure is displayed as text in the JSON format. Note that this code does not actually … Continue reading

Posted in Uncategorized | Tagged , , , , | 3 Comments

Another RPG Combat Engine in JavaScript

The code below implements a rudimentary turn-based combat engine for a Japanese-style role-playing game in JavaScript. I have partially implemented a similar engine in a previous post, but I recently tried to update it and found it very difficult. I … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

A Text-Based SVG Editor in JavaScript

The JavaScript program below, when run, will present an interface that allows a user to edit a vector image in SVG format as text, and view the changes to the rendered image as they are made. To see it in … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

An HTTP Echo Server in C# Using HttpListener

The C# code below implements a rudimentary HTTP server that simply echoes whatever is sent to it back to the client.

Posted in Uncategorized | Tagged , , , , , | Leave a comment

A Function Argument Type Validator in JavaScript

The JavaScript code below implements simple type checking on function arguments. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript, with the debugging console open so the … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

An x86-16 Disassembler in JavaScript

Below is a partially implemented disassembler for Intel’s x86-16 instruction set, intended to assist in the investigation of COM executables from the era of Microsoft DOS. It needs a lot more work. It can’t truly disassemble anything yet, or rather … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

A MOD File Viewer in JavaScript

The JavaScript code below, when run, allows the user to specify a file in the .MOD music tracker format, parses it, and displays the contents as JSON (in a rather inconvenient way). To see it in action, copy it into … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

An Orbital Maneuver Simulator in JavaScript

Below is a prototype of a simple orbital maneuver simulator in JavaScript. To see the code in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, for an online version, … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

A Music Notation Renderer In JavaScript

The JavaScript below prompts the user for a musical composition in JavaScript format, and then renders that composition in musical notation. To see it in action, copy the code into an .html file and open that file in a web … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

A MIDI Viewer in JavaScript

The JavaScript program below prompts for a MIDI file, loads that file, parses it into text, and displays that text. It also allows the file to be re-saved, though, since the file can’t be edited, re-saving is solely a way … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment