Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo-Hafsaoui committed Sep 4, 2024
1 parent b95a330 commit a0b5dfa
Show file tree
Hide file tree
Showing 15 changed files with 137 additions and 193 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Binaries for programs and plugins
anemon
*.exe
*.exe~
*.dll
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
run:
echo "Not yet complete"

build:
go build

lint:
golangci-lint run ./...

Expand Down
164 changes: 1 addition & 163 deletions assets/latex/template/template.tex
Original file line number Diff line number Diff line change
@@ -1,163 +1 @@
%-------------------------
% Resume in Latex
% Author : Jake Gutierrez
% Based off of: https://github.com/sb2nov/resume
% License : MIT
%------------------------

\documentclass[letterpaper,11pt]{article}

\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{fontawesome5}
\usepackage{xfakebold}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames]{color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage{xcolor}
\usepackage[english]{babel}
\usepackage{tabularx}
\definecolor{Nblack}{HTML}{3b4252}
\definecolor{NBLACK}{HTML}{2e3440}
\definecolor{Nwhite}{HTML}{eceff4}
\definecolor{nwhite}{HTML}{e5e9f0}
\definecolor{Nblue}{HTML}{5e81ac}
\definecolor{Nurl}{HTML}{8fbcbb}
\definecolor{nblue}{HTML}{005A92}
\input{glyphtounicode}


%----------FONT OPTIONS----------
% sans-serif
% \usepackage[sfdefault]{FiraSans}
% \usepackage[sfdefault]{roboto}
% \usepackage[sfdefault]{noto-sans}
% \usepackage[default]{sourcesanspro}

% serif
% \usepackage{CormorantGaramond}
% \usepackage{charter}


\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

% Adjust margins
\addtolength{\oddsidemargin}{-0.5in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.5in}
\addtolength{\textheight}{1.0in}
\hypersetup{
filecolor=magenta,
urlcolor=Nblack,
pdftitle={Overleaf Example},
pdfpagemode=FullScreen,
}
\urlstyle{same}

\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}

% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-5pt}]

% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1

%-------------------------
% Custom commands
\newcommand{\resumeItem}[1]{
\item\small{
{#1 \vspace{-2pt}}
}
}

\newcommand{\resumeSubheading}[4]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l@{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-7pt}
}

\newcommand{\resumeSubSubheading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l@{\extracolsep{\fill}}r}
\textit{\small#1} & \textit{\small #2} \\
\end{tabular*}\vspace{-7pt}
}

\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l@{\extracolsep{\fill}}r}
\small#1 & #2 \\
\end{tabular*}\vspace{-7pt}
}

\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-4pt}}

\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}

\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.15in, label={}]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}

%-------------------------------------------
%%%%%% RESUME STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%


\begin{document}

