This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// METHOD 1 : simple thinking | |
var playerSelection = "" // possible values are r,p,s | |
var cpuSelection = "" // possible values are r,p,s | |
var resultString = "" | |
if(playerSelection == "r") | |
{ | |
if(cpuSelection == "r") | |
{ | |
resultString = "draw" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import ObjectMapper | |
class Basic: Mappable { | |
required init?(map: Map){} | |
var success: String? | |
var responseCode: Int? | |
func mapping(map: Map) { | |
success <- map["success"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dict> | |
<key>NSAllowsArbitraryLoads</key> | |
<true/> | |
</dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
@IBDesignable class CardView: UIView { | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
setup() | |
} | |
required init?(coder aDecoder: NSCoder) { | |
super.init(coder: aDecoder) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
public func print(_ items: Any..., separator: String = " ", terminator: String = "\n") { | |
#if DEBUG | |
let output = items.map { "\n⚠️ YourAppName \($0)" }.joined(separator: separator) | |
Swift.print(output, terminator: terminator) | |
#else | |
if(Environment.allowPrint == "1"){ | |
let output = items.map { "\n⚠️ YourAppName \($0)" }.joined(separator: separator) | |
Swift.print(output, terminator: terminator) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Zazu: Hi Diana, I heard that you're an expert in accessibility. I'm still new to this and I have a lot of questions about it. | |
Diana: Hi Zazu, yes, I've been working on accessibility for a while now. What do you want to know? | |
Zazu: First off, why is accessibility important? | |
Diana: Accessibility is important because it ensures that all users can access and benefit from digital products, regardless of their abilities or disabilities. This includes individuals with visual, auditory, or motor impairments, as well as those with cognitive or learning disabilities. Additionally, many countries have laws requiring digital products to meet certain accessibility standards. | |
Zazu: I see. So how do we make our products accessible? |