Skip to content

Instantly share code, notes, and snippets.

@mva1985
mva1985 / events.sdlbas
Created June 9, 2019 21:12
sdlBasic library to poll input devices and generate discrete events like key_down, key_up & co.
' events.sdlbas: sdlBasic library to poll input devices
' and generate discrete events like key_down, key_up & co.
' 2019-05-07 No Time To Play <https://notimetoplay.org/>
' Use as you like; please keep the attribution if you will.
const no_event = 0
const key_down_event = 1
const key_up_event = 2
const mouse_down_event = 3
@mva1985
mva1985 / textalign.sdlbas
Created June 9, 2019 21:12
sdlBasic library to render text on the fly with various alignments relative to the given coordinates.
' textalign.sdlbas: sdlBasic library to render text on the fly
' with various alignments relative to the given coordinates.
' 2019-05-06 No Time To Play <https://notimetoplay.org/>
' Use as you like; please keep the attribution if you will.
' Set to a number the game leaves unused otherwise.
' Slot 0 (zero) is the mouse cursor in full screen.
dim common _temp_text_slot = 1
@mva1985
mva1985 / ciphersaber.py
Created April 24, 2017 03:48 — forked from keiyakins/ciphersaber.py
Keiya's ciphersaber implementation
#!/usr/bin/env python
"""An implementation of CipherSaber-2.
Copyright 2010, Keiya Bachhuber
Licensed under the WTFPL version 2 (http://sam.zoy.org/wtfpl/COPYING)
"""
from sys import argv
from os import urandom
from random import randint
from warnings import warn
@mva1985
mva1985 / openpgp.txt
Created January 17, 2017 13:10
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:0c5eb2ee2c49f6582cb562b4c588f0c8d55f4b61]
@mva1985
mva1985 / openpgp.txt
Created July 8, 2016 14:56
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:bf0c978177abe64f2139b26fac3794e96d8af64c]
### Keybase proof
I hereby claim:
* I am mva1985 on github.
* I am mva1985 (https://keybase.io/mva1985) on keybase.
* I have a public key whose fingerprint is B8B2 9691 5F9E A724 CB73 B938 713E BD3C 9955 ABD2
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am mva1985 on github.
  • I am mva1985 (https://keybase.io/mva1985) on keybase.
  • I have a public key whose fingerprint is 0E35 A07C 81C1 8A5B 1853 F07C 39ED 500F D68D C639

To claim this, I am signing this object: