Skip to content

Instantly share code, notes, and snippets.

@adam-rocska
adam-rocska / operators+throwIfOptional.swift
Last active March 30, 2022 13:25
A Swift operator unwrapping & returning an optional value if it exists, while throwing an error if it doesn't.
// TODO: Depend on https://github.com/21GramConsulting/Beton instead
@peterfriese
peterfriese / Color+Codable.swift
Created March 19, 2021 11:00
Making Swift's Color codable
//
// Color+Codable.swift
// FirestoreCodableSamples
//
// Created by Peter Friese on 18.03.21.
//
import SwiftUI
// Inspired by https://cocoacasts.com/from-hex-to-uicolor-and-back-in-swift
@heestand-xyz
heestand-xyz / highlight-js_xcode-dark-mode.css
Last active December 23, 2023 05:13
Highlight.js - Style Sheet - Xcode Dark Mode
/*
//
// xcode-dark-mode.css
// Xcode Dark Mode
//
// Created by Hexagons on 2020-06-11.
// http://hexagons.net/
//
*/