Skip to content

Instantly share code, notes, and snippets.

View 1amageek's full-sized avatar
🎈
🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺

1amageek 1amageek

🎈
🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺
View GitHub Profile
@DevAndArtist
DevAndArtist / reimplemented_parts_of_swiftui.swift
Last active May 29, 2023 14:55
This is a custom implementation of some parts of SwiftUI which I could observe.
import CoreGraphics
final class TransactionStack {
static let shared = TransactionStack()
private var _transactions: [Transaction]
private init() {
dispatchPrecondition(condition: .onQueue(.main))
_transactions = []
final class Loader: BindableObject {
let didChange = PassthroughSubject<Data?, Never>()
var task: URLSessionDataTask!
var data: Data? = nil {
didSet {
didChange.send(data)
}
}
init(_ url: URL) {
@voluntas
voluntas / webrtc.rst
Last active October 29, 2024 04:43
WebRTC コトハジメ
// オフセットが変換した(スクロールした)
- (void)scrollViewDidScroll:(UIScrollView *)scrollView;
// ズームした
- (void)scrollViewDidZoom:(UIScrollView *)scrollView NS_AVAILABLE_IOS(3_2);
// ドラッグがはじまっった。
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView;
@incredimike
incredimike / variousCountryListFormats.js
Last active October 25, 2024 12:36
List of Countries in various Javascript data structures: Alphabetical country lists & Country data objects.
// Lists of countries with ISO 3166 codes, presented in various formats.
// Last Updated: July 30, 2020
// If you're using PHP, I suggest checking out:
// https://github.com/thephpleague/iso3166
// or Laravel: https://github.com/squirephp/squire
//
// JS developers can check out:
// https://www.npmjs.com/package/iso3166-2-db
//