Skip to content

Instantly share code, notes, and snippets.

@simonminton
simonminton / CountryCodes.swift
Last active October 26, 2023 12:41
Countries with Names, Emoji Flags, ISO Code and Dial Codes for Swift
//
// CountryCodes.swift
// Created by Simon Minton on 26/10/2023.
//
import Foundation
struct Country: Identifiable, Hashable {
let id = UUID()
let name: String
@simonminton
simonminton / tailwind-breakpoint-indicator.html
Created October 20, 2020 08:13
Add an indicator for current breakpoint in TailwindCSS. Place directly after the <body> tag.
<div class="fixed top-0 left-0 w-8 h-8 bg-red-700 text-white flex justify-center items-center" style="z-index: 99999999">
<div class="flex sm:hidden">XS</div>
<div class="hidden sm:flex md:hidden">SM</div>
<div class="hidden md:flex lg:hidden">MD</div>
<div class="hidden lg:flex xl:hidden">LG</div>
<div class="hidden xl:flex">XL</div>
</div>