Skip to content

Instantly share code, notes, and snippets.

View ed588's full-sized avatar
🍞
yes?

ed588

🍞
yes?
  • Everywhere
View GitHub Profile
@ed588
ed588 / emojasmspec.md
Last active June 26, 2019 13:10
Specification for EmojASM

EmojASM

Assembly language for a tape-based computer system, but every instruction is an emoji.

Architecture

  • General-purpose registers X and Y (both 8 bits wide)
  • Accumulator Register A (8 bits wide)
  • 3x Tape Drives, T0 T1 and T2 (descibed below), each with the following:
    • 1 input buffer register (TnI)
  • 1 ouput buffer register (TnO)
@ed588
ed588 / nselec.scss
Created October 28, 2018 13:20
The scss file that customised bulma for nselec
// this file is public-domain; do whatever you want with it!
@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');
$darkgreen: #007f46;
$lightgreen: #00aa35;
$mainbg: #f6f6f0;
$family-sans-serif: "Raleway", sans-serif;
@ed588
ed588 / election-format.md
Created July 8, 2018 10:40
Election File Format for the ns-elec site

Election File Format

As you may have noticed from using the election site, there is no graphical wizard or anything for creating elections. Instead there is simply a form to upload files, along with a stern warning to check that the file follows the format. So, this document is the instruction manual for writing election specification files that follow the correct format.

General ideas

The election files use the [JSON format][json], a lightweight way of storing data in way that is both human- and machine-readable. You don't need to fully understand JSON to be able to make election files, but I recommend you at least look into it so that you know what it looks like in general.

An example election

Keybase proof

I hereby claim:

  • I am ed588 on github.
  • I am ed588 (https://keybase.io/ed588) on keybase.
  • I have a public key ASBi2jr8-r25f72zigpu3xPkjLESkhEuvZCaZ8hXxjuBkwo

To claim this, I am signing this object:

@ed588
ed588 / README.md
Last active April 7, 2018 14:58
NationStates issue checker

NationStates Issue Checker for Windows 10

This script checks every 10 (by default) minutes and notifies you if you have new issues on NationStates.

This only works on Windows 10 as it uses win10toast to notify you of new issues - that could be changed though if anyone is sufficiently interested.

Requirements

  • win10toast - display toast notifications
  • requests - make HTTP requests to the nationstates API
  • beautifulsoup - parsing the xml returned from the API(probably a bit overkill, but it works)
  • lxml - required for beautifulsoup to parse XML