just the bare necessities of state management.
Hotlink it from https://unpkg.com/valoo
.
# coding: utf-8 | |
from UIKit import * | |
from Foundation import * | |
from ctypes import * | |
libobjc = CDLL('/usr/lib/libobjc.dylib') | |
QLPreviewController = ObjCClass('QLPreviewController') |
AddressBookUI.framework | |
( | |
"com.apple.people-picker" | |
) | |
AudioToolbox.framework | |
( | |
"com.apple.AudioUnit", | |
"com.apple.AudioUnit-UI" |
// This file is an abstract representation of code that I use extensively in my apps | |
// for constructing and maintaining views. The reason the `private` keyword is used here | |
// is to control the interface between two entities (a function and a class) which typically | |
// reside in the same file. | |
// | |
// The function and the class implement a View-Binding and a View-Model. The two are largely | |
// representations of the *same* concepts – the latter from data perspective and the former | |
// from a view-infrastructure perspective. Their inter-relatedness makes it highly desirable to | |
// place them both in the same file – they may share many small types between them and they | |
// are perpetually co-evolving. |
just the bare necessities of state management.
Hotlink it from https://unpkg.com/valoo
.
# Change the variables MY_ID and SERVER_FILE_PATH, and run this file | |
# The summary will be generated as soon as a game starts | |
import sys | |
import time | |
import os | |
import re | |
import requests | |
from multiprocessing import Pool | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler |
import SwiftUI | |
import Charts | |
import Combine | |
import Foundation | |
final class GameState: ObservableObject { | |
struct Player { | |
var position: Int | |
var halfSize: Int = 150 |