Skip to content

Instantly share code, notes, and snippets.

View gaeng2y's full-sized avatar
🦖
Mai Paura

Kyeongmo Yang gaeng2y

🦖
Mai Paura
View GitHub Profile
@gaeng2y
gaeng2y / example.js
Created April 20, 2022 04:45
어떤
function djkfdjkl() {
}
@gaeng2y
gaeng2y / func.swift
Created April 26, 2022 04:37
function example
func name(param: type) -> return type {
return value
}
@gaeng2y
gaeng2y / if.swift
Created April 26, 2022 04:38
if example
if condition {
~~~
} else if {
~~~
} else {
~~~
}
@gaeng2y
gaeng2y / switch.swift
Created April 26, 2022 04:38
switch example
switch state {
case pattern:
case pattern:
default:
case 이외
}
@gaeng2y
gaeng2y / for.swift
Created April 26, 2022 04:39
for example
for seq in iterate {
~~~
}
@gaeng2y
gaeng2y / while.swift
Created April 26, 2022 04:39
while example
repeat {
// body
} while condition {
// body
}
@gaeng2y
gaeng2y / while.swift
Created April 26, 2022 04:43
while example
repeat {
// body
} while condition {
// body
}
@gaeng2y
gaeng2y / struct.swift
Created April 26, 2022 04:47
Struct example
struct name {
// properties and method
}
@gaeng2y
gaeng2y / class.swift
Created April 26, 2022 04:47
class example
class name {
// properties and method
}
@gaeng2y
gaeng2y / structInit.swift
Created April 26, 2022 04:48
struct init
struct User {
var nickname: String
var age: Int
init(nickname: String, age: Int) {
// init
self.nickname = nickname
self.age = age
}
}