Skip to content

Instantly share code, notes, and snippets.

@ninjaasmoke
ninjaasmoke / raid.cpp
Last active September 2, 2025 14:46
RAID 7 test
#include <iostream>
#include <vector>
#include <cstdint>
#include <iomanip>
#include <stdexcept>
using namespace std;
class RAID7 {
private:
static const uint16_t GF_POLY = 0x11D; // x^8 + x^4 + x^3 + x^2 + 1
@ninjaasmoke
ninjaasmoke / comapring_impls.dart
Created December 6, 2024 16:08
a comparison of different implementations for drawing markers on a map
class LatLng {
final double latitude;
final double longitude;
LatLng(this.latitude, this.longitude);
}
class LatLngBounds {
final LatLng southwest;
final LatLng northeast;