Skip to content

Instantly share code, notes, and snippets.

Nimony + raylib Tic-Tac-Toe

A minimal, single-file Tic-Tac-Toe game in Nim using raylib. It demonstrates a multi-threaded setup with a custom FFI wrapper for the shared library.

Prerequisites

  • Nimony compiler
  • A C compiler and raylib development libraries. See the official raylib wiki for platform-specific setup instructions.

Build & Run

Nimony + raylib Tic-Tac-Toe

A minimal, single-file Tic-Tac-Toe game in Nim using raylib. It demonstrates a multi-threaded setup with a custom FFI wrapper for the shared library.

Prerequisites

  • Nimony compiler
  • A C compiler and raylib development libraries. See the official raylib wiki for platform-specific setup instructions.

Build & Run

@planetis-m
planetis-m / MakeExamples.md
Created October 28, 2025 14:39
Prompts for Nimony release announcement

Prompt: Demonstration Example Generator

You are an AI assistant tasked with writing a demonstration code example showcasing the currently working features of the Nimony toolchain and standard library ports. This example is aimed at experienced programmers who prefer clarity and grounded demonstrations over hype.

Important: You must only use features and modules that are confirmed working in the implementation state described in the extracted feature list. Do not assume or invent features.

I will provide:

  1. A feature list of constructs currently working
@planetis-m
planetis-m / example1.nim
Last active October 30, 2025 20:28
Demonstration examples for nimony
import std / [syncio, tables, hashes, intsets, assertions]
type
Point = object
x, y: int
Drawable = concept
proc draw(p: Self)
proc draw(p: Point) =
#!/bin/bash
# Custom toolbox container for ESP-IDF development
# From: https://discussion.fedoraproject.org/t/creating-toolbx-with-custom-settings/37067
# Configuration
toolbox_name="esp-42-dev"
toolbox_hostname="esp-dev"
toolbox_home=$HOME
toolbox_user=$USER
toolbox_shell=$SHELL
import std / [strutils, os, parseopt, sets]
import "$nim" / compiler / [lexer, llstream, pathutils, parser, ast, options, idents, renderer, syntaxes, msgs]
const
Usage = """
Nim AI Documentation Generator
Usage: nimaidoc [options] <input-file>
Options:
FROM registry.fedoraproject.org/fedora-toolbox:42
# Base tools and Python development environment
RUN dnf -y upgrade --refresh && \
dnf -y --setopt=install_weak_deps=False install \
git-credential-libsecret nano git curl wget ca-certificates \
unzip xz tar nodejs nodejs-full-i18n npm \
python3 python3-devel uv \
gcc gcc-c++ make cmake \
libxml2-devel libxslt-devel \

Designer Agent Style Guide (Next.js + shadcn/ui)

Introduction

This style guide defines how the Designer Agent produces UI components for Next.js apps using shadcn/ui. It focuses on accessible, production-ready React components that are easy to hand off to an integration/build agent. The Designer Agent should concentrate on design, composition, and interaction patterns—not on backend logic or data fetching.

Key Principles

  • Accessibility first: ARIA, keyboard support, focus management.
  • Composability: Prefer small, reusable parts and clear extension points.
@planetis-m
planetis-m / fedora_setup.md
Last active November 5, 2025 22:33
New Fedora Workspace Installation Guide

New Fedora Workstation Installation Guide

Author: planetis-m

Download and Boot Fedora ISO

  1. Download the latest Fedora Workstation ISO from Fedora Downloads.
  2. Burn the ISO to a USB drive using Fedora Media Writer or Rufus.
  3. Boot from the USB drive and start the live installation.
FROM registry.fedoraproject.org/fedora-toolbox:42
ARG ESP_IDF_VERSION=v5.5
ENV IDF_GITHUB_ASSETS=dl.espressif.com/github_assets \
IDF_TOOLS_PATH=/opt/.espressif \
PATH=/usr/local/bin:$PATH
# Base tools and compilers
RUN dnf -y upgrade --refresh && \