Skip to content

Instantly share code, notes, and snippets.

View deya-eldeen's full-sized avatar

Deya Eldeen Elkhawaldeh deya-eldeen

View GitHub Profile
/// 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"
}
import Foundation
import ObjectMapper
class Basic: Mappable {
required init?(map: Map){}
var success: String?
var responseCode: Int?
func mapping(map: Map) {
success <- map["success"]
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
import UIKit
@IBDesignable class CardView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setup()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
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)
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?