Skip to content

Instantly share code, notes, and snippets.

/// This is an automatic generated amalgamation of:
/// continuable version 4.0.0 (735697026b72a8f415d3443834cceeda9623780d)
/*
/~` _ _ _|_. _ _ |_ | _
\_,(_)| | | || ||_|(_||_)|(/_
https://github.com/Naios/continuable
v4.1.0
/// This is an automatic generated amalgamation of:
/// continuable version 4.0.0 (735697026b72a8f415d3443834cceeda9623780d)
/*
/~` _ _ _|_. _ _ |_ | _
\_,(_)| | | || ||_|(_||_)|(/_
https://github.com/Naios/continuable
v4.2.0
@Spongman
Spongman / www.cpp
Last active February 23, 2024 05:48
simple c++ web server with multi-threading, async i/o and keep-alives.
#include <boost/beast.hpp>
#include <boost/asio.hpp>
namespace ip = boost::asio::ip;
namespace http = boost::beast::http;
int main() {
boost::asio::thread_pool ioc;
ip::tcp::acceptor acceptor{ioc, ip::tcp::endpoint{ip::address::from_string("127.0.0.1"), 9999}};
while(true) {
ip::tcp::socket socket{ioc};
acceptor.accept(socket);
@Spongman
Spongman / ssp2.asm
Last active April 11, 2024 22:42
Mysterious Program in EPROM of Synertek SYM-1 Owned by Composer Richard Teitelbaum
{
via3.DDRA = 1;
via3.DDRB = 0xff; // output
via3.PCR = 1; // CA1: Independent interrupt input-negative edge
via2.DDRA = 0; // input
via2.DDRB = 0xff; // output
via2.PCR = 0x88; // CA & CB: Handshake output, negative active edge
bool moreBits = true;