Skip to content

Instantly share code, notes, and snippets.

View borisyurkevich's full-sized avatar

Boris Yurkevich borisyurkevich

View GitHub Profile
@nicklockwood
nicklockwood / OSKit.swift
Created January 28, 2023 11:32
A lightweight approach to writing cross-platform code in SwiftUI without a lot of conditional compilation blocks
import SwiftUI
enum OSDocumentError: Error {
case unknownFileFormat
}
#if canImport(UIKit)
import UIKit
@otto-schnurr
otto-schnurr / ios-logging.md
Last active March 27, 2021 07:47
Notes: iOS Unified Logging

From WWDC 2016: Unified Logging and Activity Tracing.

Apple Recommendations

  • os_log: Critical details for debugging issues.
  • os_log_info: Additional information to embed in error or fault reports.
  • os_log_debug: Optional, high-volume information that can be explicitly turned on during development.
  • os_log_error: Additional app information is bundled into the log message.
  • os_log_fault: Additional system information is bundled into the log message.
@robrecord
robrecord / Export Evernote to Day One.scpt
Last active May 7, 2019 22:55
Migrate selected Evernote notes to Day One. Supports tags. Supports pandoc to convert to markdown. No support for attachments yet. Original version at http://veritrope.com/code/export-evernote-items-to-day-one/
(*
◸ Veritrope.com
Export Evernote Items to DayOne
VERSION 0.98.2
December 18, 2015
// UPDATE NOTICES
** Follow @Veritrope on Twitter, Facebook, Google Plus, and ADN for Update Notices! **
// SUPPORT VERITROPE!
ACTION
AD_HOC_CODE_SIGNING_ALLOWED
ALTERNATE_GROUP
ALTERNATE_MODE
ALTERNATE_OWNER
ALWAYS_SEARCH_USER_PATHS
ALWAYS_USE_SEPARATE_HEADERMAPS
APPLE_INTERNAL_DEVELOPER_DIR
APPLE_INTERNAL_DIR
APPLE_INTERNAL_DOCUMENTATION_DIR