This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//가변적인 인자에 대한 커리 함수를 만드는 것은 까다롭기 때문에 3개 인자로 고정된 커리 함수로 변환하는 함수 | |
const curry3 = | |
<A, B, C, D>(f: (a: A, b: B, c: C) => D) => | |
(a: A) => | |
(b: B) => | |
(c: C) => | |
f(a, b, c); | |
const curriedDelivery = curry3(delivery); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//가변적인 인자에 대한 커리 함수를 만드는 것은 까다롭기 때문에 3개 인자로 고정된 커리 함수로 변환하는 함수 | |
const curry3 = | |
<A, B, C, D>(f: (a: A, b: B, c: C) => D) => | |
(a: A) => | |
(b: B) => | |
(c: C) => | |
f(a, b, c); | |
const curriedDelivery = curry3(delivery); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const delivery = (present: string) => (from: string) => (to: string) => { | |
return ` | |
보내는 물건: ${present} | |
보내는 사람: ${from} | |
받는 사람: ${to} | |
`; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//<A,B,C>((B) => C, (A) => B) => (A) => C | |
export const compose = <A,B,C>(g:(y:B) => C, f: (s: A) => B) => (x:A) => { | |
return g(f(x)); | |
} | |
export function getPrice(name: string): number | undefiend { | |
if (name === "tomato") return 7000; | |
else if (name === "orange") return 15000; | |
else if (name === "apple") return 10000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const delivery => (present: string, from: string) => (to: string) => { | |
return ` | |
보내는 물건: ${present} | |
보내는 사람: ${from} | |
받는 사람: ${to} | |
` | |
} | |
const momsPresent = delivery('상품권', '엄마') | |
momsPresent("아들"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const delivery = (present: string, from: string, to: string) => { | |
return ` | |
보내는 물건: ${present} | |
보내는 사람: ${from} | |
받는 사람: ${to} | |
` | |
} | |
delivery('상품권', '엄마', '아들'); | |
delivery('상품권', '엄마', '딸'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:DescribeNetworkInterfaces", | |
"ec2:CreateNetworkInterface", | |
"ec2:DeleteNetworkInterface", | |
"ec2:DescribeInstances", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": ["logs:CreateLogStream", "logs:CreateLogGroup"], | |
"Resource": ["*"], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": ["logs:PutLogEvents"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudformation:CreateStack", | |
"cloudformation:Describe*", | |
"cloudformation:ValidateTemplate", | |
"cloudformation:DeleteChangeSet", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🌞 Morning 81 commits █▊░░░░░░░░░░░░░░░░░░░ 8.9% | |
🌆 Daytime 317 commits ███████▎░░░░░░░░░░░░░ 34.9% | |
🌃 Evening 489 commits ███████████▎░░░░░░░░░ 53.9% | |
🌙 Night 21 commits ▍░░░░░░░░░░░░░░░░░░░░ 2.3% |