This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:bloc/bloc.dart'; | |
import 'package:flutter/widgets.dart'; | |
// interface to close something | |
abstract class AppClosable { | |
void close(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Connect4Chips = '🔴' | '🟡'; | |
type Connect4Cell = Connect4Chips | ' '; | |
type Connect4State = '🔴' | '🟡' | '🔴 Won' | '🟡 Won' | 'Draw'; | |
type EmptyBoard = [ | |
[" ", " ", " ", " ", " ", " ", " "], | |
[" ", " ", " ", " ", " ", " ", " "], | |
[" ", " ", " ", " ", " ", " ", " "], | |
[" ", " ", " ", " ", " ", " ", " "], | |
[" ", " ", " ", " ", " ", " ", " "], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import AVFoundation | |
import CoreML | |
import Vision | |
struct ContentView: View { | |
@ObservedObject var cameraManager = CameraManager() | |
var body: some View { | |
VStack { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import AVFoundation | |
import CoreML | |
import Vision | |
struct ContentView: View { | |
@ObservedObject var cameraManager = CameraManager() | |
var body: some View { | |
VStack { |
OlderNewer