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
View skylight
0000000000253db8 s GCC_except_table1026
0000000000253de4 s GCC_except_table1096
0000000000253e10 s GCC_except_table1097
0000000000253e3c s GCC_except_table1243
0000000000253e68 s GCC_except_table1245
0000000000253e88 s GCC_except_table1247
0000000000253ec4 s GCC_except_table1249
0000000000253ee4 s GCC_except_table1252
0000000000253f10 s GCC_except_table1253
0000000000253f3c s GCC_except_table2726
View example1.swift
import UIKit
import XCPlayground
class ViewController: UIViewController {
func action() { print("Bing!") }
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .whiteColor()
View #iphonedev README and FAQ.md

ASK A SPECIFIC QUESTION

How To Get Answers

Ask your question and then be patient. Tell us what you want to happen, what is actually happening, and include any error messages you find:

  • Provide a scenario. "I am trying to do X, I do so by calling APIs W and Y, but Z happens instead. I see the following error messages:..."
  • Focus on the goal. Ask about what you're trying to achieve (the big story) rather than the specific technical detail that you believe is holding you back.
  • Don't solicit help. Don't say, "Does anyone here know about (for example) Core Foundation". Just ask your question.
  • Do your homework. Search the web before asking in-channel.
  • Be courteous Don't just paste Stack Overflow questions in-channel.
  • Remember the topic Refer questions about third party libraries to their developers.
View ModalDetail.swift
import PlaygroundSupport
import SwiftUI
struct LiveView: View {
@State var isPresented = false
var modalPresentation: some View {
NavigationView {
Text("Hello World")
.font(.caption)
View 1_Cozmo.py
import sys
from enum import *
import cozmo
from cozmo.util import degrees
from Triggers import *
# Log Error
def error(message):
print("*********************ERROR:", message)
View CrossPlatformDefines.swift
/*
Erica Sadun, http://ericasadun.com
Cross Platform Defines
Apple Platforms Only
Will update to #if canImport() when available
*/
View Angle+Trig.swift
// Angle+Trig.swift
// SwiftPlaneGeometry
#if os(Linux)
/// #error No Linux Support
#else
import Darwin
#endif
extension Angle {
View Touch.swift
import PlaygroundSupport
import SwiftUI
extension View {
public func offset(by offset: CGPoint) -> Self.Modified<_OffsetEffect> {
self.offset(x: offset.x, y: offset.y)
}
}
struct LiveView : View {
View micestocksrounded.swift
import PlaygroundSupport
import SwiftUI
struct MouseState {
var corded = 0
var cordless = 0
var magic = 0
var total: Int {
return corded + cordless + magic
}
View micestocks.swift
import PlaygroundSupport
import SwiftUI
struct MouseState {
var corded = 0
var cordless = 0
var magic = 0
var total: Int {
return corded + cordless + magic
}
You can’t perform that action at this time.