Compare commits
1 Commits
master
...
spec/mozil
Author | SHA1 | Date | |
---|---|---|---|
|
14210896d0 |
247
Daniel Chen.typ
Normal file
247
Daniel Chen.typ
Normal file
@ -0,0 +1,247 @@
|
||||
#import "fontawesome.typ": fa, globe, github, linkedin, envelope
|
||||
#import "lib.typ": template, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG, render_contact_data
|
||||
|
||||
// orange!!
|
||||
#let color = blue // rgb("#ff983e")
|
||||
#let name = "Daniel Chen"
|
||||
|
||||
#let contact_data = ((
|
||||
service: fa[#globe],
|
||||
display: "eggworld.me",
|
||||
link: "https://eggworld.me",
|
||||
), (
|
||||
service: fa[#github],
|
||||
display: "github.com/potatoeggy",
|
||||
link: "https://github.com/potatoeggy",
|
||||
), (
|
||||
service: fa[#linkedin],
|
||||
display: "linkedin.com/in/potatoeggy",
|
||||
link: "https://www.linkedin.com/in/potatoeggy/",
|
||||
), (
|
||||
service: fa[#envelope],
|
||||
display: "d7chen@uwaterloo.ca",
|
||||
link: "mailto://d7chen@uwaterloo.ca",
|
||||
),)
|
||||
|
||||
#show: doc => template(name, color, doc)
|
||||
|
||||
#render_contact_data(contact_data)
|
||||
|
||||
// MAIN CONTENT STARTS here
|
||||
|
||||
= Skills
|
||||
|
||||
#indent[
|
||||
*Languages:* C, C++, Rust, Python, TypeScript/JavaScript, HTML, CSS, SQL \
|
||||
// Dart
|
||||
*Technologies:* Qt, React, Express, Prisma, Axum \
|
||||
// Qt, Jest / Pytest, Apollo, Prisma, Rails
|
||||
*Tools:* Linux, Git, Docker, Postgres, Jenkins, systemd, nginx, Pytest, Jest // Jenkins, systemd, Jira
|
||||
]
|
||||
|
||||
= Experience
|
||||
|
||||
#indent[
|
||||
#work_entry(
|
||||
"Software Engineering Intern",
|
||||
"Immigr8",
|
||||
start_date: "Jan 2024",
|
||||
end_date: "Apr 2024",
|
||||
location: "Remote",
|
||||
tools: "React, TypeScript, Spring Boot, Postgres, AWS",
|
||||
tasks: (
|
||||
// [Improved client responsiveness by *80* by employing stale-while-revalidate hooks for caching and ?? SWR performance, caching, error handling],
|
||||
[Planned and executed a roadmap to *SOC 2 security compliance* by implementing
|
||||
*role-based permissions with JWTs* in Spring Boot, logging alerts to CloudWatch,
|
||||
and introducing new privacy controls for user data],
|
||||
[Optimised dashboard responsiveness by *80%* by employing stale-while-revalidate
|
||||
hooks in React and lazily loading backend models with Hibernate, improving user
|
||||
retention by *30%*],
|
||||
[Created CI/CD pipelines to automatically deploy AWS Lambdas with Terraform and
|
||||
Jenkins],
|
||||
),
|
||||
)
|
||||
|
||||
#work_entry(
|
||||
"Software Engineering Intern",
|
||||
"Dropbase",
|
||||
start_date: "May 2023",
|
||||
end_date: "Aug 2023",
|
||||
location: "Remote",
|
||||
tools: "React, TypeScript, Python, Postgres, AWS",
|
||||
tasks: (
|
||||
[Engineered a new React data query builder and FastAPI backend for our business
|
||||
intelligence visualisation service to *33000+* users, eliminating the need for
|
||||
clients to manually write API calls],
|
||||
[Shipped a new tool to sync *46000+* users' HubSpot/Airtable tables to Google
|
||||
Sheets with AWS Lambdas],
|
||||
[Designed a conflict resolution algorithm to merge databases, reducing
|
||||
unrecoverable errors by *75%*],
|
||||
// [?? new tool dDeveloped a *serverless microservice* that asynchronously ingests
|
||||
// email attachments directly into ETL pipelines],
|
||||
// [??? emphasise test driven development or remove line *Reduced request errors by 30%* by creating backend testing infrastructure with
|
||||
// *Pytest* to catch regressions and test new features across database engines with
|
||||
// *90% code coverage*],
|
||||
),
|
||||
)
|
||||
|
||||
#work_entry(
|
||||
"Backend Developer",
|
||||
"Hack the North",
|
||||
start_date: "Mar 2023",
|
||||
end_date: "present",
|
||||
location: "Waterloo, ON",
|
||||
tools: "Express, TypeScript, Postgres, GraphQL",
|
||||
tasks: (
|
||||
// [Built a new travel tool application leveraging GraphQL and Apollo Server to
|
||||
// track bus capacity for *500+* attendees through real-time registration processes],
|
||||
[Streamlined event check-in times by *80%* for *1900+* guests by generating Apple
|
||||
Wallet passes over Express],
|
||||
[Diagnosed and recovered from crashes due to load spikes up to *800k* updates per
|
||||
hour at the world's largest student-run hackathon by autoscaling Redis and
|
||||
Postgres on Kubernetes],
|
||||
[Slashed dev server reload time from *130 → 9 s* by introducing threading and
|
||||
pre-transpiling generated code],
|
||||
// [Upgraded the event statistics dashboard to update in real time with GraphQL
|
||||
// *subscriptions with Redis PubSub*],
|
||||
),
|
||||
)
|
||||
|
||||
#work_entry(
|
||||
"Software Developer",
|
||||
"Organization for Transformative Works",
|
||||
start_date: "Feb 2024",
|
||||
end_date: "present",
|
||||
location: "Remote",
|
||||
tools: "Python, React, MySQL",
|
||||
tasks: (
|
||||
[Upgrading archive import pipelines in Python to make *4000+* user works
|
||||
accessible to *7 million* users],
|
||||
),
|
||||
)
|
||||
]
|
||||
|
||||
= Projects
|
||||
#set strong(delta: SMALL_STRONG)
|
||||
|
||||
#indent[
|
||||
#project(
|
||||
"PNG Downloader & Merger",
|
||||
"C, libcurl",
|
||||
start_date: "May 2024",
|
||||
end_date: "present",
|
||||
tasks: (
|
||||
[Developed a *multithreaded C program* to download and merge PNGs into one in
|
||||
parallel with *libcurl*],
|
||||
[Guaranteed thread safety by using *mutexes* and data integrity by verifying file
|
||||
checksums after download],
|
||||
),
|
||||
)
|
||||
|
||||
#project(
|
||||
"Arch Linux Server",
|
||||
"Linux, nginx, systemd",
|
||||
demo_link: "https://eggworld.me",
|
||||
tasks: (
|
||||
[Created a *self-hosted CI/CD pipeline* with *Gitea* to automatically deploy
|
||||
personal projects behind *nginx*],
|
||||
[Automated server maintenance with *systemd timers and services* to update
|
||||
packages and certificates],
|
||||
),
|
||||
)
|
||||
|
||||
#project(
|
||||
"Kobo Sync Backend",
|
||||
"Rust, Axum",
|
||||
repo_link: "https://github.com/potatoeggy/kobink",
|
||||
start_date: "Nov 2023",
|
||||
end_date: "present",
|
||||
tasks: (
|
||||
[Developed a *Rust* backend to sync custom ebook files to Kobos by reimplementing
|
||||
the Kobo Sync API],
|
||||
[Deployed the service behind an nginx reverse proxy and Cloudflare DNS to sync
|
||||
over the internet],
|
||||
),
|
||||
)
|
||||
|
||||
#project(
|
||||
"Mandown Comic Downloader",
|
||||
"Python, Qt",
|
||||
repo_link: "https://github.com/potatoeggy/mandown",
|
||||
start_date: "Jan 2022",
|
||||
end_date: "present",
|
||||
tasks: (
|
||||
[Created a CLI and GUI to scrape, download, and convert webcomics into
|
||||
e-ink-optimised PDF/EPUBs],
|
||||
[Designed a scalable ebook converter with a *plugin-based architecture* to
|
||||
improve compatibility],
|
||||
[Implemented *image caching and multithreading* to increase download and update
|
||||
speeds by *300%*],
|
||||
),
|
||||
)
|
||||
|
||||
// #project(
|
||||
// "Genshin Rewards Simulator",
|
||||
// "Vue, TypeScript",
|
||||
// repo_link: "https://github.com/potatoeggy/primoprod",
|
||||
// demo_link: "https://primoprod.vercel.app",
|
||||
// )
|
||||
// - Built a realistic and beautiful *loot box simulator* with CSS animations based
|
||||
// off a popular game
|
||||
// - Reduced action latency by *90%* by lazily loading art assets at opportune times,
|
||||
// such as during cutscenes
|
||||
|
||||
// #project(
|
||||
// "Jeopardy!",
|
||||
// "Vue, TypeScript, WebSockets",
|
||||
// repo_link: "https://github.com/potatoeggy/jeopardy",
|
||||
// start_date: "Apr 2023",
|
||||
// end_date: "present",
|
||||
// demo_link: "https://jeopardy.eggworld.me/host",
|
||||
// tasks: (
|
||||
// [Developed a beautiful and polished game where participants buzz in on their
|
||||
// devices over *WebSockets*],
|
||||
// [Synchronised game state between clients and the host with shared types and the
|
||||
// *observer pattern*],
|
||||
// ),
|
||||
// )
|
||||
|
||||
// #project(
|
||||
// "RecipeReady",
|
||||
// "https://github.com/vincentjguo/recipeready-server",
|
||||
// "Flutter, Selenium, FastAPI, Android",
|
||||
// )
|
||||
// - Developed a *Flutter app* to generate recipes based on ingredients and filters
|
||||
// through a FastAPI server
|
||||
// - Scraped thousands of websites for recipes to build a database with a robust
|
||||
// *many-to-many tag system*
|
||||
// - Aggregated common ingredients heuristically to build a shopping list and a meal
|
||||
// plan for each week
|
||||
|
||||
// #project(
|
||||
// "Game Boy Advance Emulator",
|
||||
// "Rust, SDL2, Vulkan",
|
||||
// repo_link: "https://github.com/potatoeggy/gbarr",
|
||||
// )
|
||||
// - Implemented a *ARMv7 emulator* for old games to run on modern x86_64 platforms
|
||||
// with *SDL2* and *Vulkan*
|
||||
// - WebGPU and WASM for portability, typestate to guarantee everything is always
|
||||
// valid
|
||||
]
|
||||
|
||||
= Education
|
||||
|
||||
#indent[
|
||||
#work_entry(
|
||||
"B.A.Sc. in Computer Engineering (Honours, Co-op)",
|
||||
"University of Waterloo",
|
||||
start_date: "Sep 2022",
|
||||
end_date: "Apr 2027",
|
||||
location: "Waterloo, ON",
|
||||
tasks: (
|
||||
[Courses: Object-oriented programming, data structures & algorithms, digital
|
||||
logic & circuits],
|
||||
// [Extracurriculars: Creative Writing Club, Hack the North, UW Orbital Design Team],
|
||||
),
|
||||
)
|
||||
]
|
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
# Define the source .typ files and the target PDF names
|
||||
TYP_FILES := $(wildcard *.typ)
|
||||
PDF_FILES := $(TYP_FILES:.typ=.pdf)
|
||||
PREFIXED_PDFS := $(addprefix danielchen_, $(PDF_FILES))
|
||||
|
||||
# Rule to build all PDFs with the "danielchen_" prefix
|
||||
all: $(PREFIXED_PDFS)
|
||||
|
||||
danielchen_%.pdf: %.typ
|
||||
typst compile $< $@
|
||||
|
||||
# Rule for watching all .typ files concurrently
|
||||
watch:
|
||||
@$(foreach file, $(TYP_FILES), \
|
||||
(typst watch $(file) danielchen_$(basename $(file)).pdf &) ; \
|
||||
)
|
||||
@wait
|
||||
|
||||
# Cleanup rule
|
||||
clean:
|
||||
rm -f danielchen_*.pdf
|
10
README.md
10
README.md
@ -1,12 +1,6 @@
|
||||
# Resume
|
||||
# resume
|
||||
|
||||
## Requirements
|
||||
|
||||
- Typst
|
||||
- Font: Bitter
|
||||
- Font: Raleway, weights 400, 500, 600, 700
|
||||
|
||||
## Release guidelines
|
||||
Release guidelines:
|
||||
|
||||
- Increment the major version for every work term, e.g., post-2A (WT2) and post-2B (WT3) would be v2.x.x and v3.x.x, respectively.
|
||||
- Increment the minor version for every major change. These can include:
|
||||
|
@ -1,189 +0,0 @@
|
||||
|
||||
#import "lib/template_common.typ": template_common, work_entry, project, indent, SMALL_STRONG
|
||||
|
||||
#let education = indent[
|
||||
#work_entry(
|
||||
"University of Waterloo",
|
||||
"B.A.Sc. in Computer Engineering — 3.7/4.0 GPA",
|
||||
start_date: "2022",
|
||||
end_date: "2026",
|
||||
location: "Waterloo, ON",
|
||||
tasks: (
|
||||
// [Courses: Object-oriented programming, data structures & algorithms, concurrency,
|
||||
// operating systems],
|
||||
[*Involvements*: Hack the North (Organiser), UW Orbital Satellite Design Team,
|
||||
Creative Writing Club (Secretary)],
|
||||
[*Awards*: StormHacks 2022 (#link("https://devpost.com/software/perdiem")[EdTech Winner]),
|
||||
YRHacks 2022 (#link("https://devpost.com/software/resketch")[IBM Open Source Winner])],
|
||||
),
|
||||
)
|
||||
]
|
||||
|
||||
#let skills = indent[
|
||||
*Languages:* Python, TypeScript/JavaScript, Rust, Java, C++, SQL, HTML/CSS \
|
||||
// Dart
|
||||
*Frameworks:* Node, React, Vue, GraphQL, Spring Boot, Express, Redis, Terraform,
|
||||
Prisma, Apollo, Axum \
|
||||
*Tools:* Linux, Postgres, Git, Docker, AWS, GCP, Kubernetes, Figma, Jenkins, nginx // Jenkins, systemd, Jira
|
||||
]
|
||||
|
||||
#show: doc => template_common(education, skills, doc)
|
||||
|
||||
= Experience
|
||||
|
||||
#indent[
|
||||
#work_entry(
|
||||
"Software Engineering Intern",
|
||||
"Magna",
|
||||
company_link: "https://magna.so",
|
||||
start_date: "Sep 2024",
|
||||
end_date: "Dec 2024",
|
||||
location: "New York, NY",
|
||||
tools: "Rust, TypeScript, Solidity, React, GraphQL",
|
||||
tasks: (
|
||||
[Shipped internal dashboard to *automate website creation* and deployment for
|
||||
*50+ clients* using *Node*, *React*],
|
||||
[Created and refactored data models, controllers, and *GraphQL APIs* to store and
|
||||
deploy site configurations],
|
||||
[Investigated and *improved initial load times by >60%* for client sites by
|
||||
caching blockchain reads in *Redis*],
|
||||
[Led collaboration with engineers, partner teams, designers to identify needs and
|
||||
scope technical requirements],
|
||||
),
|
||||
)
|
||||
|
||||
#work_entry(
|
||||
"Software Developer",
|
||||
"Immigr8",
|
||||
company_link: "https://immigr8now.com",
|
||||
start_date: "Jan 2024",
|
||||
end_date: "Apr 2024",
|
||||
location: "Remote",
|
||||
tools: "TypeScript, Spring Boot, React, Postgres, Terraform, AWS",
|
||||
tasks: (
|
||||
[Built and launched passport/private document storage platform for *200+ users*
|
||||
using *Spring Boot* and *React*],
|
||||
[Secured REST endpoints with *role-based permissions* and *JWTs*; monitored and
|
||||
logged alerts via CloudWatch],
|
||||
[Implemented document *OCR pipeline* with Lambda, Textract, and *S3* to
|
||||
automatically parse and tag uploads],
|
||||
[Created parallel *CI/CD system from scratch* with *Terraform* and Jenkins to
|
||||
deploy *AWS Lambdas* on commit], // BE-infra only, FE ver is admin dashboard
|
||||
),
|
||||
)
|
||||
|
||||
#work_entry(
|
||||
"Software Engineering Intern",
|
||||
"Dropbase",
|
||||
company_link: "https://dropbase.io",
|
||||
start_date: "May 2023",
|
||||
end_date: "Aug 2023",
|
||||
location: "Remote",
|
||||
tools: "TypeScript, Python, React, Postgres, AWS",
|
||||
tasks: (
|
||||
[Architected platform to clone, sync, and visualise databases for *3000+
|
||||
enterprise users* in *Python* and *React*],
|
||||
[Designed *merge conflict resolution system* to handle data mismatches, reducing
|
||||
user-reported errors by *35%*],
|
||||
[Shipped *static analysis tool* for platform's *custom SQL dialect* by
|
||||
recursively processing an abstract syntax tree],
|
||||
[Conceptualised and implemented extensible *classes and abstractions* to easily
|
||||
onboard *8 new database types*],
|
||||
// [Developed a serverless microservice to asynchronously ingest email attachments
|
||||
// directly into ETL pipelines],
|
||||
// [??? emphasise test driven development or remove line *Reduced request errors by 30%* by creating backend testing infrastructure with
|
||||
// *Pytest* to catch regressions and test new features across database engines with
|
||||
// *90% code coverage*],
|
||||
),
|
||||
)
|
||||
|
||||
#work_entry(
|
||||
"Backend Lead",
|
||||
"Hack the North",
|
||||
company_link: "https://hackthenorth.com",
|
||||
start_date: "Mar 2023",
|
||||
end_date: "Oct 2024",
|
||||
location: "Waterloo, ON",
|
||||
tools: "TypeScript, Express, Postgres, Kubernetes",
|
||||
tasks: (
|
||||
[Streamlined event check-in times for *1900+* guests by automatically generating
|
||||
Apple Wallet passes over *Express*],
|
||||
[Overhauled CI/CD pipelines, speeding up builds by *35%* by parallelising testing
|
||||
and type checking with *Buildkite*],
|
||||
[Investigated backend slowdowns in production by *introducing OpenTelemetry
|
||||
tracing* onto *Grafana* dashboards],
|
||||
[Resolved load spike crashes by caching queries via *Redis* and horizontally
|
||||
scaling services on *Kubernetes*],
|
||||
),
|
||||
)
|
||||
]
|
||||
|
||||
= Projects
|
||||
|
||||
#indent[
|
||||
#project(
|
||||
"Mandown",
|
||||
"Python, Qt",
|
||||
repo_link: "https://github.com/potatoeggy/mandown",
|
||||
tasks: (
|
||||
[Created a CLI and GUI to convert webcomics into e-ink-optimised files with a
|
||||
*plugin-based architecture*],
|
||||
[Expanded support for new formats and features #link("https://github.com/potatoeggy/mandown/issues/55")[based on] #link("https://github.com/potatoeggy/mandown/issues/89")[user] #link("https://github.com/potatoeggy/mandown/issues/63")[demand],
|
||||
minimising regressions with #link(
|
||||
"https://github.com/potatoeggy/mandown/blob/master/tests/test_source_batoto.py",
|
||||
)[E2E tests]],
|
||||
[Implemented *image caching and multithreading* to increase download and
|
||||
processing speeds by *300%*],
|
||||
),
|
||||
)
|
||||
|
||||
// #project(
|
||||
// "Kobink",
|
||||
// "Rust, Axum",
|
||||
// repo_link: "https://github.com/potatoeggy/kobink",
|
||||
// tasks: (
|
||||
// [Built a backend to sync custom ebook files to Kobos by reverse-engineering and
|
||||
// mimicking the Kobo Sync API],
|
||||
// [??],
|
||||
// ),
|
||||
// )
|
||||
|
||||
// #project(
|
||||
// "Genshin Rewards Simulator",
|
||||
// "Vue, TypeScript",
|
||||
// repo_link: "https://github.com/potatoeggy/primoprod",
|
||||
// demo_link: "https://primoprod.vercel.app",
|
||||
// tasks: (
|
||||
// [Built a realistic and beautiful *loot box simulator* with CSS animations based
|
||||
// off a popular game],
|
||||
// [Reduced action latency by *90%* by lazily loading art assets at opportune times,
|
||||
// such as during cutscenes],
|
||||
// ),
|
||||
// )
|
||||
|
||||
#project(
|
||||
"Jeopardy!",
|
||||
"Vue, TypeScript, WebSockets",
|
||||
repo_link: "https://github.com/potatoeggy/jeopardy",
|
||||
demo_link: "https://jeopardy.eggworld.me/host",
|
||||
tasks: (
|
||||
[Developed a beautiful and polished client/server game with *real-time
|
||||
multiplayer* in *Vue* and *WebSockets*],
|
||||
[Designed a *custom JSON protocol* over *WebSockets* to synchronise game state
|
||||
and handle buzzer events],
|
||||
),
|
||||
)
|
||||
|
||||
// #project(
|
||||
// "RecipeReady",
|
||||
// "https://github.com/vincentjguo/recipeready-server",
|
||||
// "Flutter, Selenium, FastAPI, Android",
|
||||
// )
|
||||
// - Developed a *Flutter app* to generate recipes based on ingredients and filters
|
||||
// through a FastAPI server
|
||||
// - Scraped thousands of websites for recipes to build a database with a robust
|
||||
// *many-to-many tag system*
|
||||
// - Aggregated common ingredients heuristically to build a shopping list and a meal
|
||||
// plan for each week
|
||||
|
||||
]
|
@ -1,31 +1,26 @@
|
||||
#import "fontawesome.typ": github, fa, link-icon
|
||||
|
||||
#let DEFAULT_STRONG = 300;
|
||||
#let SMALL_STRONG = 300;
|
||||
#let SMALL_STRONG = 200;
|
||||
|
||||
#let TITLE_FONT = "Bitter"
|
||||
#let HEADING_FONT = TITLE_FONT
|
||||
#let BODY_FONT = "Raleway"
|
||||
#let BODY_FONT = "Open Sans"
|
||||
|
||||
#let BODY_FONT_SIZE = 10pt
|
||||
#let HEADING_FONT_SIZE = 0.95em
|
||||
#let TITLE_FONT_SIZE = 2em
|
||||
|
||||
#let HEADING_LINE_GAP = 3mm
|
||||
#let HEADING_ABOVE_GAP = 1.2em
|
||||
#let HEADING_BELOW_GAP = 0.75em
|
||||
|
||||
#let BODY_LINE_HEIGHT = 0.7em
|
||||
#let BODY_LINE_HEIGHT = 0.75em
|
||||
|
||||
#let HEADING_DETAILS_LIST_SPACING = 0.9em
|
||||
#let DETAILS_TITLE_FONT_SIZE = 1.075em
|
||||
|
||||
#let DETAILS_LIST_SPACING = 0.8em
|
||||
#let DETAILS_LIST_INDENT = 1.25em
|
||||
|
||||
#let JOB_TITLE_FONT_SIZE = 1.05em
|
||||
#let DETAILS_LIST_SPACING = 0.85em
|
||||
|
||||
// rest = not top
|
||||
#let PAGE_MARGINS = (right: 0.5in, top: 0.3in, left: 0.4in, bottom: 0.4in)
|
||||
#let PAGE_MARGINS = (right: 0.45in, left: 0.4in, rest: 0.4in)
|
||||
|
||||
// Format locations.
|
||||
#let format_location(location) = {
|
||||
@ -33,7 +28,7 @@
|
||||
}
|
||||
|
||||
#let indent(content) = {
|
||||
block(inset: (left: 0.75em, right: 0.5em), content)
|
||||
block(inset: (left: 0.75em, right: 1em), content)
|
||||
}
|
||||
|
||||
// General entry that is split into a left and right half (for experience and education).
|
||||
@ -41,7 +36,7 @@
|
||||
stack(
|
||||
dir: ttb,
|
||||
spacing: HEADING_DETAILS_LIST_SPACING,
|
||||
grid(columns: (15fr, 5fr), column-gutter: 0cm, {
|
||||
grid(columns: (15fr, 4fr), column-gutter: 0cm, {
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
set align(left)
|
||||
left_content
|
||||
@ -51,9 +46,8 @@
|
||||
right_content
|
||||
}),
|
||||
{
|
||||
set strong(delta: SMALL_STRONG)
|
||||
show link: underline
|
||||
list(..details)
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
list(tight: false, spacing: DETAILS_LIST_SPACING, marker: [•], ..details)
|
||||
},
|
||||
)
|
||||
}
|
||||
@ -67,99 +61,63 @@
|
||||
start_date: none,
|
||||
end_date: none,
|
||||
location: none,
|
||||
company_link: none,
|
||||
) = {
|
||||
cv_entry(left_content: {
|
||||
text(JOB_TITLE_FONT_SIZE)[*#role*]
|
||||
set par(justify: true)
|
||||
text(DETAILS_TITLE_FONT_SIZE)[*#company* | _#role _]
|
||||
|
||||
if tools != none {
|
||||
// text[ | _ #tools _ ]
|
||||
}
|
||||
|
||||
"\n"
|
||||
set strong(delta: SMALL_STRONG)
|
||||
|
||||
if company_link == none {
|
||||
[_#company _]
|
||||
} else {
|
||||
[#link(company_link)[_#company _]]
|
||||
set strong(delta: SMALL_STRONG)
|
||||
text[ | *#tools* ]
|
||||
}
|
||||
}, right_content: {
|
||||
text(style: "italic")[#start_date -- #end_date]
|
||||
|
||||
if location != none {
|
||||
"\n" + format_location(location)
|
||||
}
|
||||
[_#start_date -- #end_date _]
|
||||
// if location != none {
|
||||
// format_location(location)
|
||||
// }
|
||||
}, details: tasks)
|
||||
}
|
||||
|
||||
#let project(title, tools, repo_link: none, demo_link: none, tasks: none) = {
|
||||
#let project(
|
||||
title,
|
||||
tools,
|
||||
start_date: none,
|
||||
end_date: none,
|
||||
repo_link: none,
|
||||
demo_link: none,
|
||||
tasks: none,
|
||||
) = {
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
let text_link = if demo_link != none { demo_link } else { repo_link }
|
||||
let date_content = if start_date != none {
|
||||
[_#start_date -- #end_date _]
|
||||
} else {
|
||||
none
|
||||
}
|
||||
|
||||
let content_title = {
|
||||
set text(size: DETAILS_TITLE_FONT_SIZE)
|
||||
if text_link != none {
|
||||
link(text_link)[#text(JOB_TITLE_FONT_SIZE)[*#title*]]
|
||||
link(text_link)[#text[*#title*]]
|
||||
} else {
|
||||
text(JOB_TITLE_FONT_SIZE)[*#title*]
|
||||
text[*#title*]
|
||||
}
|
||||
|
||||
if demo_link != none {
|
||||
link(demo_link)[#text(JOB_TITLE_FONT_SIZE)[ #fa(link-icon) ]]
|
||||
link(demo_link)[ #fa(link-icon) ]
|
||||
}
|
||||
|
||||
if repo_link != none {
|
||||
link(repo_link)[#text(JOB_TITLE_FONT_SIZE)[ #fa(github) ]]
|
||||
link(repo_link)[ #fa(github) ]
|
||||
}
|
||||
[ | _ #tools _ ]
|
||||
}
|
||||
|
||||
cv_entry(left_content: content_title, details: tasks)
|
||||
}
|
||||
|
||||
// Set name and contact data and format headings
|
||||
#let template(name, color, doc) = {
|
||||
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
||||
set list(
|
||||
tight: false,
|
||||
indent: DETAILS_LIST_INDENT,
|
||||
spacing: DETAILS_LIST_SPACING,
|
||||
marker: [*•*],
|
||||
cv_entry(
|
||||
left_content: content_title,
|
||||
right_content: date_content,
|
||||
details: tasks,
|
||||
)
|
||||
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
||||
set par(justify: true, leading: BODY_LINE_HEIGHT)
|
||||
set underline(offset: 0.2em)
|
||||
align(center)[
|
||||
#text(size: TITLE_FONT_SIZE, font: TITLE_FONT, fill: color)[*#name*]
|
||||
#block(above: 0em, below: 1em)
|
||||
]
|
||||
|
||||
show heading.where(level: 1): i => {
|
||||
set align(left + horizon)
|
||||
let title = smallcaps(i.body)
|
||||
|
||||
let colored_line(header_text) = {
|
||||
let size = measure(header_text)
|
||||
|
||||
// 100% - spacing - width of text
|
||||
line(
|
||||
length: 100% - HEADING_LINE_GAP - size.width,
|
||||
stroke: (paint: color, thickness: 2pt, cap: "round"),
|
||||
)
|
||||
}
|
||||
|
||||
set block(above: HEADING_ABOVE_GAP, below: HEADING_BELOW_GAP)
|
||||
set text(size: HEADING_FONT_SIZE, fill: color, font: HEADING_FONT)
|
||||
stack(
|
||||
dir: ltr,
|
||||
spacing: HEADING_LINE_GAP,
|
||||
title,
|
||||
box(height: 2pt, fill: color, colored_line(title)),
|
||||
)
|
||||
}
|
||||
|
||||
set strong(delta: SMALL_STRONG)
|
||||
doc
|
||||
}
|
||||
|
||||
#let render_contact_data(data) = {
|
||||
@ -170,3 +128,40 @@
|
||||
#text(1em)[#elements.join(" | ")]
|
||||
]
|
||||
}
|
||||
|
||||
// Set name and contact data and format headings
|
||||
#let template(name, color, doc) = {
|
||||
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
||||
set list(indent: 0.75em, marker: [•])
|
||||
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
||||
set par(leading: BODY_LINE_HEIGHT)
|
||||
align(center)[
|
||||
#text(size: TITLE_FONT_SIZE, font: TITLE_FONT, fill: color)[*#name*]
|
||||
#block(above: 0em, below: 1em)
|
||||
]
|
||||
|
||||
show heading.where(level: 1): i => {
|
||||
set align(left + horizon)
|
||||
let title = smallcaps(i.body)
|
||||
|
||||
let colored_line(header_text) = style(styles => {
|
||||
let size = measure(header_text, styles)
|
||||
|
||||
// 100% - spacing - width of text
|
||||
line(
|
||||
length: 100% - HEADING_LINE_GAP - size.width,
|
||||
stroke: (paint: color, thickness: 2pt, cap: "round"),
|
||||
)
|
||||
})
|
||||
|
||||
set block(above: 0.9em, below: 0.75em)
|
||||
set text(size: HEADING_FONT_SIZE, fill: color, font: HEADING_FONT)
|
||||
stack(
|
||||
dir: ltr,
|
||||
spacing: HEADING_LINE_GAP,
|
||||
title,
|
||||
box(height: 2pt, fill: color, colored_line(title)),
|
||||
)
|
||||
}
|
||||
doc
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
#import "fontawesome.typ": fa, globe, github, linkedin, envelope
|
||||
#import "lib.typ": template, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG, render_contact_data
|
||||
|
||||
#let SEQUENCE = ("education", "content", "skills")
|
||||
|
||||
// orange!!
|
||||
#let color = blue // rgb("#ff983e")
|
||||
#let name = "Daniel Chen"
|
||||
|
||||
#let contact_data = ((
|
||||
service: fa[#globe],
|
||||
display: "eggworld.me",
|
||||
link: "https://eggworld.me",
|
||||
), (
|
||||
service: fa[#github],
|
||||
display: "github.com/potatoeggy",
|
||||
link: "https://github.com/potatoeggy",
|
||||
), (
|
||||
service: fa[#linkedin],
|
||||
display: "linkedin.com/in/potatoeggy",
|
||||
link: "https://www.linkedin.com/in/potatoeggy/",
|
||||
), (
|
||||
service: fa[#envelope],
|
||||
display: "d7chen@uwaterloo.ca",
|
||||
link: "mailto://d7chen@uwaterloo.ca",
|
||||
),)
|
||||
|
||||
#show: doc => template(name, color, doc)
|
||||
|
||||
#let template_common(education, skills, doc) = {
|
||||
template(name, color, {
|
||||
render_contact_data(contact_data)
|
||||
|
||||
SEQUENCE.map(section => {
|
||||
if section == "education" [
|
||||
= Education
|
||||
#education
|
||||
] else if section == "skills" [
|
||||
= Technical Skills
|
||||
#skills
|
||||
] else if section == "content" [
|
||||
#doc
|
||||
]
|
||||
}).join()
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue
Block a user