일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Context
- route
- queue
- css
- component
- server
- React
- c++
- routes
- state
- bit
- MySQL
- BinaryTree
- Callback
- array
- leetcode
- 비트연산
- JSX
- node.js
- priority_queue
- event
- count
- Navigation
- axios
- DP
- Props
- treenode
- map
- nodeJS
- UE5
- Today
- Total
목록전체 글 (94)
우사미 코딩
struct ContentView: View { @StateObject var carStore: CarStore = CarStore(cars: carData) @State private var path = NavigationPath() var body: some View { NavigationStack(path: $path) { List { ForEach(0.. NavigationStack 및 NavigationPath는 SwiftUI에서 iOS 16 및 macOS 13 Ventura 이상에서 도입된 새로운 네비게이션 시스템입니다. 이는 기존의 NavigationView와 NavigationLink를 대체하거나 보완하는 역..

struct ContentView: View { var body: some View { Button(action : { Task{ await doSomething() } }) { Text("Do Something") } } func doSomething() async { print("start \(Date())") await takesTooLong() print("End \(Date())") } func takesTooLong() async { print("takesTooLong") ..

import SwiftUIstruct ContentView: View { @StateObject var demoData: DemoData = DemoData() let speedsetting = SpeedSetting() var body: some View { Text("") VStack{ SpeedControlView() SpeedDisplayView() } .environmentObject(speedsetting) }}class SpeedSetting: ObservableObject { @Published var speed = 0.0}struct SpeedControlView: View..

struct ContentView: View { @State private var wifiEnabled = true @State private var userName = "" var body: some View { VStack { Text(userName) Toggle(isOn : $wifiEnabled){ Text("enalble wi-fi") } TextField("Enter user name", text: $userName) WifiImageView(wifi: $wifiEnabled) ..
@State var myLayout: AnyLayout = AnyLayout(VStackLayout()) var body: some View { VStack{ myLayout { Image(systemName: "goforward.10") .resizable() .aspectRatio(contentMode: .fit) Image(systemName: "goforward.10") .resizable() .aspectRatio(contentMode: .fit) } ..
1. react-router-dom 설치 npm install react-router-dom 2. Router를 사용하는 모든 페이지는 Router태그로 감싸고 Routes 설정하기 path에는 경로를 넣고, 이 경로에 해당하는 페이지를 렌더링 하려면 element로 그 페이지를 설정해줘야함 나는 HeaderPage에서 그 링크를 제공하고 있어서 HeaderPage도 Router안에 넣었음 import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; import { HeaderPage } from "./page/HeaderPage"; import { MainPage } from "./page/MainPage"; import { Si..
A, E, I, O, U로 시작하는 CITY를 중복없이 SELECT하기 SELECT DISTINCT CITY FROM STATION WHERE SUBSTRING(CITY,1,1) in('A','E','I','O','U'); SUBSTRING(string, start, length)

Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table. The STATION table is described as follows: For example, if there are three records in the table with CITY values 'New York', 'New York', 'Bengalaru', there are 2 different city names: 'New York' and 'Bengalaru'. The query returns , because . 이 이미지에는 데이터베이스의 'STATION' 테이..