\begin{center}
\textbf{\Huge \scshape \textcolor{nblue}{Hafsaoui Theo}} \\ \vspace{1pt}
\small +33 6 26 26 50 07 $|$ \href{mailto:theo.ha@pm.me}{\underline{theo.ha@pm.me}} \\
\href{https://linkedin.com/in/theo-dev/}{\underline{linkedin.com/in/theo-dev}} $|$
\href{https://github.com/Theo-Hafsaoui}{\underline{github.com/Theo-Hafsaoui}}
\end{center}


%-----------EDUCATION-----------
\section{EDUCATION}
\resumeSubHeadingListStart
%EDUCATION_SECTIONS%
\resumeSubHeadingListEnd


%-----------EXPERIENCE-----------
\section{EXPERIENCE}
\resumeSubHeadingListStart
%EXPERIENCE_SECTIONS%
\resumeSubHeadingListEnd



%-----------PROJECTS-----------
\section{Projects}
\resumeSubHeadingListStart
%PROJECTS_SECTIONS%
\resumeSubHeadingListEnd



%
%-----------PROGRAMMING SKILLS-----------
\section{Technical Skills}
\begin{itemize}[leftmargin=0.15in, label={}]
\small{\item{
}}
\end{itemize}

%-------------------------------------------
\end{document}
Hello World
47 changes: 47 additions & 0 deletions cmd/generate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package cmd

import (
"anemon/internal/walker"
"anemon/internal/parser"
"errors"
"os"
"strings"

"github.com/spf13/cobra"
)

var generateCmd = &cobra.Command{
Use: "generate",
Short: "Generate a CV",
Long: `Generate a CV using the CV at the current work directory`,
RunE: func(cmd *cobra.Command, args []string) error{
dir, err := os.Getwd()
if err != nil{
return err
}
cv_path := dir+"/cv"
_, err = os.Stat(cv_path)
if err != nil{
if os.IsNotExist(err) { return errors.New("No `cv` directory found at:"+cv_path) }
return err
}
result, err := walker.WalkCV(cv_path)

Check failure on line 28 in cmd/generate.go

View workflow job for this annotation

GitHub Actions / Run Linter

ineffectual assignment to err (ineffassign)
md_per_language := make(map[string]map[string]string)
for k := range result{
k_split := strings.Split(k,"/")
md_per_language[k_split[0]]=result
}
for _,p := range strings.Split(result["eng/project"], "\n\n"){
section, err := parser.Parse(p)
if err != nil{
return err
}
println(section.String())
}
return nil
},
}

func init() {
rootCmd.AddCommand(generateCmd)
}
19 changes: 19 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cmd

import (
"os"
"github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
Use: "anemon",
Short: "a CV genrator",
Long: `This CLI tool, written in Go, automates the generation of customized CVs from Markdown files based on a specified configuration. It parses CV sections in
multiple languages, prioritizes key skills or features as defined in an output.yml file, and outputs LaTeX files for each CV version, ready for compilation.`,
}

func Execute() {
if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
}
12 changes: 8 additions & 4 deletions cv/eng/education.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
- [Master's in Computer Science, Software and Data Engineering](https://www.univ-tln.fr/Master-Informatique-parcours-Developpement-et-Ingenierie-des-Donnees.html)
- University of Toulon, 2024
# Master's in Computer Science, Software and Data Engineering
## https://www.univ-tln.fr/Master-Informatique-parcours-Developpement-et-Ingenierie-des-Donnees.html
### University of Toulon
#### 2024

- [Bachelor's in Computer Science](https://www.univ-tln.fr/Licence-Informatique-parcours-Informatique.html)
- University of Toulon, 2022
# Bachelor's in Computer Science
## https://www.univ-tln.fr/Licence-Informatique-parcours-Informatique.html
### University of Toulon
#### 2024
13 changes: 6 additions & 7 deletions cv/eng/project.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
**Agenda**
*Java, JavaFX, PostgreSQL, Github [GitHub Repository](https://github.com/MasterDID2022/sopra-project-LHD)*

# Agenda
## Java, JavaFX, PostgreSQL, Github
### https://github.com/MasterDID2022/sopra-project-LHD
- Developed in Java and JavaFX, using PostgreSQL for database management.
- Project executed in an agile environment, emphasizing GitHub Flow, Pull Requests, Kanban, and Continuous Integration for effective collaboration.


**Epigraphy Tools**
*Java, Hibernate, Docker, REST, JWT [GitHub Repository](https://github.com/MasterDID2022/epicTool)*

# Epigraphy Tools
## Java, Hibernate, Docker, REST, JWT
### https://github.com/MasterDID2022/epicTool
- Designed and developed an epigraphy annotation tool for deep learning using Java, Docker, REST, and JWT.
- Separated the front-end and back-end using Docker with container orchestration via Docker-Compose.
- Established secure communication between the front-end and back-end through a RESTful API with JWT tokens.
- Worked as a team in an agile context, utilizing the SCRUM method and applying DevOps practices for efficient and collaborative development.

28 changes: 14 additions & 14 deletions cv/eng/work.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
**Back-End Intern**
*February 2024 -- August 2024*
[Qonto](https://qonto.com/en)
*End of studies internship*

# Back-End Intern
## February 2024 -- August 2024
### [Qonto](https://qonto.com/en)
#### End of studies internship
- Contributed within a Cross Functional Team (CFT) to the standardization and extension of the onboarding process for four new markets (Austria, Netherlands, Belgium, Portugal). From design to implementation, in coordination with stakeholders (Risk, AML, Product), to ensure a smooth and compliant integration, with deployment scheduled for August.
- Led the extraction of back-office logic from a *Ruby* monolith into a microservice, deploying in a trunk-based development environment. Collaborated closely with the Ops teams throughout the process. Monitored production using **Grafana, Sentry, ArgoCD, and Kibana** to ensure quality and reliability, enhancing system maintainability by decoupling microservices.
- Led the extraction of back-office logic from a Ruby monolith into a microservice, deploying in a trunk-based development environment. Collaborated closely with the Ops teams throughout the process. Monitored production using Grafana, Sentry, ArgoCD, and Kibana to ensure quality and reliability, enhancing system maintainability by decoupling microservices.
- Improved the reliability and observability of microservices by completing the tracing mechanisms and implementing Service Level Objectives (SLOs).

**Full Stack Developer**
*June 2023 -- September 2023*
[Coexel](https://www.coexel.com/en)
*Internship then Fixed-Term Contract*
# Full Stack Developer
## June 2023 -- September 2023
### [Coexel](https://www.coexel.com/en)
#### Internship then Fixed-Term Contract

- Designed and developed a Python service for Named Entity Recognition (**NER**) using spaCy to efficiently identify named entities in 92M+ documents. Utilization of **Elasticsearch** for storage and optimized document search, enabling users to gain further insights into monitored themes.
- Rewrote an old website monitoring system created in Java to **Python**, enhancing maintainability and system performance.
- Implemented a **RESTful** API in Python using **FastAPI**, providing increased flexibility and scalability for data management and requests.
- Created a deployment pipeline with **Docker** and Github Actions, streamlining the deployment process and enabling faster and more robust updates.
- Designed and developed a Python service for Named Entity Recognition (NER) using spaCy to efficiently identify named entities in 92M+ documents. Utilization of Elasticsearch for storage and optimized document search, enabling users to gain further insights into monitored themes.
- Rewrote an old website monitoring system created in Java to Python, enhancing maintainability and system performance.
- Implemented a RESTful API in Python using FastAPI, providing increased flexibility and scalability for data management and requests.
- Created a deployment pipeline with Docker and Github Actions, streamlining the deployment process and enabling faster and more robust updates.
- Significantly improved performance by reducing the number of GET requests from 5 to 1, resulting in an 85% faster display

7 changes: 6 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ module anemon

go 1.22.0

require github.com/google/go-cmp v0.6.0 // indirect
require (
github.com/google/go-cmp v0.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/spf13/cobra v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
)
10 changes: 10 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM=
github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
5 changes: 4 additions & 1 deletion internal/parser/latex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import (
"github.com/google/go-cmp/cmp"
)

func TestReadLatex(t *testing.T) {

func TestIO(t *testing.T) {
t.Run("Count returns 1 lines with just one line", func (t *testing.T) {
dir := filepath.Join("../../assets", "latex", "template")
templateFile := filepath.Join(dir, "template.tex")
backupFile := filepath.Join(dir, "save.tex")
Expand Down Expand Up @@ -39,6 +41,7 @@ func TestReadLatex(t *testing.T) {
t.Fatalf("Failed to rename save.tex back to template.tex: %v", err)
}
}
})
}

func TestWriteLatex(t *testing.T) {
Expand Down
8 changes: 7 additions & 1 deletion internal/parser/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package parser

import (
"errors"
"regexp"
"regexp"
"fmt"
"strings"
)

Expand All @@ -17,6 +18,11 @@ type Section struct {
description []string
}

func (s Section) String() string {
return fmt.Sprintf("1: %s\n2: %s\n3: %s\n4: %s\nitems: %v",
s.first,s.second,s.third,s.fourth,s.description)
}

/*
Parse parses a Markdown-like `paragraph` into a `Section`, extracting headings and description based on the number of leading hashtags. Returns an error if the format is invalid.
*/
Expand Down
2 changes: 1 addition & 1 deletion internal/walker/cv.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// walkCV traverses the directory tree starting at root and returns a map where
// the keys are the relative paths without the .md extension and the values are
// the contents of the markdown files.
func walkCV(root string) (map[string]string, error) {
func WalkCV(root string) (map[string]string, error) {
fileMap := make(map[string]string)
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if err != nil {
Expand Down
Loading

0 comments on commit a0b5dfa

Please sign in to comment.