Skip to content

Instantly share code, notes, and snippets.

View robertvunabandi's full-sized avatar

Robert M. Vunabandi robertvunabandi

View GitHub Profile
//
// DataType.swift
// Reading Journal
//
//
import Foundation
enum DataType: CaseIterable {
case beta
//
// DataStoreSeeding.swift
// Reading Journal
//
//
/// For debugging purposes when using Swift Previews, we may want
/// the data store to be loaded with some preliminary data. This enum,
/// ``DataStoreSeeding``, is what will represent that starting data.
///
//
// AuthorsDataFetcher.swift
// Reading Journal
//
//
import Foundation
final class AuthorsDataFetcher: DataFetcher {
typealias Store = AuthorsDataStore
//
// AuthorsDataStore.swift
// Reading Journal
//
//
import SwiftUI
final class AuthorsDataStore: SingleInstanceDataStore {
typealias Fetcher = AuthorsDataFetcher
//
// DataFetcher.swift
// Reading Journal
//
//
import Foundation
protocol DataFetcher {
/// An associated type for this ``DataFetcher``, which links it to a
//
// DataStore.swift
// Reading Journal
//
//
import Foundation
/// The job of a ``DataStore`` is simply to store the data that's been fetched
/// and organize it. The data store's data is managed using a Singleton pattern,
//
// NetworkRequest.swift
// Reading Journal
//
//
import Foundation
extension Network {
/// This represents a network request. This class is what does the work of
//
// NetworkResource.swift
// Reading Journal
//
import Foundation
// MARK: Base NetworkResource Protocol
/**
@robertvunabandi
robertvunabandi / most-visited-countries.csv
Created July 2, 2025 01:53
Most visited countries along with their Henley Index, Accessibility Index, and other metrics. Sources: https://www.netspend.com/blog/top-10-most-visited-countries and https://www.henleyglobal.com/passport-index/ranking.
Country Henley Index Visitors in 2023 Revenue Accessibility Index # Passports Needing a Visa Continents
France 189 100M $68.6B 93 106 Europe
Spain 189 85.17M $92B 93 106 Europe
United States 182 66.48M $175.9B 46 153 North America
Italy 189 57.25M $55.9B 93 106 Europe
Türkiye 114 55.16M $49.5B 110 89 Europe & Asia
Mexico 158 42.15M $30.8B 67 132 North America
United Kingdom 186 37.22M $73.9B 88 111 Europe
Germany 189 34.8M $37.4B 93 106 Europe
Greece 187 32.74M $22.3B 93 106 Europe
@robertvunabandi
robertvunabandi / gist:3041f037b3cb0da1dc3d1dcdaa31270a
Last active June 28, 2025 23:00
A list of "world destinations"—places you can travel to in the world. Though usually countries with passports, some of these places are territories that do not formally have a passport. This was extracted from https://www.henleyglobal.com/passport-index/ranking, and the data is as of June 28, 2025.
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antigua and Barbuda
Argentina
Armenia