Skip to content

Instantly share code, notes, and snippets.

@taitep
taitep / .py
Created September 21, 2024 06:58
Python decorator making it simple to create decorators with arguments
def arg_decorator(func):
def wrapper(*args, **kwargs):
return lambda f: func(f, *args, **kwargs)
return wrapper
@taitep
taitep / protocol.md
Created July 30, 2024 11:17
Protocol for tic-tac-tcp

Tic-tac-tcp

Tic-tac-tcp is my protocol for tic-tac-toe over TCP.

This project is under the MIT license. Please click here to get the full license text.

The default port for the server should be 7777, but both server and client should also support using other ports.

Table of Contents

@taitep
taitep / dl-list-mini.rs
Last active October 16, 2023 12:26 — forked from matey-jack/dl-list-mini.fs
Simple doubly-linked list in safe Rust
//! A doubly-linked list in 50 LOCs of stable and safe Rust.
// Backup-fork of https://play.rust-lang.org/?gist=c3db81ec94bf231b721ef483f58deb35
use std::cell::RefCell;
use std::rc::{Rc, Weak};
use std::fmt::Display;
// The node type stores the data and two pointers.
//
// It uses Option to represent nullability in safe Rust. It has zero overhead
// over a null pointer due to the NonZero optimization.
@taitep
taitep / .replit
Created January 20, 2023 13:46
Dart replit config
run = "dart run"
[packager]
language = "dart-pub.dev"
[packager.features]
packageSearch = true
guessImports = false
[languages.dart]