Skip to content

Instantly share code, notes, and snippets.

View vlastachu's full-sized avatar

Vlad Chuprin vlastachu

View GitHub Profile
import 'dart:async';
import 'package:bloc/bloc.dart';
import 'package:flutter/widgets.dart';
// interface to close something
abstract class AppClosable {
void close();
}
@vlastachu
vlastachu / aot-23.ts
Created December 24, 2023 09:12
aot-23
type Connect4Chips = '🔴' | '🟡';
type Connect4Cell = Connect4Chips | ' ';
type Connect4State = '🔴' | '🟡' | '🔴 Won' | '🟡 Won' | 'Draw';
type EmptyBoard = [
[" ", " ", " ", " ", " ", " ", " "],
[" ", " ", " ", " ", " ", " ", " "],
[" ", " ", " ", " ", " ", " ", " "],
[" ", " ", " ", " ", " ", " ", " "],
[" ", " ", " ", " ", " ", " ", " "],
type Alley = " ";
type MazeItem = "🎄" | "🎅" | Alley;
type DELICIOUS_COOKIES = "🍪";
type MazeMatrix = MazeItem[][];
type Directions = "up" | "down" | "left" | "right";
type As<From, To> = From extends To? From : never;
type Num = 1[]
type i<num extends Num> = num['length']
import SwiftUI
import AVFoundation
import CoreML
import Vision
struct ContentView: View {
@ObservedObject var cameraManager = CameraManager()
var body: some View {
VStack {
import SwiftUI
import AVFoundation
import CoreML
import Vision
struct ContentView: View {
@ObservedObject var cameraManager = CameraManager()
var body: some View {
VStack {