전체 글
-
CoreData - Unit Test카테고리 없음 2021. 11. 21. 00:15
I've got a simple employee manager which basically just creates a simple view context this is the main view context which for 99 % of all cases when you're building apps with core data this is goint to be fine this is the main thread that we're working against with core data everything's going to be read and written to it. so this manager simply creates employees fetches employees updates and de..
-
Deep Memo ( 미완성 )미완성 2021. 11. 21. 00:14
// // Memo.swift // DeepMemo // // Created by bcs on 2021/10/13. // import Foundation class Memo { var title: String var content: String var parent: Folder? public init() { self.title = "" self.content = "" self.parent = nil } } class Folder { var folders: [Folder] var name: String var memos: [Memo] let parent: Folder? public init() { self.folders = [] self.name = "" self.memos = [] self.parent ..
-
Human Interface Guidelines - Bars - Sidebars (미완성)미완성 2021. 11. 21. 00:14
Sidebars Sidebar 는 app-level 의 navigation 과 앱 내의 top-level collections of content 로의 빠른 접근을 할 수 있도록 한다. Sidebar 내 item 을 선택함으로써 그 부분의 content 로 쉽게 접근할 수 있다. 예를들어, Mail 에서의 sidebar 는 mailboxes 의 list 를 보여주고, 각 mailbox 를 선택하면 거기에 있는 messages 에 접근할 수 있으며, 특정한 message 를 content pane 에 보이도록 선택할 수 있다. You create a sidebar by using a sidebar-style list and placing it in the primary column of a split vi..
-
Combine_Chap3_TransformingOperatorsCombine 2021. 11. 21. 00:13
import UIKit import Combine import Foundation var subscriptions = Set() func example(of name: String, closure: @escaping () -> Void) { print("-------------------- \(name) --------------------") closure() } example(of: "collection") { // var subscriptions = Set() ["A","B","C","D","E"].publisher // .collect() .collect(2) .sink(receiveCompletion: {print($0)}, receiveValue: {print($0)}) .store(in: &..
-
Swift - CombineCombine 2021. 11. 16. 14:04
Section I: Introduction to Combine Chapter 1: Hello, Combine! Chapter 2: Publishers & Subscribers Section II: Operators Chapter 3: Transforming Operators Chapter 4: Filtering Operators Chapter 5: Combining Operators Chapter 6: Time Manipulation Operators Chapter 7: Sequence Operators Chapter 8: In Practice: Project "Collage" Section III: Combine in Action Chapter 9: Networking Chapter 10: Debugg..
-
-
MongoDB 관련 tool , WebsiteBackEnd/MongoDB 2021. 11. 12. 20:37
Compass: GUI mongoDB Editor Atlas : hosting service mongoose quries: https://mongoosejs.com/docs/queries.html Mongoose v6.0.12: Queries Mongoose models provide several static helper functions for CRUD operations. Each of these functions returns a mongoose Query object. A mongoose query can be executed in one of two ways. First, if you pass in a callback function, Mongoose will execute the mongoo..
-
MongoDB Basics (in terminal)BackEnd/MongoDB 2021. 11. 12. 20:31
설치과정은 버전이 바뀔 때마다 업데이트되고 Mac, Windows 에 따라 다르므로 공식 문서 또는 Youtube, Stack overflow 참고 바람.. mongo start database use change working database. If it doesn't exist, make new one show dbs show all the databases. show collections In the current working database, show all the collections. db.,insertOne({}) db..insertMany([{}, {}] db.tours.insertMany( [ {name: "The Sea Explorer", price: 497, rating: 4.8},..