From 63db693fd2eb2bfe07b374b1a201315c9f356084 Mon Sep 17 00:00:00 2001 From: "lukasz.czaplinski" Date: Mon, 11 Nov 2019 21:28:46 +0100 Subject: [PATCH 1/5] Write tokenizer for org-mode --- .gitignore | 12 ++ CHANGELOG.md | 8 ++ LICENSE | 277 ++++++++++++++++++++++++++++++++++++++ README.md | 29 ++++ TODO.org | 11 +- doc/intro.md | 3 + org/experience.org | 24 ++-- project.clj | 11 ++ resume.json | 1 + src/resume/core.clj | 15 +++ src/resume/org.clj | 35 +++++ test/resume/core_test.clj | 3 + test/resume/org_test.clj | 11 ++ 13 files changed, 425 insertions(+), 15 deletions(-) create mode 100644 .gitignore create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 doc/intro.md create mode 100644 project.clj create mode 100644 resume.json create mode 100644 src/resume/core.clj create mode 100644 src/resume/org.clj create mode 100644 test/resume/core_test.clj create mode 100644 test/resume/org_test.clj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d18f225 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +/target +/classes +/checkouts +profiles.clj +pom.xml +pom.xml.asc +*.jar +*.class +/.lein-* +/.nrepl-port +.hgignore +.hg/ diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d0f2977 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ +# Change Log +All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/). + +## [Unreleased] +### Changed +- Add tokenizer for org-mode + +[Unreleased]: https://github.com/your-name/resume/compare/0.1.1...HEAD diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d3087e4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,277 @@ +Eclipse Public License - v 2.0 + + THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE + PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION + OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. DEFINITIONS + +"Contribution" means: + + a) in the case of the initial Contributor, the initial content + Distributed under this Agreement, and + + b) in the case of each subsequent Contributor: + i) changes to the Program, and + ii) additions to the Program; + where such changes and/or additions to the Program originate from + and are Distributed by that particular Contributor. A Contribution + "originates" from a Contributor if it was added to the Program by + such Contributor itself or anyone acting on such Contributor's behalf. + Contributions do not include changes or additions to the Program that + are not Modified Works. + +"Contributor" means any person or entity that Distributes the Program. + +"Licensed Patents" mean patent claims licensable by a Contributor which +are necessarily infringed by the use or sale of its Contribution alone +or when combined with the Program. + +"Program" means the Contributions Distributed in accordance with this +Agreement. + +"Recipient" means anyone who receives the Program under this Agreement +or any Secondary License (as applicable), including Contributors. + +"Derivative Works" shall mean any work, whether in Source Code or other +form, that is based on (or derived from) the Program and for which the +editorial revisions, annotations, elaborations, or other modifications +represent, as a whole, an original work of authorship. + +"Modified Works" shall mean any work in Source Code or other form that +results from an addition to, deletion from, or modification of the +contents of the Program, including, for purposes of clarity any new file +in Source Code form that contains any contents of the Program. Modified +Works shall not include works that contain only declarations, +interfaces, types, classes, structures, or files of the Program solely +in each case in order to link to, bind by name, or subclass the Program +or Modified Works thereof. + +"Distribute" means the acts of a) distributing or b) making available +in any manner that enables the transfer of a copy. + +"Source Code" means the form of a Program preferred for making +modifications, including but not limited to software source code, +documentation source, and configuration files. + +"Secondary License" means either the GNU General Public License, +Version 2.0, or any later versions of that license, including any +exceptions or additional permissions as identified by the initial +Contributor. + +2. GRANT OF RIGHTS + + a) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free copyright + license to reproduce, prepare Derivative Works of, publicly display, + publicly perform, Distribute and sublicense the Contribution of such + Contributor, if any, and such Derivative Works. + + b) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free patent + license under Licensed Patents to make, use, sell, offer to sell, + import and otherwise transfer the Contribution of such Contributor, + if any, in Source Code or other form. This patent license shall + apply to the combination of the Contribution and the Program if, at + the time the Contribution is added by the Contributor, such addition + of the Contribution causes such combination to be covered by the + Licensed Patents. The patent license shall not apply to any other + combinations which include the Contribution. No hardware per se is + licensed hereunder. + + c) Recipient understands that although each Contributor grants the + licenses to its Contributions set forth herein, no assurances are + provided by any Contributor that the Program does not infringe the + patent or other intellectual property rights of any other entity. + Each Contributor disclaims any liability to Recipient for claims + brought by any other entity based on infringement of intellectual + property rights or otherwise. As a condition to exercising the + rights and licenses granted hereunder, each Recipient hereby + assumes sole responsibility to secure any other intellectual + property rights needed, if any. For example, if a third party + patent license is required to allow Recipient to Distribute the + Program, it is Recipient's responsibility to acquire that license + before distributing the Program. + + d) Each Contributor represents that to its knowledge it has + sufficient copyright rights in its Contribution, if any, to grant + the copyright license set forth in this Agreement. + + e) Notwithstanding the terms of any Secondary License, no + Contributor makes additional grants to any Recipient (other than + those set forth in this Agreement) as a result of such Recipient's + receipt of the Program under the terms of a Secondary License + (if permitted under the terms of Section 3). + +3. REQUIREMENTS + +3.1 If a Contributor Distributes the Program in any form, then: + + a) the Program must also be made available as Source Code, in + accordance with section 3.2, and the Contributor must accompany + the Program with a statement that the Source Code for the Program + is available under this Agreement, and informs Recipients how to + obtain it in a reasonable manner on or through a medium customarily + used for software exchange; and + + b) the Contributor may Distribute the Program under a license + different than this Agreement, provided that such license: + i) effectively disclaims on behalf of all other Contributors all + warranties and conditions, express and implied, including + warranties or conditions of title and non-infringement, and + implied warranties or conditions of merchantability and fitness + for a particular purpose; + + ii) effectively excludes on behalf of all other Contributors all + liability for damages, including direct, indirect, special, + incidental and consequential damages, such as lost profits; + + iii) does not attempt to limit or alter the recipients' rights + in the Source Code under section 3.2; and + + iv) requires any subsequent distribution of the Program by any + party to be under a license that satisfies the requirements + of this section 3. + +3.2 When the Program is Distributed as Source Code: + + a) it must be made available under this Agreement, or if the + Program (i) is combined with other material in a separate file or + files made available under a Secondary License, and (ii) the initial + Contributor attached to the Source Code the notice described in + Exhibit A of this Agreement, then the Program may be made available + under the terms of such Secondary Licenses, and + + b) a copy of this Agreement must be included with each copy of + the Program. + +3.3 Contributors may not remove or alter any copyright, patent, +trademark, attribution notices, disclaimers of warranty, or limitations +of liability ("notices") contained within the Program from any copy of +the Program which they Distribute, provided that Contributors may add +their own appropriate notices. + +4. COMMERCIAL DISTRIBUTION + +Commercial distributors of software may accept certain responsibilities +with respect to end users, business partners and the like. While this +license is intended to facilitate the commercial use of the Program, +the Contributor who includes the Program in a commercial product +offering should do so in a manner which does not create potential +liability for other Contributors. Therefore, if a Contributor includes +the Program in a commercial product offering, such Contributor +("Commercial Contributor") hereby agrees to defend and indemnify every +other Contributor ("Indemnified Contributor") against any losses, +damages and costs (collectively "Losses") arising from claims, lawsuits +and other legal actions brought by a third party against the Indemnified +Contributor to the extent caused by the acts or omissions of such +Commercial Contributor in connection with its distribution of the Program +in a commercial product offering. The obligations in this section do not +apply to any claims or Losses relating to any actual or alleged +intellectual property infringement. In order to qualify, an Indemnified +Contributor must: a) promptly notify the Commercial Contributor in +writing of such claim, and b) allow the Commercial Contributor to control, +and cooperate with the Commercial Contributor in, the defense and any +related settlement negotiations. The Indemnified Contributor may +participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial +product offering, Product X. That Contributor is then a Commercial +Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance +claims and warranties are such Commercial Contributor's responsibility +alone. Under this section, the Commercial Contributor would have to +defend claims against the other Contributors related to those performance +claims and warranties, and if a court requires any other Contributor to +pay any damages as a result, the Commercial Contributor must pay +those damages. + +5. NO WARRANTY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT +PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS" +BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR +IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF +TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR +PURPOSE. Each Recipient is solely responsible for determining the +appropriateness of using and distributing the Program and assumes all +risks associated with its exercise of rights under this Agreement, +including but not limited to the risks and costs of program errors, +compliance with applicable laws, damage to or loss of data, programs +or equipment, and unavailability or interruption of operations. + +6. DISCLAIMER OF LIABILITY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT +PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS +SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST +PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE +EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under +applicable law, it shall not affect the validity or enforceability of +the remainder of the terms of this Agreement, and without further +action by the parties hereto, such provision shall be reformed to the +minimum extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity +(including a cross-claim or counterclaim in a lawsuit) alleging that the +Program itself (excluding combinations of the Program with other software +or hardware) infringes such Recipient's patent(s), then such Recipient's +rights granted under Section 2(b) shall terminate as of the date such +litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it +fails to comply with any of the material terms or conditions of this +Agreement and does not cure such failure in a reasonable period of +time after becoming aware of such noncompliance. If all Recipient's +rights under this Agreement terminate, Recipient agrees to cease use +and distribution of the Program as soon as reasonably practicable. +However, Recipient's obligations under this Agreement and any licenses +granted by Recipient relating to the Program shall continue and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, +but in order to avoid inconsistency the Agreement is copyrighted and +may only be modified in the following manner. The Agreement Steward +reserves the right to publish new versions (including revisions) of +this Agreement from time to time. No one other than the Agreement +Steward has the right to modify this Agreement. The Eclipse Foundation +is the initial Agreement Steward. The Eclipse Foundation may assign the +responsibility to serve as the Agreement Steward to a suitable separate +entity. Each new version of the Agreement will be given a distinguishing +version number. The Program (including Contributions) may always be +Distributed subject to the version of the Agreement under which it was +received. In addition, after a new version of the Agreement is published, +Contributor may elect to Distribute the Program (including its +Contributions) under the new version. + +Except as expressly stated in Sections 2(a) and 2(b) above, Recipient +receives no rights or licenses to the intellectual property of any +Contributor under this Agreement, whether expressly, by implication, +estoppel or otherwise. All rights in the Program not expressly granted +under this Agreement are reserved. Nothing in this Agreement is intended +to be enforceable by any entity that is not a Contributor or Recipient. +No third-party beneficiary rights are created under this Agreement. + +Exhibit A - Form of Secondary Licenses Notice + +"This Source Code may also be made available under the following +Secondary Licenses when the conditions for such availability set forth +in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), +version(s), and exceptions or additional permissions here}." + + Simply including a copy of this Agreement, including this Exhibit A + is not sufficient to license the Source Code under Secondary Licenses. + + If it is not possible or desirable to put the notice in a particular + file, then You may include the notice in a location (such as a LICENSE + file in a relevant directory) where a recipient would be likely to + look for such a notice. + + You may add additional accurate notices of copyright ownership. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5d97368 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# resume + +A Clojure site for buidling my resume + +## Usage + +`org/experience.org` serves as data file, to be edited with Emacs org-mode (or any other editor with org-mode support). + +Lein tasks can be used to convert into: +- [`resume.json`](https://jsonresume.org) - [TODO], +- HTML file [TODO], +- Latex source for PDF [TODO] + + + +## License + +Copyright © 2019 Łukasz Czapliński + +This program and the accompanying materials are made available under the +terms of the Eclipse Public License 2.0 which is available at +http://www.eclipse.org/legal/epl-2.0. + +This Source Code may also be made available under the following Secondary +Licenses when the conditions for such availability set forth in the Eclipse +Public License, v. 2.0 are satisfied: GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or (at your +option) any later version, with the GNU Classpath Exception which is available +at https://www.gnu.org/software/classpath/license.html. diff --git a/TODO.org b/TODO.org index f910518..55903fa 100644 --- a/TODO.org +++ b/TODO.org @@ -14,6 +14,14 @@ CLOSED: [2019-11-07 Thu 15:42] ** DONE Link to Github CLOSED: [2019-11-10 Sun 19:01] +* [33%] Write converter to resume.json +** DONE Write tokenizer for org-mode + CLOSED: [2019-11-11 Mon 21:27] +** TODO Write parser for org-mode +** TODO Convert parsed org-mode into resume.json +* TODO Write custom resume.json builder +* TODO Write static site with stasis + https://cjohansen.no/building-static-sites-in-clojure-with-stasis/ * TODO Write simple LateX class based on: - https://github.com/billryan/resume - https://www.sharelatex.com/blog/2011/03/27/how-to-write-a-latex-class-file-and-design-your-own-cv.html @@ -21,9 +29,6 @@ - https://github.com/posquit0/Awesome-CV * Languages ** TODO Add icons -* Convert org doc into CV -- Use automatic export with annotations? -- Sort out all sections chronologically * Feature ideas: - Nerd font icons - Time / project / language matrix diff --git a/doc/intro.md b/doc/intro.md new file mode 100644 index 0000000..6252230 --- /dev/null +++ b/doc/intro.md @@ -0,0 +1,3 @@ +# Introduction to resume + +TODO: write [great documentation](http://jacobian.org/writing/what-to-write/) diff --git a/org/experience.org b/org/experience.org index 77a93b4..ab724ee 100644 --- a/org/experience.org +++ b/org/experience.org @@ -5,8 +5,8 @@ - Update & storage mechanism (Algorithms), - Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark), - Final implementation (Go). -*** Quizzpy (2018-2019) - ICON: https://d33wubrfki0l68.cloudfront.net/b0e95300f043b4d28372f8cf19277df987c936bc/b2032/quizzpy-logo.2aacc600.svg +*** qUIZZPY (2018-2019) + :icon: HTTPS://D33WUBRFKI0L68.CLOUDFRONT.NET/B0E95300F043B4D28372F8CF19277DF987C936BC/B2032/QUIZZPY-LOGO.2AACC600.SVG Live trivia show, targeted for Polish audience. Worked in small cross-competence Scrum team. Focused on: - Architecture & scaling (Event-sourcing, CQRS) @@ -14,11 +14,11 @@ - Streaming (OBS, Nginx, FFMpeg, RTMP, HLS) - Infrastructure (Ansible, Terraform, Aws [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku) *** Implementation of Holacracy (2018-2019) - ICON: https://images.squarespace-cdn.com/content/5d1239a79c02150001db74d4/1561475648342-TU0F0W6TRID5IAKCKM0E/Holacracy_Primary.png?format=1500w&content-type=image%2Fpng + :ICON: https://images.squarespace-cdn.com/content/5d1239a79c02150001db74d4/1561475648342-TU0F0W6TRID5IAKCKM0E/Holacracy_Primary.png?format=1500w&content-type=image%2Fpng Part of initial group which evaluated various frameworks for power division in organisation. Later spearheaded integration of developers into Holacracy, as a framework for structuring company. *** Group Nine Media (2016-2018) - ICON: https://en.wikipedia.org/wiki/Group_Nine_Media#/media/File:Group_Nine_Media_Logo.svg + :ICON: https://en.wikipedia.org/wiki/Group_Nine_Media#/media/File:Group_Nine_Media_Logo.svg Platform for monitoring & analysis of publishings on social platforms. Worked as tech lead of group which designed & implemented: - Data pipeline (Lambda Architecture), @@ -29,13 +29,13 @@ - Ingestion (Ruby, Facebook Graph API), Also worked as part of Ops team, which cared for infrastructure using Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH. *** NowThis (2015-2016) - ICON: https://en.wikipedia.org/wiki/NowThis_News#/media/File:Now_This_Logo_White.svg + :ICON: https://en.wikipedia.org/wiki/NowThis_News#/media/File:Now_This_Logo_White.svg Custom workflow & automatization platform. Worked part-time as part of several backend groups, co-authored: - Architecture (Event-sourcing, CQRS), - CI/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby). *** Golem app (2015) - ICON: https://web.archive.org/web/20160318141954im_/http://golemapp.com/static/images/logo.png + :ICON: https://web.archive.org/web/20160318141954im_/http://golemapp.com/static/images/logo.png Remote camera control for iOS devices with Galileo. Solely responsible for: - Backend (Coffescript, Node.js, Redis, MongoDB) @@ -43,25 +43,25 @@ - Hangouts integration (React) ** Academic (2011-2016) *** Jarvis (Master's Thesis) (2015-2016) - URL: https://github.com/scoiatael/masters_thesis / https://github.com/scoiatael/Jarvis + :URL: https://github.com/scoiatael/masters_thesis / https://github.com/scoiatael/Jarvis Visual Programming IDE for Clojure - focused on exploring new forms of programming. Written in ClojureScript, targeting Electron environment. *** Czero (2016) - URL: https://github.com/scoiatael/czero + :URL: https://github.com/scoiatael/czero Compiler for simpler C-like language with manual memory management, using LLVM in C++2014. Helped with lexer & parser, wrote final IR code generation. Technologies: C++2014, LLVM, Maphoon (custom parser generator, similar to Bison). *** Zosia (2015) - URL: https://github.com/ksiuwr/zosia16-site + :URL: https://github.com/ksiuwr/zosia16-site Registration website for students' winter camp. Written in Django, with Postgres as storage and HTTP+Websockets for transport layer. Frontend in React. ** Open Source (2017-) *** Remacs (2019) - URL: https://github.com/remacs/remacs + :URL: https://github.com/remacs/remacs Rust incremental port of Emacs. Leverages Rust compatibility with C ABI to rewrite function-by-function in a stable manner. So far contributed marginally, would love to continue. *** Colorls-rs (2017) - URL: https://github.com/scoiatael/colorls-rs + :URL: https://github.com/scoiatael/colorls-rs Rust utility to add icons to terminal `ls` command. Written as a study of reimplementing C functionality in Rust. *** Archai (2017) - URL: https://github.com/scoiatael/archai + :URL: https://github.com/scoiatael/archai Event sourcing data warehouse. Written in Go, using Cassandra as replicated, partitioned storage. Scalable horizontally. Later used & improved during work in Group Nine Media. * Languages used in production: - Ruby diff --git a/project.clj b/project.clj new file mode 100644 index 0000000..71602f9 --- /dev/null +++ b/project.clj @@ -0,0 +1,11 @@ +(defproject resume "0.1.0-SNAPSHOT" + :description "Resume-from-org generator" + :url "http://example.com/FIXME" + :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" + :url "https://www.eclipse.org/legal/epl-2.0/"} + :dependencies [[org.clojure/clojure "1.10.0"] + [org.clojure/data.json "0.2.6"]] + :aliases {"build-resume-json" ["run" "-m" "resume.core/export-resume-json"]} + :repl-options {:init-ns resume.core} + :profiles {:test {:dependencies [[midje "1.9.9"]] + :plugins [[lein-midje "3.2.1"]]}}) diff --git a/resume.json b/resume.json new file mode 100644 index 0000000..47df14e --- /dev/null +++ b/resume.json @@ -0,0 +1 @@ +[["heading",{"text":"Experience","level":1}],["heading",{"text":"Tooploox (2015-2019)","level":2}],["heading",{"text":"One of major car manufacturers (2019)","level":3}],["text","Proof-of-concept for API working in car's head unit, providing information about broadcasts based on car location. Worked solo on:"],["text","- Update & storage mechanism (Algorithms),"],["text","- Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark),"],["text","- Final implementation (Go)."],["heading",{"text":"qUIZZPY (2018-2019)","level":3}],["option",{"name":"icon","value":"HTTPS:\/\/D33WUBRFKI0L68.CLOUDFRONT.NET\/B0E95300F043B4D28372F8CF19277DF987C936BC\/B2032\/QUIZZPY-LOGO.2AACC600.SVG"}],["text","Live trivia show, targeted for Polish audience."],["text","Worked in small cross-competence Scrum team. Focused on:"],["text","- Architecture & scaling (Event-sourcing, CQRS)"],["text","- Backend (Elixir, Postgres, Datadog)"],["text","- Streaming (OBS, Nginx, FFMpeg, RTMP, HLS)"],["text","- Infrastructure (Ansible, Terraform, Aws [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku)"],["heading",{"text":"Implementation of Holacracy (2018-2019)","level":3}],["option",{"name":"ICON","value":"https:\/\/images.squarespace-cdn.com\/content\/5d1239a79c02150001db74d4\/1561475648342-TU0F0W6TRID5IAKCKM0E\/Holacracy_Primary.png?format=1500w&content-type=image%2Fpng"}],["text","Part of initial group which evaluated various frameworks for power division in organisation."],["text","Later spearheaded integration of developers into Holacracy, as a framework for structuring company."],["heading",{"text":"Group Nine Media (2016-2018)","level":3}],["option",{"name":"ICON","value":"https:\/\/en.wikipedia.org\/wiki\/Group_Nine_Media#\/media\/File:Group_Nine_Media_Logo.svg"}],["text","Platform for monitoring & analysis of publishings on social platforms."],["text","Worked as tech lead of group which designed & implemented:"],["text","- Data pipeline (Lambda Architecture),"],["text","- Raw data storage & rehydration (Go, Ruby, Cassandra),"],["text","- Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API),"],["text","- Looker integration (Ruby, Postgres),"],["text","- Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin),"],["text","- Ingestion (Ruby, Facebook Graph API),"],["text","Also worked as part of Ops team, which cared for infrastructure using Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH."],["heading",{"text":"NowThis (2015-2016)","level":3}],["option",{"name":"ICON","value":"https:\/\/en.wikipedia.org\/wiki\/NowThis_News#\/media\/File:Now_This_Logo_White.svg"}],["text","Custom workflow & automatization platform."],["text","Worked part-time as part of several backend groups, co-authored:"],["text","- Architecture (Event-sourcing, CQRS),"],["text","- CI\/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby)."],["heading",{"text":"Golem app (2015)","level":3}],["option",{"name":"ICON","value":"https:\/\/web.archive.org\/web\/20160318141954im_\/http:\/\/golemapp.com\/static\/images\/logo.png"}],["text","Remote camera control for iOS devices with Galileo."],["text","Solely responsible for:"],["text","- Backend (Coffescript, Node.js, Redis, MongoDB)"],["text","- Admin panel (Angular 1.0)"],["text","- Hangouts integration (React)"],["heading",{"text":"Academic (2011-2016)","level":2}],["heading",{"text":"Jarvis (Master's Thesis) (2015-2016)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/scoiatael\/masters_thesis \/ https:\/\/github.com\/scoiatael\/Jarvis"}],["text","Visual Programming IDE for Clojure - focused on exploring new forms of programming."],["text","Written in ClojureScript, targeting Electron environment."],["heading",{"text":"Czero (2016)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/scoiatael\/czero"}],["text","Compiler for simpler C-like language with manual memory management, using LLVM in C++2014. Helped with lexer & parser, wrote final IR code generation."],["text","Technologies: C++2014, LLVM, Maphoon (custom parser generator, similar to Bison)."],["heading",{"text":"Zosia (2015)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/ksiuwr\/zosia16-site"}],["text","Registration website for students' winter camp. Written in Django, with Postgres as storage and HTTP+Websockets for transport layer. Frontend in React."],["heading",{"text":"Open Source (2017-)","level":2}],["heading",{"text":"Remacs (2019)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/remacs\/remacs"}],["text","Rust incremental port of Emacs. Leverages Rust compatibility with C ABI to rewrite function-by-function in a stable manner. So far contributed marginally, would love to continue."],["heading",{"text":"Colorls-rs (2017)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/scoiatael\/colorls-rs"}],["text","Rust utility to add icons to terminal `ls` command. Written as a study of reimplementing C functionality in Rust."],["heading",{"text":"Archai (2017)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/scoiatael\/archai"}],["text","Event sourcing data warehouse. Written in Go, using Cassandra as replicated, partitioned storage. Scalable horizontally. Later used & improved during work in Group Nine Media."],["heading",{"text":"Languages used in production:","level":1}],["text","- Ruby"],["text","- Javascript (and dialects: Coffeescript, Typescript, Ecmascript 6)"],["text","- Elixir"],["text","- Golang"],["text","- Python"],["text","- Chef"],["text","- Ansible"],["text","- Terraform"],["heading",{"text":"Education","level":1}],["heading",{"text":"Master of Computer Science (2011-2016)","level":2}],["text","Computer Science Institute, The University of Wroclaw"],["heading",{"text":"Interests","level":1}],["heading",{"text":"Professional","level":2}],["text","- Networking"],["text","- Machine learning and numerical analysis"],["text","- Computer graphics \/ game development"],["text","- Formal semantics of programming languages"],["heading",{"text":"Personal","level":2}],["text","- Windsurfing"],["text","- Yachting"],["text","- Tabletop and collectible card games"]] \ No newline at end of file diff --git a/src/resume/core.clj b/src/resume/core.clj new file mode 100644 index 0000000..a486e21 --- /dev/null +++ b/src/resume/core.clj @@ -0,0 +1,15 @@ +(ns resume.core + (:require [resume.org :as org] + [clojure.data.json :as json])) + +(def experience-source "org/experience.org") +(def resume-json-build "resume.json") + +(defn export-resume-json + "Convert org/experience.org into build/resume.json" + [] + (->> experience-source + slurp + org/parse + json/write-str + (spit resume-json-build))) diff --git a/src/resume/org.clj b/src/resume/org.clj new file mode 100644 index 0000000..a0b2e69 --- /dev/null +++ b/src/resume/org.clj @@ -0,0 +1,35 @@ +(ns resume.org + (:require [clojure.string :as str])) + + +(defn- tokenize-heading [line] + (let [[indent rest] (split-with #{\*} line)] + {:text (str/trim (apply str rest)) + :level (count indent)})) + + +(defn- tokenize-option [line] + (let [[_empty name value] (str/split line #":" 3)] + {:name name + :value (str/trim value)})) + +(defn- tokenize-line [line] + (condp #(str/starts-with? %2 %1) line + "*" [:heading (tokenize-heading line)] + ":" [:option (tokenize-option line)] + [:text line])) + + +(defn tokenize + "Split text into list of tokens" + [text] + (->> text + str/split-lines + (map str/trim) + (map tokenize-line))) + +(defn parse + "Parse org-mode file into AST" + [org-contents] + (-> org-contents + tokenize)) diff --git a/test/resume/core_test.clj b/test/resume/core_test.clj new file mode 100644 index 0000000..8c15d4f --- /dev/null +++ b/test/resume/core_test.clj @@ -0,0 +1,3 @@ +(ns resume.core-test + (:require [clojure.test :refer :all] + [resume.core :refer :all])) diff --git a/test/resume/org_test.clj b/test/resume/org_test.clj new file mode 100644 index 0000000..ac22f35 --- /dev/null +++ b/test/resume/org_test.clj @@ -0,0 +1,11 @@ +(ns resume.org-test + (:require [resume.org :refer :all] + [midje.sweet :refer :all])) + +(fact "Headings tokenize to text and level" + (tokenize "* Foo") => '([:heading {:text "Foo" :level 1}]) + (tokenize "**** Bar") => '([:heading {:text "Bar" :level 4}])) + +(fact "Options tokenize to name and value" + (tokenize ":ICON: foo") => '([:option {:name "ICON" :value "foo"}]) + (tokenize ":URL: http://foo") => '([:option {:name "URL" :value "http://foo"}])) From 507538cf9888f181ddb82f68a52ebe5c1cd06d4c Mon Sep 17 00:00:00 2001 From: "lukasz.czaplinski" Date: Tue, 12 Nov 2019 14:33:23 +0100 Subject: [PATCH 2/5] Finish parser for org-mode --- TODO.org | 5 +++-- org/experience.org | 4 ++-- project.clj | 6 ++++-- resume.json | 2 +- src/resume/org.clj | 38 ++++++++++++++++++++++++++++++-------- test/resume/org_test.clj | 25 ++++++++++++++++++++++++- 6 files changed, 64 insertions(+), 16 deletions(-) diff --git a/TODO.org b/TODO.org index 55903fa..71d5974 100644 --- a/TODO.org +++ b/TODO.org @@ -14,10 +14,11 @@ CLOSED: [2019-11-07 Thu 15:42] ** DONE Link to Github CLOSED: [2019-11-10 Sun 19:01] -* [33%] Write converter to resume.json +* [66%] Write converter to resume.json ** DONE Write tokenizer for org-mode CLOSED: [2019-11-11 Mon 21:27] -** TODO Write parser for org-mode +** DONE Write parser for org-mode + CLOSED: [2019-11-12 Tue 14:33] ** TODO Convert parsed org-mode into resume.json * TODO Write custom resume.json builder * TODO Write static site with stasis diff --git a/org/experience.org b/org/experience.org index ab724ee..4b7a673 100644 --- a/org/experience.org +++ b/org/experience.org @@ -5,8 +5,8 @@ - Update & storage mechanism (Algorithms), - Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark), - Final implementation (Go). -*** qUIZZPY (2018-2019) - :icon: HTTPS://D33WUBRFKI0L68.CLOUDFRONT.NET/B0E95300F043B4D28372F8CF19277DF987C936BC/B2032/QUIZZPY-LOGO.2AACC600.SVG +*** Quizzpy (2018-2019) + :icon: https://d33wubrfki0l68.cloudfront.net/b0e95300f043b4d28372f8cf19277df987c936bc/b2032/quizzpy-logo.2aacc600.svg Live trivia show, targeted for Polish audience. Worked in small cross-competence Scrum team. Focused on: - Architecture & scaling (Event-sourcing, CQRS) diff --git a/project.clj b/project.clj index 71602f9..bf34824 100644 --- a/project.clj +++ b/project.clj @@ -4,8 +4,10 @@ :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "https://www.eclipse.org/legal/epl-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"] - [org.clojure/data.json "0.2.6"]] + [org.clojure/data.json "0.2.6"] + [org.clojure/core.match "0.3.0"]] :aliases {"build-resume-json" ["run" "-m" "resume.core/export-resume-json"]} :repl-options {:init-ns resume.core} - :profiles {:test {:dependencies [[midje "1.9.9"]] + :profiles {:test {:dependencies [[midje "1.9.9"] + [nubank/matcher-combinators "1.2.4"]] :plugins [[lein-midje "3.2.1"]]}}) diff --git a/resume.json b/resume.json index 47df14e..168b711 100644 --- a/resume.json +++ b/resume.json @@ -1 +1 @@ -[["heading",{"text":"Experience","level":1}],["heading",{"text":"Tooploox (2015-2019)","level":2}],["heading",{"text":"One of major car manufacturers (2019)","level":3}],["text","Proof-of-concept for API working in car's head unit, providing information about broadcasts based on car location. Worked solo on:"],["text","- Update & storage mechanism (Algorithms),"],["text","- Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark),"],["text","- Final implementation (Go)."],["heading",{"text":"qUIZZPY (2018-2019)","level":3}],["option",{"name":"icon","value":"HTTPS:\/\/D33WUBRFKI0L68.CLOUDFRONT.NET\/B0E95300F043B4D28372F8CF19277DF987C936BC\/B2032\/QUIZZPY-LOGO.2AACC600.SVG"}],["text","Live trivia show, targeted for Polish audience."],["text","Worked in small cross-competence Scrum team. Focused on:"],["text","- Architecture & scaling (Event-sourcing, CQRS)"],["text","- Backend (Elixir, Postgres, Datadog)"],["text","- Streaming (OBS, Nginx, FFMpeg, RTMP, HLS)"],["text","- Infrastructure (Ansible, Terraform, Aws [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku)"],["heading",{"text":"Implementation of Holacracy (2018-2019)","level":3}],["option",{"name":"ICON","value":"https:\/\/images.squarespace-cdn.com\/content\/5d1239a79c02150001db74d4\/1561475648342-TU0F0W6TRID5IAKCKM0E\/Holacracy_Primary.png?format=1500w&content-type=image%2Fpng"}],["text","Part of initial group which evaluated various frameworks for power division in organisation."],["text","Later spearheaded integration of developers into Holacracy, as a framework for structuring company."],["heading",{"text":"Group Nine Media (2016-2018)","level":3}],["option",{"name":"ICON","value":"https:\/\/en.wikipedia.org\/wiki\/Group_Nine_Media#\/media\/File:Group_Nine_Media_Logo.svg"}],["text","Platform for monitoring & analysis of publishings on social platforms."],["text","Worked as tech lead of group which designed & implemented:"],["text","- Data pipeline (Lambda Architecture),"],["text","- Raw data storage & rehydration (Go, Ruby, Cassandra),"],["text","- Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API),"],["text","- Looker integration (Ruby, Postgres),"],["text","- Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin),"],["text","- Ingestion (Ruby, Facebook Graph API),"],["text","Also worked as part of Ops team, which cared for infrastructure using Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH."],["heading",{"text":"NowThis (2015-2016)","level":3}],["option",{"name":"ICON","value":"https:\/\/en.wikipedia.org\/wiki\/NowThis_News#\/media\/File:Now_This_Logo_White.svg"}],["text","Custom workflow & automatization platform."],["text","Worked part-time as part of several backend groups, co-authored:"],["text","- Architecture (Event-sourcing, CQRS),"],["text","- CI\/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby)."],["heading",{"text":"Golem app (2015)","level":3}],["option",{"name":"ICON","value":"https:\/\/web.archive.org\/web\/20160318141954im_\/http:\/\/golemapp.com\/static\/images\/logo.png"}],["text","Remote camera control for iOS devices with Galileo."],["text","Solely responsible for:"],["text","- Backend (Coffescript, Node.js, Redis, MongoDB)"],["text","- Admin panel (Angular 1.0)"],["text","- Hangouts integration (React)"],["heading",{"text":"Academic (2011-2016)","level":2}],["heading",{"text":"Jarvis (Master's Thesis) (2015-2016)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/scoiatael\/masters_thesis \/ https:\/\/github.com\/scoiatael\/Jarvis"}],["text","Visual Programming IDE for Clojure - focused on exploring new forms of programming."],["text","Written in ClojureScript, targeting Electron environment."],["heading",{"text":"Czero (2016)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/scoiatael\/czero"}],["text","Compiler for simpler C-like language with manual memory management, using LLVM in C++2014. Helped with lexer & parser, wrote final IR code generation."],["text","Technologies: C++2014, LLVM, Maphoon (custom parser generator, similar to Bison)."],["heading",{"text":"Zosia (2015)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/ksiuwr\/zosia16-site"}],["text","Registration website for students' winter camp. Written in Django, with Postgres as storage and HTTP+Websockets for transport layer. Frontend in React."],["heading",{"text":"Open Source (2017-)","level":2}],["heading",{"text":"Remacs (2019)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/remacs\/remacs"}],["text","Rust incremental port of Emacs. Leverages Rust compatibility with C ABI to rewrite function-by-function in a stable manner. So far contributed marginally, would love to continue."],["heading",{"text":"Colorls-rs (2017)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/scoiatael\/colorls-rs"}],["text","Rust utility to add icons to terminal `ls` command. Written as a study of reimplementing C functionality in Rust."],["heading",{"text":"Archai (2017)","level":3}],["option",{"name":"URL","value":"https:\/\/github.com\/scoiatael\/archai"}],["text","Event sourcing data warehouse. Written in Go, using Cassandra as replicated, partitioned storage. Scalable horizontally. Later used & improved during work in Group Nine Media."],["heading",{"text":"Languages used in production:","level":1}],["text","- Ruby"],["text","- Javascript (and dialects: Coffeescript, Typescript, Ecmascript 6)"],["text","- Elixir"],["text","- Golang"],["text","- Python"],["text","- Chef"],["text","- Ansible"],["text","- Terraform"],["heading",{"text":"Education","level":1}],["heading",{"text":"Master of Computer Science (2011-2016)","level":2}],["text","Computer Science Institute, The University of Wroclaw"],["heading",{"text":"Interests","level":1}],["heading",{"text":"Professional","level":2}],["text","- Networking"],["text","- Machine learning and numerical analysis"],["text","- Computer graphics \/ game development"],["text","- Formal semantics of programming languages"],["heading",{"text":"Personal","level":2}],["text","- Windsurfing"],["text","- Yachting"],["text","- Tabletop and collectible card games"]] \ No newline at end of file +{"level":0,"text":[],"options":{},"children":[{"level":1,"heading":"Experience","text":[],"options":{},"children":[{"level":2,"heading":"Tooploox (2015-2019)","text":[],"options":{},"children":[{"level":3,"heading":"One of major car manufacturers (2019)","text":["Proof-of-concept for API working in car's head unit, providing information about broadcasts based on car location. Worked solo on:","- Update & storage mechanism (Algorithms),","- Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark),","- Final implementation (Go)."],"options":{},"children":[]},{"level":3,"heading":"qUIZZPY (2018-2019)","text":["Live trivia show, targeted for Polish audience.","Worked in small cross-competence Scrum team. Focused on:","- Architecture & scaling (Event-sourcing, CQRS)","- Backend (Elixir, Postgres, Datadog)","- Streaming (OBS, Nginx, FFMpeg, RTMP, HLS)","- Infrastructure (Ansible, Terraform, Aws [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku)"],"options":{"icon":"HTTPS:\/\/D33WUBRFKI0L68.CLOUDFRONT.NET\/B0E95300F043B4D28372F8CF19277DF987C936BC\/B2032\/QUIZZPY-LOGO.2AACC600.SVG"},"children":[]},{"level":3,"heading":"Implementation of Holacracy (2018-2019)","text":["Part of initial group which evaluated various frameworks for power division in organisation.","Later spearheaded integration of developers into Holacracy, as a framework for structuring company."],"options":{"ICON":"https:\/\/images.squarespace-cdn.com\/content\/5d1239a79c02150001db74d4\/1561475648342-TU0F0W6TRID5IAKCKM0E\/Holacracy_Primary.png?format=1500w&content-type=image%2Fpng"},"children":[]},{"level":3,"heading":"Group Nine Media (2016-2018)","text":["Platform for monitoring & analysis of publishings on social platforms.","Worked as tech lead of group which designed & implemented:","- Data pipeline (Lambda Architecture),","- Raw data storage & rehydration (Go, Ruby, Cassandra),","- Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API),","- Looker integration (Ruby, Postgres),","- Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin),","- Ingestion (Ruby, Facebook Graph API),","Also worked as part of Ops team, which cared for infrastructure using Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH."],"options":{"ICON":"https:\/\/en.wikipedia.org\/wiki\/Group_Nine_Media#\/media\/File:Group_Nine_Media_Logo.svg"},"children":[]},{"level":3,"heading":"NowThis (2015-2016)","text":["Custom workflow & automatization platform.","Worked part-time as part of several backend groups, co-authored:","- Architecture (Event-sourcing, CQRS),","- CI\/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby)."],"options":{"ICON":"https:\/\/en.wikipedia.org\/wiki\/NowThis_News#\/media\/File:Now_This_Logo_White.svg"},"children":[]},{"level":3,"heading":"Golem app (2015)","text":["Remote camera control for iOS devices with Galileo.","Solely responsible for:","- Backend (Coffescript, Node.js, Redis, MongoDB)","- Admin panel (Angular 1.0)","- Hangouts integration (React)"],"options":{"ICON":"https:\/\/web.archive.org\/web\/20160318141954im_\/http:\/\/golemapp.com\/static\/images\/logo.png"},"children":[]}]},{"level":2,"heading":"Academic (2011-2016)","text":[],"options":{},"children":[{"level":3,"heading":"Jarvis (Master's Thesis) (2015-2016)","text":["Visual Programming IDE for Clojure - focused on exploring new forms of programming.","Written in ClojureScript, targeting Electron environment."],"options":{"URL":"https:\/\/github.com\/scoiatael\/masters_thesis \/ https:\/\/github.com\/scoiatael\/Jarvis"},"children":[]},{"level":3,"heading":"Czero (2016)","text":["Compiler for simpler C-like language with manual memory management, using LLVM in C++2014. Helped with lexer & parser, wrote final IR code generation.","Technologies: C++2014, LLVM, Maphoon (custom parser generator, similar to Bison)."],"options":{"URL":"https:\/\/github.com\/scoiatael\/czero"},"children":[]},{"level":3,"heading":"Zosia (2015)","text":["Registration website for students' winter camp. Written in Django, with Postgres as storage and HTTP+Websockets for transport layer. Frontend in React."],"options":{"URL":"https:\/\/github.com\/ksiuwr\/zosia16-site"},"children":[]}]},{"level":2,"heading":"Open Source (2017-)","text":[],"options":{},"children":[{"level":3,"heading":"Remacs (2019)","text":["Rust incremental port of Emacs. Leverages Rust compatibility with C ABI to rewrite function-by-function in a stable manner. So far contributed marginally, would love to continue."],"options":{"URL":"https:\/\/github.com\/remacs\/remacs"},"children":[]},{"level":3,"heading":"Colorls-rs (2017)","text":["Rust utility to add icons to terminal `ls` command. Written as a study of reimplementing C functionality in Rust."],"options":{"URL":"https:\/\/github.com\/scoiatael\/colorls-rs"},"children":[]},{"level":3,"heading":"Archai (2017)","text":["Event sourcing data warehouse. Written in Go, using Cassandra as replicated, partitioned storage. Scalable horizontally. Later used & improved during work in Group Nine Media."],"options":{"URL":"https:\/\/github.com\/scoiatael\/archai"},"children":[]}]}]},{"level":1,"heading":"Languages used in production:","text":["- Ruby","- Javascript (and dialects: Coffeescript, Typescript, Ecmascript 6)","- Elixir","- Golang","- Python","- Chef","- Ansible","- Terraform"],"options":{},"children":[]},{"level":1,"heading":"Education","text":[],"options":{},"children":[{"level":2,"heading":"Master of Computer Science (2011-2016)","text":["Computer Science Institute, The University of Wroclaw"],"options":{},"children":[]}]},{"level":1,"heading":"Interests","text":[],"options":{},"children":[{"level":2,"heading":"Professional","text":["- Networking","- Machine learning and numerical analysis","- Computer graphics \/ game development","- Formal semantics of programming languages"],"options":{},"children":[]},{"level":2,"heading":"Personal","text":["- Windsurfing","- Yachting","- Tabletop and collectible card games"],"options":{},"children":[]}]}]} \ No newline at end of file diff --git a/src/resume/org.clj b/src/resume/org.clj index a0b2e69..d784a95 100644 --- a/src/resume/org.clj +++ b/src/resume/org.clj @@ -1,13 +1,12 @@ (ns resume.org - (:require [clojure.string :as str])) - + (:require [clojure.string :as str] + [clojure.core.match :refer [match]])) (defn- tokenize-heading [line] (let [[indent rest] (split-with #{\*} line)] {:text (str/trim (apply str rest)) :level (count indent)})) - (defn- tokenize-option [line] (let [[_empty name value] (str/split line #":" 3)] {:name name @@ -15,10 +14,9 @@ (defn- tokenize-line [line] (condp #(str/starts-with? %2 %1) line - "*" [:heading (tokenize-heading line)] - ":" [:option (tokenize-option line)] - [:text line])) - + "*" [:heading (tokenize-heading line)] + ":" [:option (tokenize-option line)] + [:text line])) (defn tokenize "Split text into list of tokens" @@ -28,8 +26,32 @@ (map str/trim) (map tokenize-line))) +(declare run-parser) + +(defn- descend [state token tokens] + (let [[_heading {level :level heading :text}] token + [new-state new-tokens] (run-parser {:level level :heading heading :text [] :options {} :children []} tokens)] + (run-parser (update-in state [:children] #(conj % new-state)) new-tokens))) + +(defn- run-parser [state tokens] + (if-let [token (first tokens)] + (match token + [:heading {:level level :text text}] (if (< (:level state) level) (descend state token (rest tokens)) [state tokens]) + [:text text] (run-parser (update-in state [:text] #(conj % text)) (rest tokens)) + [:option {:name name :value value}] (run-parser (update-in state [:options] #(assoc % name value)) (rest tokens))) + [state tokens])) + +(defn into-ast + "Combine array of tokens into AST" + [tokens] + (let [[final-state tokens] (run-parser {:level 0 :text [] :options {} :children []} tokens)] + (if (empty? tokens) + final-state + (throw (AssertionError. "Leftover tokens."))))) + (defn parse "Parse org-mode file into AST" [org-contents] (-> org-contents - tokenize)) + tokenize + into-ast)) diff --git a/test/resume/org_test.clj b/test/resume/org_test.clj index ac22f35..f68fa29 100644 --- a/test/resume/org_test.clj +++ b/test/resume/org_test.clj @@ -1,6 +1,7 @@ (ns resume.org-test (:require [resume.org :refer :all] - [midje.sweet :refer :all])) + [midje.sweet :refer :all] + [matcher-combinators.midje :refer [match]])) (fact "Headings tokenize to text and level" (tokenize "* Foo") => '([:heading {:text "Foo" :level 1}]) @@ -9,3 +10,25 @@ (fact "Options tokenize to name and value" (tokenize ":ICON: foo") => '([:option {:name "ICON" :value "foo"}]) (tokenize ":URL: http://foo") => '([:option {:name "URL" :value "http://foo"}])) + +(fact "Simple headings are parsed correctly" + (into-ast [[:heading {:text "Foo" :level 1}]]) => (match {:children [{:heading "Foo"}]})) + +(fact "Multiple headings are parsed correctly" + (into-ast [[:heading {:text "Foo" :level 1}] + [:heading {:text "Bar" :level 1}]]) => (match {:children [{:heading "Foo"} {:heading "Bar"}]})) + +(fact "Nested headings are parsed correctly" + (into-ast [[:heading {:text "Foo" :level 1}] + [:heading {:text "Baz" :level 2}] + [:heading {:text "Bar" :level 1}]]) => (match {:children [{:heading "Foo" :children [{:heading "Baz"}]} {:heading "Bar"}]})) + +(fact "Text is parsed correctly" + (into-ast [[:heading {:text "Foo" :level 1}] + [:text "bar"] + [:text "baz"]]) => (match {:children [{:heading "Foo" :text ["bar" "baz"]}]})) + +(fact "Options are parsed correctly" + (into-ast [[:heading {:text "Foo" :level 1}] + [:option {:name "URL" :value "https://foo.example"}] + [:text "baz"]]) => (match {:children [{:heading "Foo" :text ["baz"] :options {"URL" "https://foo.example"}}]})) From 4fe0d604d2b8ae2b7bab1006bc3081893e3c306a Mon Sep 17 00:00:00 2001 From: "lukasz.czaplinski" Date: Tue, 12 Nov 2019 16:58:38 +0100 Subject: [PATCH 3/5] Convert parsed org file into resume.json --- TODO.org | 5 +- org/experience.org | 137 +++++++++++++++++++++---------- project.clj | 3 +- resume.json | 2 +- src/resume/core.clj | 4 +- src/resume/resume_json.clj | 84 +++++++++++++++++++ test/resume/resume_json_test.clj | 53 ++++++++++++ 7 files changed, 240 insertions(+), 48 deletions(-) create mode 100644 src/resume/resume_json.clj create mode 100644 test/resume/resume_json_test.clj diff --git a/TODO.org b/TODO.org index 71d5974..3a971b4 100644 --- a/TODO.org +++ b/TODO.org @@ -14,12 +14,13 @@ CLOSED: [2019-11-07 Thu 15:42] ** DONE Link to Github CLOSED: [2019-11-10 Sun 19:01] -* [66%] Write converter to resume.json +* [100%] Write converter to resume.json ** DONE Write tokenizer for org-mode CLOSED: [2019-11-11 Mon 21:27] ** DONE Write parser for org-mode CLOSED: [2019-11-12 Tue 14:33] -** TODO Convert parsed org-mode into resume.json +** DONE Convert parsed org-mode into resume.json + CLOSED: [2019-11-12 Tue 16:58] * TODO Write custom resume.json builder * TODO Write static site with stasis https://cjohansen.no/building-static-sites-in-clojure-with-stasis/ diff --git a/org/experience.org b/org/experience.org index 4b7a673..266faa0 100644 --- a/org/experience.org +++ b/org/experience.org @@ -1,82 +1,133 @@ * Experience -** Tooploox (2015-2019) -*** One of major car manufacturers (2019) +** Tooploox + :FROM: 2014-06-07 + :TO: 2019-10-31 + Joined as a Junior, left on a path to Seniority after 5 years. In the meantime built through them products with many startups and startup-like companies. + Started as a junior backend developer (CoffeeScript, Redis, MongoDB). + Gradually worked up to Senior position around 2017. +** One of major car manufacturers + :FROM: 2019-09-01 + :TO: 2019-10-31 + :POSITION: Freelance researcher Proof-of-concept for API working in car's head unit, providing information about broadcasts based on car location. Worked solo on: - Update & storage mechanism (Algorithms), - Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark), - Final implementation (Go). -*** Quizzpy (2018-2019) - :icon: https://d33wubrfki0l68.cloudfront.net/b0e95300f043b4d28372f8cf19277df987c936bc/b2032/quizzpy-logo.2aacc600.svg +** Quizzpy + :ICON: https://d33wubrfki0l68.cloudfront.net/b0e95300f043b4d28372f8cf19277df987c936bc/b2032/quizzpy-logo.2aacc600.svg + :FROM: 2018-03-01 + :TO: 2019-09-01 + :POSITION: Tech Lead / Principle Software Engineer Live trivia show, targeted for Polish audience. Worked in small cross-competence Scrum team. Focused on: - Architecture & scaling (Event-sourcing, CQRS) - Backend (Elixir, Postgres, Datadog) - Streaming (OBS, Nginx, FFMpeg, RTMP, HLS) - Infrastructure (Ansible, Terraform, Aws [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku) -*** Implementation of Holacracy (2018-2019) +** Implementation of Holacracy at Tooploox :ICON: https://images.squarespace-cdn.com/content/5d1239a79c02150001db74d4/1561475648342-TU0F0W6TRID5IAKCKM0E/Holacracy_Primary.png?format=1500w&content-type=image%2Fpng + :FROM: 2018-09-01 + :TO: 2019-10-31 Part of initial group which evaluated various frameworks for power division in organisation. Later spearheaded integration of developers into Holacracy, as a framework for structuring company. -*** Group Nine Media (2016-2018) +** Group Nine Media :ICON: https://en.wikipedia.org/wiki/Group_Nine_Media#/media/File:Group_Nine_Media_Logo.svg + :FROM: 2016-01-01 + :TO: 2018-03-01 + :POSITION: Data pipeline Tech Lead Platform for monitoring & analysis of publishings on social platforms. Worked as tech lead of group which designed & implemented: - Data pipeline (Lambda Architecture), - - Raw data storage & rehydration (Go, Ruby, Cassandra), + - Warehousing (Go, Ruby, Cassandra), - Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API), - Looker integration (Ruby, Postgres), - Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin), - Ingestion (Ruby, Facebook Graph API), Also worked as part of Ops team, which cared for infrastructure using Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH. -*** NowThis (2015-2016) +** NowThis :ICON: https://en.wikipedia.org/wiki/NowThis_News#/media/File:Now_This_Logo_White.svg + :FROM: 2014-10-01 + :TO: 2016-01-01 + :POSITION: Backend Developer Custom workflow & automatization platform. Worked part-time as part of several backend groups, co-authored: - Architecture (Event-sourcing, CQRS), - CI/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby). -*** Golem app (2015) +** Golem app :ICON: https://web.archive.org/web/20160318141954im_/http://golemapp.com/static/images/logo.png + :FROM: 2014-06-07 + :TO: 2014-09-01 + :POSITION: Junior Fullstack Developer Remote camera control for iOS devices with Galileo. Solely responsible for: - Backend (Coffescript, Node.js, Redis, MongoDB) - Admin panel (Angular 1.0) - Hangouts integration (React) -** Academic (2011-2016) -*** Jarvis (Master's Thesis) (2015-2016) - :URL: https://github.com/scoiatael/masters_thesis / https://github.com/scoiatael/Jarvis - Visual Programming IDE for Clojure - focused on exploring new forms of programming. - Written in ClojureScript, targeting Electron environment. -*** Czero (2016) - :URL: https://github.com/scoiatael/czero - Compiler for simpler C-like language with manual memory management, using LLVM in C++2014. Helped with lexer & parser, wrote final IR code generation. - Technologies: C++2014, LLVM, Maphoon (custom parser generator, similar to Bison). -*** Zosia (2015) - :URL: https://github.com/ksiuwr/zosia16-site - Registration website for students' winter camp. Written in Django, with Postgres as storage and HTTP+Websockets for transport layer. Frontend in React. -** Open Source (2017-) -*** Remacs (2019) - :URL: https://github.com/remacs/remacs - Rust incremental port of Emacs. Leverages Rust compatibility with C ABI to rewrite function-by-function in a stable manner. So far contributed marginally, would love to continue. -*** Colorls-rs (2017) - :URL: https://github.com/scoiatael/colorls-rs - Rust utility to add icons to terminal `ls` command. Written as a study of reimplementing C functionality in Rust. -*** Archai (2017) - :URL: https://github.com/scoiatael/archai - Event sourcing data warehouse. Written in Go, using Cassandra as replicated, partitioned storage. Scalable horizontally. Later used & improved during work in Group Nine Media. -* Languages used in production: -- Ruby -- Javascript (and dialects: Coffeescript, Typescript, Ecmascript 6) -- Elixir -- Golang -- Python -- Chef -- Ansible -- Terraform +* Skills +** Backend + :LEVEL: Senior + Golang + Elixir + Ruby + Node.js (Coffeescript, Typescript, ES6) + Postgres + Redis + Cassandra +** Ops + :LEVEL: Senior + Chef + Ansible + Terraform + Computing Clouds + CDNs + Docker / Kubernetes + Networking +** Frontend + :LEVEL: Mid + Javascript (Coffeescript, Typescript, ES6) + Sass + React / Redux + Vue.js +** Big Data + :LEVEL: Mid + Python (PySpark, Pandas, Jupter) + BigQuery +** Architecture + :LEVEL: Mid + EventSourcing + CQRS + DDD + Lambda architecture +** Delivering products + :LEVEL: Mid + Agile development + Jira + Zenhub + Scrum * Education ** Master of Computer Science (2011-2016) - Computer Science Institute, The University of Wroclaw -* Interests -** Professional + :FROM: 2011-10-01 + :TO: 2016-11-07 + :DEGREE: Masters + :INSTITUTION: University of Wroclaw + :AREA: Computer Science + Computer Science Institute, University of Wroclaw +* Basics + :NAME: Łukasz Czapliński + :LABEL: Web Developer / Architect + :EMAIL: lukasz@czaplin.ski + :SUMMARY: I'm a fullstack with a focus on delivering & evolving products, not simply building features according to schedule. I'm open to working both remotely and on-site. +** Location + :CITY: Wrocław + :COUNTRY: PL +** Profiles +*** Github + :USERNAME: scoiatael + :URL: https://github.com/scoiatael +*** Keybase + :USERNAME: scoiatael + :URL: https://keybase.io/scoiatael +** Professional interests - Networking - Machine learning and numerical analysis - Computer graphics / game development diff --git a/project.clj b/project.clj index bf34824..a262350 100644 --- a/project.clj +++ b/project.clj @@ -8,6 +8,7 @@ [org.clojure/core.match "0.3.0"]] :aliases {"build-resume-json" ["run" "-m" "resume.core/export-resume-json"]} :repl-options {:init-ns resume.core} - :profiles {:test {:dependencies [[midje "1.9.9"] + :profiles { ;:dev {:dependencies [org.clojure/tools.trace "0.7.10"]} + :test {:dependencies [[midje "1.9.9"] [nubank/matcher-combinators "1.2.4"]] :plugins [[lein-midje "3.2.1"]]}}) diff --git a/resume.json b/resume.json index 168b711..06b51de 100644 --- a/resume.json +++ b/resume.json @@ -1 +1 @@ -{"level":0,"text":[],"options":{},"children":[{"level":1,"heading":"Experience","text":[],"options":{},"children":[{"level":2,"heading":"Tooploox (2015-2019)","text":[],"options":{},"children":[{"level":3,"heading":"One of major car manufacturers (2019)","text":["Proof-of-concept for API working in car's head unit, providing information about broadcasts based on car location. Worked solo on:","- Update & storage mechanism (Algorithms),","- Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark),","- Final implementation (Go)."],"options":{},"children":[]},{"level":3,"heading":"qUIZZPY (2018-2019)","text":["Live trivia show, targeted for Polish audience.","Worked in small cross-competence Scrum team. Focused on:","- Architecture & scaling (Event-sourcing, CQRS)","- Backend (Elixir, Postgres, Datadog)","- Streaming (OBS, Nginx, FFMpeg, RTMP, HLS)","- Infrastructure (Ansible, Terraform, Aws [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku)"],"options":{"icon":"HTTPS:\/\/D33WUBRFKI0L68.CLOUDFRONT.NET\/B0E95300F043B4D28372F8CF19277DF987C936BC\/B2032\/QUIZZPY-LOGO.2AACC600.SVG"},"children":[]},{"level":3,"heading":"Implementation of Holacracy (2018-2019)","text":["Part of initial group which evaluated various frameworks for power division in organisation.","Later spearheaded integration of developers into Holacracy, as a framework for structuring company."],"options":{"ICON":"https:\/\/images.squarespace-cdn.com\/content\/5d1239a79c02150001db74d4\/1561475648342-TU0F0W6TRID5IAKCKM0E\/Holacracy_Primary.png?format=1500w&content-type=image%2Fpng"},"children":[]},{"level":3,"heading":"Group Nine Media (2016-2018)","text":["Platform for monitoring & analysis of publishings on social platforms.","Worked as tech lead of group which designed & implemented:","- Data pipeline (Lambda Architecture),","- Raw data storage & rehydration (Go, Ruby, Cassandra),","- Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API),","- Looker integration (Ruby, Postgres),","- Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin),","- Ingestion (Ruby, Facebook Graph API),","Also worked as part of Ops team, which cared for infrastructure using Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH."],"options":{"ICON":"https:\/\/en.wikipedia.org\/wiki\/Group_Nine_Media#\/media\/File:Group_Nine_Media_Logo.svg"},"children":[]},{"level":3,"heading":"NowThis (2015-2016)","text":["Custom workflow & automatization platform.","Worked part-time as part of several backend groups, co-authored:","- Architecture (Event-sourcing, CQRS),","- CI\/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby)."],"options":{"ICON":"https:\/\/en.wikipedia.org\/wiki\/NowThis_News#\/media\/File:Now_This_Logo_White.svg"},"children":[]},{"level":3,"heading":"Golem app (2015)","text":["Remote camera control for iOS devices with Galileo.","Solely responsible for:","- Backend (Coffescript, Node.js, Redis, MongoDB)","- Admin panel (Angular 1.0)","- Hangouts integration (React)"],"options":{"ICON":"https:\/\/web.archive.org\/web\/20160318141954im_\/http:\/\/golemapp.com\/static\/images\/logo.png"},"children":[]}]},{"level":2,"heading":"Academic (2011-2016)","text":[],"options":{},"children":[{"level":3,"heading":"Jarvis (Master's Thesis) (2015-2016)","text":["Visual Programming IDE for Clojure - focused on exploring new forms of programming.","Written in ClojureScript, targeting Electron environment."],"options":{"URL":"https:\/\/github.com\/scoiatael\/masters_thesis \/ https:\/\/github.com\/scoiatael\/Jarvis"},"children":[]},{"level":3,"heading":"Czero (2016)","text":["Compiler for simpler C-like language with manual memory management, using LLVM in C++2014. Helped with lexer & parser, wrote final IR code generation.","Technologies: C++2014, LLVM, Maphoon (custom parser generator, similar to Bison)."],"options":{"URL":"https:\/\/github.com\/scoiatael\/czero"},"children":[]},{"level":3,"heading":"Zosia (2015)","text":["Registration website for students' winter camp. Written in Django, with Postgres as storage and HTTP+Websockets for transport layer. Frontend in React."],"options":{"URL":"https:\/\/github.com\/ksiuwr\/zosia16-site"},"children":[]}]},{"level":2,"heading":"Open Source (2017-)","text":[],"options":{},"children":[{"level":3,"heading":"Remacs (2019)","text":["Rust incremental port of Emacs. Leverages Rust compatibility with C ABI to rewrite function-by-function in a stable manner. So far contributed marginally, would love to continue."],"options":{"URL":"https:\/\/github.com\/remacs\/remacs"},"children":[]},{"level":3,"heading":"Colorls-rs (2017)","text":["Rust utility to add icons to terminal `ls` command. Written as a study of reimplementing C functionality in Rust."],"options":{"URL":"https:\/\/github.com\/scoiatael\/colorls-rs"},"children":[]},{"level":3,"heading":"Archai (2017)","text":["Event sourcing data warehouse. Written in Go, using Cassandra as replicated, partitioned storage. Scalable horizontally. Later used & improved during work in Group Nine Media."],"options":{"URL":"https:\/\/github.com\/scoiatael\/archai"},"children":[]}]}]},{"level":1,"heading":"Languages used in production:","text":["- Ruby","- Javascript (and dialects: Coffeescript, Typescript, Ecmascript 6)","- Elixir","- Golang","- Python","- Chef","- Ansible","- Terraform"],"options":{},"children":[]},{"level":1,"heading":"Education","text":[],"options":{},"children":[{"level":2,"heading":"Master of Computer Science (2011-2016)","text":["Computer Science Institute, The University of Wroclaw"],"options":{},"children":[]}]},{"level":1,"heading":"Interests","text":[],"options":{},"children":[{"level":2,"heading":"Professional","text":["- Networking","- Machine learning and numerical analysis","- Computer graphics \/ game development","- Formal semantics of programming languages"],"options":{},"children":[]},{"level":2,"heading":"Personal","text":["- Windsurfing","- Yachting","- Tabletop and collectible card games"],"options":{},"children":[]}]}]} \ No newline at end of file +{"basics":{"location":{"city":"Wroc\u0142aw","countryCode":"PL"},"name":"\u0141ukasz Czapli\u0144ski","label":"Web Developer \/ Architect","email":"lukasz@czaplin.ski","summary":"I'm a fullstack with a focus on delivering & evolving products, not simply building features according to schedule. I'm open to working both remotely and on-site.","profiles":[{"url":"https:\/\/github.com\/scoiatael","username":"scoiatael","network":"Github"},{"url":"https:\/\/keybase.io\/scoiatael","username":"scoiatael","network":"Keybase"}]},"education":[{"endDate":"2016-11-07","startDate":"2011-10-01","area":"Computer Science","studyType":"Masters","institution":"University of Wroclaw"}],"references":[],"skills":[{"keywords":["Golang","Elixir","Ruby","Node.js (Coffeescript, Typescript, ES6)","Postgres","Redis","Cassandra"],"level":"Senior","name":"Backend"},{"keywords":["Chef","Ansible","Terraform","Computing Clouds","CDNs","Docker \/ Kubernetes","Networking"],"level":"Senior","name":"Ops"},{"keywords":["Javascript (Coffeescript, Typescript, ES6)","Sass","React \/ Redux","Vue.js"],"level":"Mid","name":"Frontend"},{"keywords":["Python (PySpark, Pandas, Jupter)","BigQuery"],"level":"Mid","name":"Big Data"},{"keywords":["EventSourcing","CQRS","DDD","Lambda architecture"],"level":"Mid","name":"Architecture"},{"keywords":["Agile development","Jira","Zenhub","Scrum"],"level":"Mid","name":"Delivering products"}],"awards":[],"work":[{"summary":"Joined as a Junior, left on a path to Seniority after 5 years. In the meantime built through them products with many startups and startup-like companies.","company":"Tooploox","position":null,"startDate":"2014-06-07","endDate":"2019-10-31","highlights":["Started as a junior backend developer (CoffeeScript, Redis, MongoDB).","Gradually worked up to Senior position around 2017."]},{"summary":"Proof-of-concept for API working in car's head unit, providing information about broadcasts based on car location. Worked solo on:","company":"One of major car manufacturers","position":"Freelance researcher","startDate":"2019-09-01","endDate":"2019-10-31","highlights":["- Update & storage mechanism (Algorithms),","- Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark),","- Final implementation (Go)."]},{"summary":"Live trivia show, targeted for Polish audience.","company":"Quizzpy","position":"Tech Lead \/ Principle Software Engineer","startDate":"2018-03-01","endDate":"2019-09-01","highlights":["Worked in small cross-competence Scrum team. Focused on:","- Architecture & scaling (Event-sourcing, CQRS)","- Backend (Elixir, Postgres, Datadog)","- Streaming (OBS, Nginx, FFMpeg, RTMP, HLS)","- Infrastructure (Ansible, Terraform, Aws [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku)"]},{"summary":"Part of initial group which evaluated various frameworks for power division in organisation.","company":"Implementation of Holacracy at Tooploox","position":null,"startDate":"2018-09-01","endDate":"2019-10-31","highlights":["Later spearheaded integration of developers into Holacracy, as a framework for structuring company."]},{"summary":"Platform for monitoring & analysis of publishings on social platforms.","company":"Group Nine Media","position":"Data pipeline Tech Lead","startDate":"2016-01-01","endDate":"2018-03-01","highlights":["Worked as tech lead of group which designed & implemented:","- Data pipeline (Lambda Architecture),","- Warehousing (Go, Ruby, Cassandra),","- Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API),","- Looker integration (Ruby, Postgres),","- Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin),","- Ingestion (Ruby, Facebook Graph API),","Also worked as part of Ops team, which cared for infrastructure using Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH."]},{"summary":"Custom workflow & automatization platform.","company":"NowThis","position":"Backend Developer","startDate":"2014-10-01","endDate":"2016-01-01","highlights":["Worked part-time as part of several backend groups, co-authored:","- Architecture (Event-sourcing, CQRS),","- CI\/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby)."]},{"summary":"Remote camera control for iOS devices with Galileo.","company":"Golem app","position":"Junior Fullstack Developer","startDate":"2014-06-07","endDate":"2014-09-01","highlights":["Solely responsible for:","- Backend (Coffescript, Node.js, Redis, MongoDB)","- Admin panel (Angular 1.0)","- Hangouts integration (React)"]}],"meta":{"theme":"elegant"}} \ No newline at end of file diff --git a/src/resume/core.clj b/src/resume/core.clj index a486e21..d54374b 100644 --- a/src/resume/core.clj +++ b/src/resume/core.clj @@ -1,6 +1,7 @@ (ns resume.core (:require [resume.org :as org] - [clojure.data.json :as json])) + [clojure.data.json :as json] + [resume.resume-json :as resume-json])) (def experience-source "org/experience.org") (def resume-json-build "resume.json") @@ -11,5 +12,6 @@ (->> experience-source slurp org/parse + resume-json/export json/write-str (spit resume-json-build))) diff --git a/src/resume/resume_json.clj b/src/resume/resume_json.clj new file mode 100644 index 0000000..448f84b --- /dev/null +++ b/src/resume/resume_json.clj @@ -0,0 +1,84 @@ +(ns resume.resume-json) + +(defn export-education + "Convert org section about education into resume.json format" + [education] + (let [{{from "FROM" + to "TO" + area "AREA" + degree "DEGREE" + institution "INSTITUTION"} :options} education] + {:endDate to + :startDate from + :area area + :studyType degree + :institution institution})) + +(defn export-skills + "Convert org section about education into resume.json format" + [skill] + (let [{{level "LEVEL"} :options + area :heading + keywords :text} skill] + {:keywords keywords + :level level + :name area})) + +(defn sections-into-map + "Create lookup map from sections in org file" + [org] + (let [{sections :children} org] + (->> sections + (map #(vector (:heading %) %)) + (into {})))) + +(defn- export-profile [profile] + (let [{network :heading + {username "USERNAME" + url "URL"} :options} profile] + {:url url + :username username + :network network})) + +(defn export-basics + "Convert org section about myself into resume.json format" + [basics] + (let [subsections (sections-into-map basics) + {{{city "CITY" + country "COUNTRY"} :options} "Location" + {profiles :children} "Profiles"} subsections + {{name "NAME" + label "LABEL" + email "EMAIL" + summary "SUMMARY"} :options} basics] + {:location {:city city :countryCode country} + :name name + :label label + :email email + :summary summary + :profiles (map export-profile profiles)})) + +(defn export-experience + "Convert org section about work experience into resume.json format" + [experience] + (let [{options :options + text :text + name :heading} experience] + {:summary (first text) + :company name + :position (get options "POSITION") + :startDate (get options "FROM") + :endDate (get options "TO") + :highlights (rest text)})) + +(defn export + "Exports parsed org experience file into resume.json format" + [org] + (let [sections-by-name (sections-into-map org)] + {:basics (->> sections-by-name (#(get % "Basics")) export-basics) + :education (->> sections-by-name (#(get % "Education")) :children (map export-education)) + :references [] + :skills (->> sections-by-name (#(get % "Skills")) :children (map export-skills)) + :awards [] + :work (->> sections-by-name (#(get % "Experience")) :children (map export-experience)) + :meta {:theme :elegant}})) diff --git a/test/resume/resume_json_test.clj b/test/resume/resume_json_test.clj new file mode 100644 index 0000000..d261a67 --- /dev/null +++ b/test/resume/resume_json_test.clj @@ -0,0 +1,53 @@ +(ns resume.resume-json-test + (:require [resume.resume-json :as sut] + [midje.sweet :as midje])) + +(midje/fact "Sections are properly flattened into map" + (sut/sections-into-map {:children [{:heading "foo"}]}) + => {"foo" {:heading "foo"}}) + +(midje/fact "Education is exported properly" + (sut/export-education {:options {"FROM" "2009-12-12" + "TO" "2012-01-12" + "AREA" "Software Engineering (incomplete)", + "DEGREE" "Bachelors" + "INSTITUTION" "The University of Queensland"}}) + => {:endDate "2012-01-12" + :startDate "2009-12-12" + :area "Software Engineering (incomplete)" + :studyType "Bachelors" + :institution "The University of Queensland"}) + +(midje/fact "Skills are exported properly" + (sut/export-skills {:options {"LEVEL" "Senior"} + :heading "Backend" + :text ["Node"]}) + => {:level "Senior" + :name "Backend" + :keywords ["Node"]}) + +(midje/fact "Basics are exported properly" + (sut/export-basics {:options {"NAME" "Foo Bar" "LABEL" "Frontend Architect" "EMAIL" "test@frotend.example" "SUMMARY" "Lorem Ipsum"} + :children [{:heading "Location" :options {"CITY" "Warszawa" "COUNTRY" "CH"}} + {:heading "Profiles" + :children [{:heading "SomeNetwork" :options {"USERNAME" "Yarpen" "URL" "https://face.in/yzigrin"}}]}]}) + => {:email "test@frotend.example" + :label "Frontend Architect" + :location {:city "Warszawa" :countryCode "CH"} + :name "Foo Bar" + :profiles [{:network "SomeNetwork" + :url "https://face.in/yzigrin" + :username "Yarpen"}] + :summary "Lorem Ipsum"}) + +(midje/fact "Work experience is exported properly" + (sut/export-experience {:options {"LEVEL" "Senior Javascript Developer" "FROM" "2018-03-01" "TO" "2019-03-01" "POSITION" "Senior Javascript Developer"} + :heading "Blockbid" + :text ["Blockbid is an Australian crypto currency exchange." "React, Apollo, Styled Components" "Node.js / Rails"]}) + => {:summary "Blockbid is an Australian crypto currency exchange." + :company "Blockbid" + :position "Senior Javascript Developer" + :startDate "2018-03-01" + :endDate "2019-03-01" + :highlights ["React, Apollo, Styled Components" + "Node.js / Rails"]}) From 84c495fac45bdb352671d58c31e87fb9acc50f94 Mon Sep 17 00:00:00 2001 From: "lukasz.czaplinski" Date: Tue, 12 Nov 2019 17:13:52 +0100 Subject: [PATCH 4/5] Publish CV via jsonresume.org --- org/experience.org | 60 ++++++++++++------------ project.clj | 2 +- resume.json | 109 +++++++++++++++++++++++++++++++++++++++++++- src/resume/core.clj | 4 +- 4 files changed, 139 insertions(+), 36 deletions(-) diff --git a/org/experience.org b/org/experience.org index 266faa0..ef4e9ec 100644 --- a/org/experience.org +++ b/org/experience.org @@ -2,67 +2,63 @@ ** Tooploox :FROM: 2014-06-07 :TO: 2019-10-31 - Joined as a Junior, left on a path to Seniority after 5 years. In the meantime built through them products with many startups and startup-like companies. - Started as a junior backend developer (CoffeeScript, Redis, MongoDB). - Gradually worked up to Senior position around 2017. + :POSITION: Fullstack Developer + Joined as a Junior, left on a path to Seniority after 5 years. In the meantime built through them products with many startups and startup-like companies. Started as a junior backend developer (CoffeeScript, Redis, MongoDB). Gradually worked up to Senior position around 2017. ** One of major car manufacturers :FROM: 2019-09-01 :TO: 2019-10-31 :POSITION: Freelance researcher Proof-of-concept for API working in car's head unit, providing information about broadcasts based on car location. Worked solo on: - - Update & storage mechanism (Algorithms), - - Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark), - - Final implementation (Go). + Update & storage mechanism (Algorithms), + Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark), + Final implementation (Go). ** Quizzpy :ICON: https://d33wubrfki0l68.cloudfront.net/b0e95300f043b4d28372f8cf19277df987c936bc/b2032/quizzpy-logo.2aacc600.svg :FROM: 2018-03-01 :TO: 2019-09-01 :POSITION: Tech Lead / Principle Software Engineer - Live trivia show, targeted for Polish audience. - Worked in small cross-competence Scrum team. Focused on: - - Architecture & scaling (Event-sourcing, CQRS) - - Backend (Elixir, Postgres, Datadog) - - Streaming (OBS, Nginx, FFMpeg, RTMP, HLS) - - Infrastructure (Ansible, Terraform, Aws [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku) + Live trivia show, targeted for Polish audience. Worked in small cross-competence Scrum team. Focused on: + Architecture & scaling (Event-sourcing, CQRS) + Backend (Elixir, Postgres, Datadog) + Streaming (OBS, Nginx, FFMpeg, RTMP, HLS) + Infrastructure (Ansible, Terraform, AWS [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku) ** Implementation of Holacracy at Tooploox :ICON: https://images.squarespace-cdn.com/content/5d1239a79c02150001db74d4/1561475648342-TU0F0W6TRID5IAKCKM0E/Holacracy_Primary.png?format=1500w&content-type=image%2Fpng :FROM: 2018-09-01 :TO: 2019-10-31 - Part of initial group which evaluated various frameworks for power division in organisation. - Later spearheaded integration of developers into Holacracy, as a framework for structuring company. + :POSITION: Engineering circle Facilitator / Strategy Guardian + Part of initial group which evaluated various frameworks for power division in organisation. Later spearheaded integration of developers into Holacracy, as a framework for structuring company. ** Group Nine Media :ICON: https://en.wikipedia.org/wiki/Group_Nine_Media#/media/File:Group_Nine_Media_Logo.svg :FROM: 2016-01-01 :TO: 2018-03-01 :POSITION: Data pipeline Tech Lead - Platform for monitoring & analysis of publishings on social platforms. - Worked as tech lead of group which designed & implemented: - - Data pipeline (Lambda Architecture), - - Warehousing (Go, Ruby, Cassandra), - - Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API), - - Looker integration (Ruby, Postgres), - - Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin), - - Ingestion (Ruby, Facebook Graph API), - Also worked as part of Ops team, which cared for infrastructure using Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH. + Platform for monitoring & analysis of publishings on social platforms. Tech lead of group which designed & implemented: + Data pipeline (Lambda Architecture), + Warehousing (Go, Ruby, Cassandra), + Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API), + Looker integration (Ruby, Postgres), + Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin), + Ingestion (Ruby, Facebook Graph API), + As part of Ops team, used Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH. ** NowThis :ICON: https://en.wikipedia.org/wiki/NowThis_News#/media/File:Now_This_Logo_White.svg :FROM: 2014-10-01 :TO: 2016-01-01 :POSITION: Backend Developer - Custom workflow & automatization platform. - Worked part-time as part of several backend groups, co-authored: - - Architecture (Event-sourcing, CQRS), - - CI/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby). + Custom workflow & automatization platform. Worked part-time as part of several backend groups, co-authored: + Architecture (Event-sourcing, CQRS), + CI/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby). ** Golem app :ICON: https://web.archive.org/web/20160318141954im_/http://golemapp.com/static/images/logo.png :FROM: 2014-06-07 :TO: 2014-09-01 :POSITION: Junior Fullstack Developer - Remote camera control for iOS devices with Galileo. - Solely responsible for: - - Backend (Coffescript, Node.js, Redis, MongoDB) - - Admin panel (Angular 1.0) - - Hangouts integration (React) + Remote camera control for iOS devices with Galileo. Solely responsible for: + Backend (Coffescript, Node.js, Redis, MongoDB) + Admin panel (Angular 1.0) + Hangouts integration (React) + Deployment (Vagrant, Debian, Fabric) * Skills ** Backend :LEVEL: Senior diff --git a/project.clj b/project.clj index a262350..5f9a4c3 100644 --- a/project.clj +++ b/project.clj @@ -4,7 +4,7 @@ :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "https://www.eclipse.org/legal/epl-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"] - [org.clojure/data.json "0.2.6"] + [cheshire "5.9.0"] [org.clojure/core.match "0.3.0"]] :aliases {"build-resume-json" ["run" "-m" "resume.core/export-resume-json"]} :repl-options {:init-ns resume.core} diff --git a/resume.json b/resume.json index 06b51de..cc20322 100644 --- a/resume.json +++ b/resume.json @@ -1 +1,108 @@ -{"basics":{"location":{"city":"Wroc\u0142aw","countryCode":"PL"},"name":"\u0141ukasz Czapli\u0144ski","label":"Web Developer \/ Architect","email":"lukasz@czaplin.ski","summary":"I'm a fullstack with a focus on delivering & evolving products, not simply building features according to schedule. I'm open to working both remotely and on-site.","profiles":[{"url":"https:\/\/github.com\/scoiatael","username":"scoiatael","network":"Github"},{"url":"https:\/\/keybase.io\/scoiatael","username":"scoiatael","network":"Keybase"}]},"education":[{"endDate":"2016-11-07","startDate":"2011-10-01","area":"Computer Science","studyType":"Masters","institution":"University of Wroclaw"}],"references":[],"skills":[{"keywords":["Golang","Elixir","Ruby","Node.js (Coffeescript, Typescript, ES6)","Postgres","Redis","Cassandra"],"level":"Senior","name":"Backend"},{"keywords":["Chef","Ansible","Terraform","Computing Clouds","CDNs","Docker \/ Kubernetes","Networking"],"level":"Senior","name":"Ops"},{"keywords":["Javascript (Coffeescript, Typescript, ES6)","Sass","React \/ Redux","Vue.js"],"level":"Mid","name":"Frontend"},{"keywords":["Python (PySpark, Pandas, Jupter)","BigQuery"],"level":"Mid","name":"Big Data"},{"keywords":["EventSourcing","CQRS","DDD","Lambda architecture"],"level":"Mid","name":"Architecture"},{"keywords":["Agile development","Jira","Zenhub","Scrum"],"level":"Mid","name":"Delivering products"}],"awards":[],"work":[{"summary":"Joined as a Junior, left on a path to Seniority after 5 years. In the meantime built through them products with many startups and startup-like companies.","company":"Tooploox","position":null,"startDate":"2014-06-07","endDate":"2019-10-31","highlights":["Started as a junior backend developer (CoffeeScript, Redis, MongoDB).","Gradually worked up to Senior position around 2017."]},{"summary":"Proof-of-concept for API working in car's head unit, providing information about broadcasts based on car location. Worked solo on:","company":"One of major car manufacturers","position":"Freelance researcher","startDate":"2019-09-01","endDate":"2019-10-31","highlights":["- Update & storage mechanism (Algorithms),","- Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark),","- Final implementation (Go)."]},{"summary":"Live trivia show, targeted for Polish audience.","company":"Quizzpy","position":"Tech Lead \/ Principle Software Engineer","startDate":"2018-03-01","endDate":"2019-09-01","highlights":["Worked in small cross-competence Scrum team. Focused on:","- Architecture & scaling (Event-sourcing, CQRS)","- Backend (Elixir, Postgres, Datadog)","- Streaming (OBS, Nginx, FFMpeg, RTMP, HLS)","- Infrastructure (Ansible, Terraform, Aws [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku)"]},{"summary":"Part of initial group which evaluated various frameworks for power division in organisation.","company":"Implementation of Holacracy at Tooploox","position":null,"startDate":"2018-09-01","endDate":"2019-10-31","highlights":["Later spearheaded integration of developers into Holacracy, as a framework for structuring company."]},{"summary":"Platform for monitoring & analysis of publishings on social platforms.","company":"Group Nine Media","position":"Data pipeline Tech Lead","startDate":"2016-01-01","endDate":"2018-03-01","highlights":["Worked as tech lead of group which designed & implemented:","- Data pipeline (Lambda Architecture),","- Warehousing (Go, Ruby, Cassandra),","- Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API),","- Looker integration (Ruby, Postgres),","- Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin),","- Ingestion (Ruby, Facebook Graph API),","Also worked as part of Ops team, which cared for infrastructure using Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH."]},{"summary":"Custom workflow & automatization platform.","company":"NowThis","position":"Backend Developer","startDate":"2014-10-01","endDate":"2016-01-01","highlights":["Worked part-time as part of several backend groups, co-authored:","- Architecture (Event-sourcing, CQRS),","- CI\/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby)."]},{"summary":"Remote camera control for iOS devices with Galileo.","company":"Golem app","position":"Junior Fullstack Developer","startDate":"2014-06-07","endDate":"2014-09-01","highlights":["Solely responsible for:","- Backend (Coffescript, Node.js, Redis, MongoDB)","- Admin panel (Angular 1.0)","- Hangouts integration (React)"]}],"meta":{"theme":"elegant"}} \ No newline at end of file +{ + "basics" : { + "location" : { + "city" : "Wrocław", + "countryCode" : "PL" + }, + "name" : "Łukasz Czapliński", + "label" : "Web Developer / Architect", + "email" : "lukasz@czaplin.ski", + "summary" : "I'm a fullstack with a focus on delivering & evolving products, not simply building features according to schedule. I'm open to working both remotely and on-site.", + "profiles" : [ { + "url" : "https://github.com/scoiatael", + "username" : "scoiatael", + "network" : "Github" + }, { + "url" : "https://keybase.io/scoiatael", + "username" : "scoiatael", + "network" : "Keybase" + } ] + }, + "education" : [ { + "endDate" : "2016-11-07", + "startDate" : "2011-10-01", + "area" : "Computer Science", + "studyType" : "Masters", + "institution" : "University of Wroclaw" + } ], + "references" : [ ], + "skills" : [ { + "keywords" : [ "Golang", "Elixir", "Ruby", "Node.js (Coffeescript, Typescript, ES6)", "Postgres", "Redis", "Cassandra" ], + "level" : "Senior", + "name" : "Backend" + }, { + "keywords" : [ "Chef", "Ansible", "Terraform", "Computing Clouds", "CDNs", "Docker / Kubernetes", "Networking" ], + "level" : "Senior", + "name" : "Ops" + }, { + "keywords" : [ "Javascript (Coffeescript, Typescript, ES6)", "Sass", "React / Redux", "Vue.js" ], + "level" : "Mid", + "name" : "Frontend" + }, { + "keywords" : [ "Python (PySpark, Pandas, Jupter)", "BigQuery" ], + "level" : "Mid", + "name" : "Big Data" + }, { + "keywords" : [ "EventSourcing", "CQRS", "DDD", "Lambda architecture" ], + "level" : "Mid", + "name" : "Architecture" + }, { + "keywords" : [ "Agile development", "Jira", "Zenhub", "Scrum" ], + "level" : "Mid", + "name" : "Delivering products" + } ], + "awards" : [ ], + "work" : [ { + "summary" : "Joined as a Junior, left on a path to Seniority after 5 years. In the meantime built through them products with many startups and startup-like companies. Started as a junior backend developer (CoffeeScript, Redis, MongoDB). Gradually worked up to Senior position around 2017.", + "company" : "Tooploox", + "position" : "Fullstack Developer", + "startDate" : "2014-06-07", + "endDate" : "2019-10-31", + "highlights" : [ ] + }, { + "summary" : "Proof-of-concept for API working in car's head unit, providing information about broadcasts based on car location. Worked solo on:", + "company" : "One of major car manufacturers", + "position" : "Freelance researcher", + "startDate" : "2019-09-01", + "endDate" : "2019-10-31", + "highlights" : [ "Update & storage mechanism (Algorithms),", "Data cleaning & update simulation (BigQuery, Python, Pandas, PySpark),", "Final implementation (Go)." ] + }, { + "summary" : "Live trivia show, targeted for Polish audience. Worked in small cross-competence Scrum team. Focused on:", + "company" : "Quizzpy", + "position" : "Tech Lead / Principle Software Engineer", + "startDate" : "2018-03-01", + "endDate" : "2019-09-01", + "highlights" : [ "Architecture & scaling (Event-sourcing, CQRS)", "Backend (Elixir, Postgres, Datadog)", "Streaming (OBS, Nginx, FFMpeg, RTMP, HLS)", "Infrastructure (Ansible, Terraform, AWS [EC2, S3, IAM, VPC, Lambda], Gcp [GKE, Big Query, Cloud SQL, Memory Store, Cloud Functions], Heroku)" ] + }, { + "summary" : "Part of initial group which evaluated various frameworks for power division in organisation. Later spearheaded integration of developers into Holacracy, as a framework for structuring company.", + "company" : "Implementation of Holacracy at Tooploox", + "position" : "Engineering circle Facilitator / Strategy Guardian", + "startDate" : "2018-09-01", + "endDate" : "2019-10-31", + "highlights" : [ ] + }, { + "summary" : "Platform for monitoring & analysis of publishings on social platforms. Tech lead of group which designed & implemented:", + "company" : "Group Nine Media", + "position" : "Data pipeline Tech Lead", + "startDate" : "2016-01-01", + "endDate" : "2018-03-01", + "highlights" : [ "Data pipeline (Lambda Architecture),", "Warehousing (Go, Ruby, Cassandra),", "Anomaly detection (Ruby, Redis, Postgres, Google Spreadsheets API),", "Looker integration (Ruby, Postgres),", "Data Science batch analysis framework (Python, Spark, Jupyter, Apache Zepplin),", "Ingestion (Ruby, Facebook Graph API),", "As part of Ops team, used Chef, Nomad, Consul, Hashicorp Vault, Datadog & Docker on OVH." ] + }, { + "summary" : "Custom workflow & automatization platform. Worked part-time as part of several backend groups, co-authored:", + "company" : "NowThis", + "position" : "Backend Developer", + "startDate" : "2014-10-01", + "endDate" : "2016-01-01", + "highlights" : [ "Architecture (Event-sourcing, CQRS),", "CI/CD pipeline (Jenkins, Docker, Nomad, Bash, Ruby)." ] + }, { + "summary" : "Remote camera control for iOS devices with Galileo. Solely responsible for:", + "company" : "Golem app", + "position" : "Junior Fullstack Developer", + "startDate" : "2014-06-07", + "endDate" : "2014-09-01", + "highlights" : [ "Backend (Coffescript, Node.js, Redis, MongoDB)", "Admin panel (Angular 1.0)", "Hangouts integration (React)", "Deployment (Vagrant, Debian, Fabric)" ] + } ], + "meta" : { + "theme" : "elegant" + } +} \ No newline at end of file diff --git a/src/resume/core.clj b/src/resume/core.clj index d54374b..a5020f0 100644 --- a/src/resume/core.clj +++ b/src/resume/core.clj @@ -1,6 +1,6 @@ (ns resume.core (:require [resume.org :as org] - [clojure.data.json :as json] + [cheshire.core :as json] [resume.resume-json :as resume-json])) (def experience-source "org/experience.org") @@ -13,5 +13,5 @@ slurp org/parse resume-json/export - json/write-str + (#(json/generate-string % {:pretty true})) (spit resume-json-build))) From 0c5817859e66dea8040f99937ed18200642aeb80 Mon Sep 17 00:00:00 2001 From: "lukasz.czaplinski" Date: Wed, 13 Nov 2019 16:23:53 +0100 Subject: [PATCH 5/5] chore: add documentation, bump version --- CHANGELOG.md | 8 ++++---- doc/intro.md | 10 +++++++++- project.clj | 5 ++--- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0f2977..83191b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Change Log All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/). -## [Unreleased] -### Changed -- Add tokenizer for org-mode +## [1.0.0] - 13.11.2019 +### Added +- Export to [json resume](jsonresume.org). -[Unreleased]: https://github.com/your-name/resume/compare/0.1.1...HEAD +[1.0.0]: https://github.com/scoiatael/resume/releases/v1.0.0 diff --git a/doc/intro.md b/doc/intro.md index 6252230..133f7a6 100644 --- a/doc/intro.md +++ b/doc/intro.md @@ -1,3 +1,11 @@ # Introduction to resume -TODO: write [great documentation](http://jacobian.org/writing/what-to-write/) +## Why? + +I used to write CV in TeX. This proved to be quite cumbersome to update, as it mixes presentation with data. I wanted something easier - like [org files in Emacs](https://orgmode.org). And then export it to look nicely. + +My first attempt uses [JSON](jsonresume.org). + +## Doing your own + +Open `org/experience.org` in your favourite editor, which hopefully supports Org files. Edit, and then run `lein build-resume.json`. This should give you updated `resume.json` in current directory. Now you can upload it, or convert to PDF by yourself. diff --git a/project.clj b/project.clj index 5f9a4c3..463e950 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject resume "0.1.0-SNAPSHOT" +(defproject resume "1.0.0" :description "Resume-from-org generator" :url "http://example.com/FIXME" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" @@ -8,7 +8,6 @@ [org.clojure/core.match "0.3.0"]] :aliases {"build-resume-json" ["run" "-m" "resume.core/export-resume-json"]} :repl-options {:init-ns resume.core} - :profiles { ;:dev {:dependencies [org.clojure/tools.trace "0.7.10"]} - :test {:dependencies [[midje "1.9.9"] + :profiles {:test {:dependencies [[midje "1.9.9"] [nubank/matcher-combinators "1.2.4"]] :plugins [[lein-midje "3.2.1"]]}})