One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
| ## Core Principles | |
| 1. EXPLORATION OVER CONCLUSION | |
| - Never rush to conclusions | |
| - Keep exploring until a solution emerges naturally from the evidence | |
| - If uncertain, continue reasoning indefinitely | |
| - Question every assumption and inference |
| // -*- SHARED -*- | |
| SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator | |
| COMBINE_HIDPI_IMAGES = YES | |
| INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks | |
| SKIP_INSTALL = YES | |
| COPY_PHASE_STRIP = NO | |
| IPHONEOS_DEPLOYMENT_TARGET = 14.0 | |
| MACOSX_DEPLOYMENT_TARGET = 10.15 | |
| TVOS_DEPLOYMENT_TARGET = 14.0 |
| import XCTest | |
| // Requires a recent Swift 4 snapshot toolchain (Xcode 9 beta 2 not new enough) | |
| public indirect enum JSONValue: Decodable { | |
| case double(Double) | |
| case string(String) | |
| case bool(Bool) | |
| case dictionary([String: JSONValue]) | |
| case array([JSONValue]) |
| fileprivate func directoryExistsAtPath(_ path: String) -> Bool { | |
| var isDirectory = ObjCBool(true) | |
| let exists = FileManager.default.fileExists(atPath: path, isDirectory: &isDirectory) | |
| return exists && isDirectory.boolValue | |
| } |
| // | |
| // CoreDataController.swift | |
| // | |
| // Created by Keith Harrison http://useyourloaf.com | |
| // Copyright (c) 2017 Keith Harrison. All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // | |
| // 1. Redistributions of source code must retain the above copyright |
| import Cocoa | |
| struct Person { | |
| var name: String = "John" | |
| var age: Int = 50 | |
| var dutch: Bool = false | |
| var address: Address? = Address(street: "Market St.") | |
| } | |
| struct Address { |
| import Foundation | |
| /// Find first differing character between two strings | |
| /// | |
| /// :param: s1 First String | |
| /// :param: s2 Second String | |
| /// | |
| /// :returns: .DifferenceAtIndex(i) or .NoDifference | |
| public func firstDifferenceBetweenStrings(s1: NSString, s2: NSString) -> FirstDifferenceResult { |
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 14, | |
| // font family with optional fallbacks |
| - (CGRect)rectForSubstringWithRange:(NSRange)range | |
| { | |
| /* Core Text methods that seem somewhere in the neighborhood of useful: | |
| CTRunGetPositionsPtr | |
| CTRunGetPositions | |
| CTRunGetImageBounds | |
| CTLineGetStringRange | |
| CTLineGetOffsetForStringIndex | |
| CTLineGetImageBounds |