From e7b5e478bd9d8d28b0648f158b8220bdd234855a Mon Sep 17 00:00:00 2001 From: Shu Uesugi Date: Sun, 27 Oct 2019 20:31:44 -0700 Subject: [PATCH 1/5] Simplify --- src/contents/0.en.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contents/0.en.tsx b/src/contents/0.en.tsx index 3584dfe11..ab8abc3eb 100644 --- a/src/contents/0.en.tsx +++ b/src/contents/0.en.tsx @@ -283,8 +283,8 @@ export default () => ( And because Y Combinator is a very technical computer science concept,{' '} - he assumed businesspeople (“suits” 👔), who he - didn’t care about, won’t understand what it means. + he assumed businesspeople (“suits” 👔) won’t + understand what it means.

Date: Sun, 27 Oct 2019 20:49:14 -0700 Subject: [PATCH 2/5] Continue with 0 --- src/contents/0.en.tsx | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/contents/0.en.tsx b/src/contents/0.en.tsx index ab8abc3eb..270dd699d 100644 --- a/src/contents/0.en.tsx +++ b/src/contents/0.en.tsx @@ -245,11 +245,11 @@ export default () => ( children: ( <>

- [Y Combinator is] a programming trick. … I wanted to - call it Y Combinator just because I thought the Y - Combinator was a really cool thing. So it would be the - perfect name for picking out the kind of people that we - wanted. + [Y Combinator is] a programming trick. … I + wanted to call it Y Combinator just because I thought + the Y Combinator was a really cool thing. So it would be + the perfect name for picking out the kind of people that + we wanted.

Hackers would look at this and think,{' '} @@ -301,6 +301,15 @@ export default () => ( } /> +

+ But don’t worry:{' '} + + Even if you have no programming background, by the time you + finish this course, you’ll understand what Y Combinator is. + {' '} + 😉 +

+

Let’s now talk about this course!

) } From 79d4554ef6e34c301915c2e535f8d18c12e74b69 Mon Sep 17 00:00:00 2001 From: Shu Uesugi Date: Sun, 27 Oct 2019 20:54:35 -0700 Subject: [PATCH 3/5] Tweak --- src/contents/0.en.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/contents/0.en.tsx b/src/contents/0.en.tsx index 270dd699d..05361d029 100644 --- a/src/contents/0.en.tsx +++ b/src/contents/0.en.tsx @@ -231,8 +231,9 @@ export default () => ( />

In fact: The startup investing firm Y Combinator was{' '} - named after this computer science concept. Paul - Graham, a co-founder of the firm, said this in{' '} + named after this computer science concept.{' '} + 👨🏻‍🦳 Paul Graham, a co-founder of the firm, said this + in{' '} his 2010 interview @@ -270,8 +271,8 @@ export default () => ( ]} />

- Explanation of the above quote: Paul Graham, a - computer scientist,{' '} + 👨🏻‍🦳 Explanation of the above quote:{' '} + Paul Graham, a computer scientist,{' '} wanted to invest in entrepreneurs who are also programmers (“hackers” 😎) @@ -302,16 +303,19 @@ export default () => ( } />

- But don’t worry:{' '} + 😉 But don’t worry:{' '} Even if you have no programming background, by the time you finish this course, you’ll understand what Y Combinator is. - {' '} - 😉 +

Let’s now talk about this course!

) + }, + { + title: <>Y Combinator for Non-programmers, + content: <> } ]} /> From 8b0d60e35b28f5356b969c618f58d99db562da60 Mon Sep 17 00:00:00 2001 From: Shu Uesugi Date: Sun, 27 Oct 2019 21:32:01 -0700 Subject: [PATCH 4/5] Tweak 0 --- src/contents/0.en.tsx | 66 ++++++++++++++++++++++++++++++++----------- 1 file changed, 50 insertions(+), 16 deletions(-) diff --git a/src/contents/0.en.tsx b/src/contents/0.en.tsx index 05361d029..e659bd269 100644 --- a/src/contents/0.en.tsx +++ b/src/contents/0.en.tsx @@ -151,7 +151,7 @@ export default () => ( } }, { - title: <>Start now, or read the introduction, + title: <>Start now or read the introduction, content: ( <>

@@ -165,7 +165,8 @@ export default () => (

🤔{' '} If you want to read the introduction before you get - started, scroll down and keep reading! + started, scroll down and keep reading! The + introduction only takes a few minutes to read.

( NOT talk about this startup investing firm.{' '} Y Combinator is actually the name of{' '} - an important concept in computer science, and + an interesting concept in computer science, and that’s what we’re going to talk about.

@@ -225,7 +226,7 @@ export default () => ( <> Y Combinator is actually the name of
- an important concept in computer science + an interesting concept in computer science } /> @@ -253,12 +254,12 @@ export default () => ( we wanted.

- Hackers would look at this and think,{' '} + Hackers would look at this and think,{' '} “That’s so cool. They’re named after the Y Combinator. There must be something going on here.” {' '} - And suits would look at it and think,{' '} + And suits would look at it and think,{' '} “Y Combinator, what’s that?”

@@ -274,8 +275,8 @@ export default () => ( 👨🏻‍🦳 Explanation of the above quote:{' '} Paul Graham, a computer scientist,{' '} - wanted to invest in entrepreneurs who are also programmers - (“hackers” 😎) + wanted to invest in entrepreneurs who are also programmers (“ + hackers😎) . So he named his investing firm “Y Combinator”, which is a computer science (programming) term, in order to attract hackers. @@ -284,9 +285,10 @@ export default () => ( And because Y Combinator is a very technical computer science concept,{' '} - he assumed businesspeople (“suits” 👔) won’t - understand what it means. - + he assumed businesspeople (“suits”{' '} + 👔) won’t understand what it means + {' '} + and therefore won’t be attracted.

( <> Hackers vs Suits:
- To attract programmers, Paul Graham + To attract programmers
- named his investing firm “Y Combinator”, + but not businesspeople,
- an important computer science concept. + Paul Graham named his investing firm +
+ “Y Combinator” } /> @@ -314,8 +318,38 @@ export default () => ( ) }, { - title: <>Y Combinator for Non-programmers, - content: <> + title: <>Why teach Y Combinator for non-programmers?, + content: <>, + footer: { + content: ( + <> +

For programmers

+

Please ★ star it on GitHub!

+ + ) + } + }, + { + title: <>How to teach Y Combinator for non-programmers, + content: <>, + footer: { + content: ( + <> +

Travel

+ + ) + } + }, + { + title: <>Let’s begin!, + content: <>, + footer: { + content: ( + <> +

About me

+ + ) + } } ]} /> From 0f94f38623ec700e3be2ffa7fa4b674dd5f32452 Mon Sep 17 00:00:00 2001 From: Shu Uesugi Date: Sun, 27 Oct 2019 23:38:47 -0700 Subject: [PATCH 5/5] Add about me --- scripts/copyUsedEmojis.ts | 4 +- src/components/H.tsx | 18 +++++- src/components/Twemoji/1f44b.tsx | 21 +++++++ .../Twemoji/1f468-1f3fb-200d-1f4bb.tsx | 60 +++++++++++++++++++ src/contents/0.en.tsx | 34 ++++++++++- src/lib/emojisBundle.tsx | 4 ++ 6 files changed, 134 insertions(+), 7 deletions(-) create mode 100644 src/components/Twemoji/1f44b.tsx create mode 100644 src/components/Twemoji/1f468-1f3fb-200d-1f4bb.tsx diff --git a/scripts/copyUsedEmojis.ts b/scripts/copyUsedEmojis.ts index 7d4b09e88..719eb3528 100644 --- a/scripts/copyUsedEmojis.ts +++ b/scripts/copyUsedEmojis.ts @@ -106,7 +106,9 @@ const allUsedEmojis = [ '🧠', '📓', '😴', - '🚦' + '🚦', + '👨🏻‍💻', + '👋' ]) ] diff --git a/src/components/H.tsx b/src/components/H.tsx index f6b079392..91cdcc662 100644 --- a/src/components/H.tsx +++ b/src/components/H.tsx @@ -35,7 +35,7 @@ import EmojiNumber from 'src/components/EmojiNumber' import TwitterEmbed from 'src/components/TwitterEmbed' import { shareId, shareVisible } from 'src/lib/twitter' import { dateString, dateSchemaString } from 'src/lib/date' -import { githubRepo, jpBaseUrl, enBaseUrl } from 'src/lib/meta' +import { githubRepo, jpBaseUrl } from 'src/lib/meta' import CustomEmoji from 'src/components/CustomEmoji' import InlinePrioritiesLabel from 'src/components/InlinePrioritiesLabel' import { VariableNames } from 'src/types/VariableNames' @@ -166,6 +166,7 @@ interface HProps { | { name: 'whatTheNumberIsCaption' } | { name: 'runAndShowAllSteps' } | { name: 'ignoreForNow' } + | { name: 'aboutMe' } } const H = ({ args, highlightType, episodeNumberOverrides }: HProps) => { @@ -1136,9 +1137,9 @@ const H = ({ args, highlightType, episodeNumberOverrides }: HProps) => {
ソースコード:{' '} GitHubで公開中 -
+ {/*
英語版:{' '} - 英語版はこちら + 英語版はこちら*/} {args.includeTwitter && ( <>
@@ -1710,6 +1711,17 @@ const H = ({ args, highlightType, episodeNumberOverrides }: HProps) => { ) } } + if (args.name === 'aboutMe') { + if (locale === 'en') { + return ( + <> +

?

+ + ) + } else { + return <> + } + } throw new Error() } diff --git a/src/components/Twemoji/1f44b.tsx b/src/components/Twemoji/1f44b.tsx new file mode 100644 index 000000000..aec2cfa2b --- /dev/null +++ b/src/components/Twemoji/1f44b.tsx @@ -0,0 +1,21 @@ +import * as React from 'react' + +const Svg1F44B = (props: React.SVGProps) => ( + + + + + + + + + +) + +export default Svg1F44B diff --git a/src/components/Twemoji/1f468-1f3fb-200d-1f4bb.tsx b/src/components/Twemoji/1f468-1f3fb-200d-1f4bb.tsx new file mode 100644 index 000000000..69bb7c942 --- /dev/null +++ b/src/components/Twemoji/1f468-1f3fb-200d-1f4bb.tsx @@ -0,0 +1,60 @@ +import * as React from 'react' + +const Svg1F4681F3Fb200D1F4Bb = (props: React.SVGProps) => ( + + + + + + + + + + + + + + + +) + +export default Svg1F4681F3Fb200D1F4Bb diff --git a/src/contents/0.en.tsx b/src/contents/0.en.tsx index e659bd269..7232e8049 100644 --- a/src/contents/0.en.tsx +++ b/src/contents/0.en.tsx @@ -11,10 +11,10 @@ import { P, HighlightBold, Bold, - Italic + Italic, // Ol, // OlLi, - // Hr + Hr } from 'src/components/ContentTags' import Emoji from 'src/components/Emoji' import CustomEmoji from 'src/components/CustomEmoji' @@ -346,7 +346,35 @@ export default () => ( footer: { content: ( <> -

About me

+ Continue reading, + content: ( + <> +

+ 👨🏻‍💻 About me: Sorry for not + introducing myself earlier!{' '} + + I’m Shu Uesugi, a full-stack developer + based in San Francisco Bay Area, USA. + +

+

+ 👋 Available for hire:{' '} + + I’m looking for a{' '} + full-time senior engineering position. + {' '} + Press “Continue reading” below to learn more about me!{' '} + 😉 +

+ + ) + }} + > +
+

?

+
) } diff --git a/src/lib/emojisBundle.tsx b/src/lib/emojisBundle.tsx index 9df10611e..052a283ca 100644 --- a/src/lib/emojisBundle.tsx +++ b/src/lib/emojisBundle.tsx @@ -32,11 +32,13 @@ import Emoji1f3c1 from 'src/components/Twemoji/1f3c1' import Emoji1f3ef from 'src/components/Twemoji/1f3ef' import Emoji1f40d from 'src/components/Twemoji/1f40d' import Emoji1f436 from 'src/components/Twemoji/1f436' +import Emoji1f44b from 'src/components/Twemoji/1f44b' import Emoji1f44d from 'src/components/Twemoji/1f44d' import Emoji1f44e from 'src/components/Twemoji/1f44e' import Emoji1f454 from 'src/components/Twemoji/1f454' import Emoji1f467ZZ1f3fb from 'src/components/Twemoji/1f467-1f3fb' import Emoji1f468ZZ1f3fbZZ200dZZ1f393 from 'src/components/Twemoji/1f468-1f3fb-200d-1f393' +import Emoji1f468ZZ1f3fbZZ200dZZ1f4bb from 'src/components/Twemoji/1f468-1f3fb-200d-1f4bb' import Emoji1f468ZZ1f3fbZZ200dZZ1f9b3 from 'src/components/Twemoji/1f468-1f3fb-200d-1f9b3' import Emoji1f468ZZ1f3fdZZ200dZZ1f4bb from 'src/components/Twemoji/1f468-1f3fd-200d-1f4bb' import Emoji1f468ZZ200dZZ1f3a4 from 'src/components/Twemoji/1f468-200d-1f3a4' @@ -169,11 +171,13 @@ export default { '1f3ef': Emoji1f3ef, '1f40d': Emoji1f40d, '1f436': Emoji1f436, + '1f44b': Emoji1f44b, '1f44d': Emoji1f44d, '1f44e': Emoji1f44e, '1f454': Emoji1f454, '1f467-1f3fb': Emoji1f467ZZ1f3fb, '1f468-1f3fb-200d-1f393': Emoji1f468ZZ1f3fbZZ200dZZ1f393, + '1f468-1f3fb-200d-1f4bb': Emoji1f468ZZ1f3fbZZ200dZZ1f4bb, '1f468-1f3fb-200d-1f9b3': Emoji1f468ZZ1f3fbZZ200dZZ1f9b3, '1f468-1f3fd-200d-1f4bb': Emoji1f468ZZ1f3fdZZ200dZZ1f4bb, '1f468-200d-1f3a4': Emoji1f468ZZ200dZZ1f3a4,