Skip to content

Instantly share code, notes, and snippets.

View goodmorningcody's full-sized avatar

Cody goodmorningcody

  • AI Startup
  • Seongnam, Republic of Korea
View GitHub Profile
@goodmorningcody
goodmorningcody / let_and_var.swift
Last active April 18, 2016 13:09
스위프트 변수와 상수
let year = 2016
let name = "Cody"
var age = 20
var born = year-age+1
@goodmorningcody
goodmorningcody / let_with_error.swift
Last active April 19, 2016 12:35
스위프트 let과 var의 차이
let year = 2016
let name = "Cody"
var age = 20
var born = year-age+1
year = 2000
age = 30
born = year-age+1
@goodmorningcody
goodmorningcody / var_with_another_value.swift
Last active April 19, 2016 12:36
스위프트 : var에 새로운 값 저장하기
let year = 2016
let name = "Cody"
var age = 20
var born = year-age+1
age = 30
born = year-age+1
@goodmorningcody
goodmorningcody / var_with_another_type.swift
Last active August 29, 2015 14:24
스위프트 : 이미 값이 저장된 변수에 저장된 값과 다른 타입의 값을 저장할 수 없다.
let year = 2015
let name = "Cody"
var age = 20
var born = year-age+1
age = "Cathy"
@goodmorningcody
goodmorningcody / var_and_let_with_type.swift
Last active April 19, 2016 12:36
스위프트 : 변수나 상수에 타입의 명시
let year : Int = 2016
let name : String = "Cody"
var age : Int = 20
var born : Int = year-age+1
@goodmorningcody
goodmorningcody / let_with_type_but_wrong_type_value.swift
Last active April 19, 2016 12:37
스위프트 : 타입 명시 시 다른 타입의 값을 대입 시
let year : Int = "2016"
let name : String = "Cody"
var age : Int = 20
var born : Int = year-age+1
@goodmorningcody
goodmorningcody / int_and_uint.swift
Last active August 29, 2015 14:24
스위프트 : Int와 UInt
let year : Int = 2015
let age : UInt = 20
@goodmorningcody
goodmorningcody / uint_with_minus_value.swift
Last active August 29, 2015 14:24
스위프트 : UInt에 음수의 값이 사용될 경우
let year : Int = 2015
let age : UInt = -20
@goodmorningcody
goodmorningcody / length_of_ints.swift
Last active August 29, 2015 14:24
스위프트 : Int8/16/32/64, UInt8/16/32/64
let minOfInt8 = Int8.min
let maxOfInt8 = Int8.max
let minOfInt16 = Int16.min
let maxOfInt16 = Int16.max
let minOfInt32 = Int32.min
let maxOfInt32 = Int32.max
let minOfInt64 = Int64.min
@goodmorningcody
goodmorningcody / float_and_double.swift
Last active August 29, 2015 14:24
스위프트 : Float과 Double
let pi : Float = 3.1425926
let piWithMoreDetail : Double = 3.1415926535897932