Skip to content

Instantly share code, notes, and snippets.

View runkaiz's full-sized avatar
🏠
Working from home

Runkai Zhang runkaiz

🏠
Working from home
View GitHub Profile
@runkaiz
runkaiz / gist:b345705378263da5a149d7b4feceabe0
Last active October 15, 2025 20:45
Bookkeeper Privacy Policy

Privacy Policy

This privacy policy applies to the Bookkeeper: Receipt Manager app (hereby referred to as "Application") for mobile devices that was created by Runkai Zhang (hereby referred to as "Service Provider") as a Free service. This service is intended for use "AS IS".

What information does the Application obtain and how is it used?

The Application does not obtain any information when you download and use it. Registration is not required to use the Application.

Does the Application collect precise real time location information of the device?

let John = Person(name: "John", birthday: "03/02/1985", sex: .female, relatives: nil, uniId: "John3srd")
let James = Person(name: "James", birthday: "06/22/2009", sex: .male, relatives: [John:"Parent"], uniId: "James1st")
var sex: sexType?
init(name: String?, birthday: String?, sex: sexType?, relatives: [Person:String]?, uniId: String) { //… }
enum sexType {
case female
case male
}
let John = Person(name: "John", birthday: "03/02/1985", sex: "Femle", relatives: nil, uniId: "John3srd")
@runkaiz
runkaiz / Add John
Created November 18, 2019 03:00
Adding John.
John.addRelative(James, relation: "child")
@runkaiz
runkaiz / add-relative.swift
Created November 18, 2019 02:59
Adding relatives.
func addRelative(_ person: Person, relation: String) {
self.relatives?[person] = relation
}
@runkaiz
runkaiz / james.swift
Created November 18, 2019 02:58
James
let James = Person(name: "James", birthday: "06/22/2009", sex: "Male", relatives: [John:"Parent"], uniId: "James1st")
@runkaiz
runkaiz / john.swift
Last active November 18, 2019 02:58
John
let John = Person(name: "John", birthday: "03/02/1985", sex: "Female", relatives: nil, uniId: "John3srd")
@runkaiz
runkaiz / Person-Init.swift
Created November 18, 2019 02:55
Person Initialization.
init(name: String?, birthday: String?, sex: String?, relatives: [Person:String]?, uniId: String) {
self.name = name
self.birthday = birthday
self.sex = sex
self.relatives = relatives
self.uniId = uniId
}