Skip to content

Instantly share code, notes, and snippets.

Erica Sadun erica

Block or report user

Report or block erica

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@erica
erica / Proposal.md
Last active Mar 29, 2018 — forked from davedelong/Proposal.md
Proposal: SetProtocol
View Proposal.md

Adding the SetProtocol Protocol to Swift

  • Proposal: SE-TBD
  • Author(s): Dave DeLong
  • Review manager: TBD
  • Status: TBD
View Phone Words II.swift
import Cocoa
// Missing isWord
func isWord(string: String) -> Bool {
if let _ = Int(string) { return false }
let range = NSSpellChecker.shared().checkSpelling(of: string, startingAt: 0)
return range.location == NSNotFound
}
/*:
View faketoolchain.sh
#!/bin/sh
set -e
NINJA_RELEASE_ASSERT_DIR="${HOME}/Documents/workspaces/xcode/github/apple/build/Ninja-ReleaseAssert"
SOURCE_ROOT="${HOME}/Documents/workspaces/xcode/github/apple"
echo "Updating sources (except SwiftPM)"
${SOURCE_ROOT}/swift/utils/update-checkout --skip-repository swiftpm
echo "Done updating sources"
You can’t perform that action at this time.