Skip to content

Instantly share code, notes, and snippets.

View mymmrac's full-sized avatar
🙃
Don't worry, be happy!

Artem Yadelskyi mymmrac

🙃
Don't worry, be happy!
View GitHub Profile
@mymmrac
mymmrac / interpreter.py
Last active May 8, 2024 18:21
Math expression interpreter in Python (supports unary and binary oprations)
from __future__ import annotations
import math
from enum import Enum
from typing import List
class TokenType(Enum):
LPAREN = 1
RPAREN = 2
@mymmrac
mymmrac / main.go
Created February 19, 2024 10:34
Go Mods [Ebiten + WASI]
package main
import (
"context"
_ "embed"
"fmt"
"image/color"
"os"
"os/signal"
"sync"
@mymmrac
mymmrac / go.mod
Created November 3, 2023 19:57
Go, Lua and JS interpreters in Go
module interpreters
go 1.21
require (
github.com/dop251/goja v0.0.0-20231027120936-b396bb4c349d
github.com/mymmrac/x v0.0.0-20231103184157-cf259b37ba38
github.com/traefik/yaegi v0.15.1
github.com/yuin/gopher-lua v1.1.0
)
@mymmrac
mymmrac / nf-random.go
Last active September 12, 2022 19:07
Go code to peek N random Nerd Font icons
package main
import (
"fmt"
"math/rand"
"strconv"
"strings"
"time"
)