Map images of the game "Rescue Rover (1991)"
Used GIMP and Tiled to create the map images. Tile images were extracted via screenshoting DosBox. Used the game version from PlayDosGames. Map images and TILED files included.
#include <cstdio> | |
#include <cstring> | |
extern "C" { | |
#include <libhackrf/hackrf.h> | |
} | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <complex> | |
#include <cstdint> | |
#include <numbers> |
#include <libhackrf/hackrf.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <complex.h> | |
#include <stdint.h> | |
const double f_mod = 440; | |
const uint64_t sample_rate = 10000000; |
Map images of the game "Rescue Rover (1991)"
Used GIMP and Tiled to create the map images. Tile images were extracted via screenshoting DosBox. Used the game version from PlayDosGames. Map images and TILED files included.
import struct | |
import zlib | |
from PIL import Image | |
import click | |
import io | |
GAMMA = 0.08 | |
DESAT_RATE = 0.4 | |
################################################################################ |
from dataclasses import dataclass, field, replace | |
import typing | |
from collections.abc import Iterator | |
from enum import Enum | |
from collections import defaultdict | |
####################################### | |
# Base classes for storing operations # | |
####################################### |
import os | |
EXTENSIONS = ("lmu", "ldb", "lmt") | |
GOOD_DATA = { | |
"lmu": b"\x0aLcfMapUnit", | |
"ldb": b"\x0BLcfDataBase", | |
"lmt": b"\x0aLcfMapTree", | |
} |
#!/bin/env python3 | |
""" | |
import subprocess | |
def strings(data): | |
process = subprocess.Popen(["strings"], stdin=subprocess.PIPE,stdout=subprocess.PIPE) | |
print("Created process") | |
process.stdin.write(data) | |
process.stdin.close() |
""" | |
BF interpreter in python, coded in half an hour just for fun | |
Warning! Python 3.10 is required! | |
""" | |
from sys import stdin, stdout | |
class BFPreter: | |
"""BD interpreter for a program""" | |
def __init__(self, program): |
/* | |
Test on how are JS's switch-cases are working. | |
I was in an argument w/ someone saying they turn into jumptables, | |
so I coded this up quickly to check. | |
With a few calls (so JIT won't kick in) it is clear that this executes | |
every case every time we enter the switch, so it is clear that jump tables | |
are not used in general, but they still might be used as an optional optimization, | |
but only when possible. | |
*/ |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
#ifndef STASSID | |
#define STASSID "MY-SSID" | |
#define STAPSK "PASSWORD" | |
#endif |