Code Monkey home page Code Monkey logo

cv's Introduction

This repo contains the source for my CV:

  • generate.py creates a website and PDF from a shared YAML source by using Jinja templates.
  • The publications are rendered from a single BibTeX file. The abstracts are displayed in the website output and the selected publications here are highlighted.
  • The YAML source links to all author websites, which will automatically be added to the publication lists in the website and PDF.
  • GitHub stars are automatically scraped and cached on disk.

Building and running

Dependencies are included in requirements.txt and can be installed using pip with pip3 install -r requirements.txt. make will call generate.py and build the LaTeX documents with latexmk and biber. The Makefile can also:

  1. Stage to my website with make stage,
  2. Start a local jekyll server of my website with updated documents with make jekyll, and
  3. Push updated documents to my website with make push.

What to modify

Change the content in cv.yaml. You should also look through the template files to make sure there isn't any special-case code that needs to be modified. The Makefile can also start a Jekyll server and push the new documents to another repository with make jekyll and make push.

Warnings

  1. Strings in cv.yaml should be LaTeX (though, the actual LaTeX formatting should be in the left in the templates as much as possible).
  2. If you do include any new LaTeX commands, make sure that one of the REPLACEMENTS in generate.py converts them properly.
  3. The LaTeX templates use modified Jinja delimiters to avoid overlaps with normal LaTeX. See generate.py for details.

Other people using this code

You are welcome to use this code with or without attribution in the documents you produce, and add a link back here if you want!

cv's People

Contributors

bamos avatar hollowman6 avatar jetheurer avatar maples7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cv's Issues

bibtexparser 0.6 isn't working

Perhaps this is a bug with the 0.6 release in the upstream project, 0.5.5 is working fine.

In publications.bib,
bibtexparser 0.6 doesn't show amos2013applying as having a year,
even though a year is in the bibtex file.

{'id': 'hu2014case', 'title': 'The Case for Offload Shaping', 'booktitle': '', 'type': 'inproceedings', 'author': ['W. Hu', '**B. Amos**', 'Z. Chen', 'K. Ha', 'W. Richter', 'P. Pillai', 'B. Gilbert', 'J. Harkes', 'M. Satyanarayanan'], 'year': 'submitted'}
{'id': 'amos2014performance', 'title': 'Performance study of Spindle, a web analytics query engine\nimplemented in Spark', 'booktitle': 'Proceedings of the 2014 IEEE International Conference on Cloud Computing Technology and Science (CloudCom), Big Data Track', 'type': 'inproceedings', 'author': ['**B. Amos**', 'D. Tompkins'], 'year': '2014'}
{'id': 'andrew2014global', 'title': 'Global Parameter Estimation for a Eukaryotic Cell Cycle Model\nin Systems Biology', 'booktitle': '2014 Summer Simulation Multiconference, Society for Modeling and Simulation International', 'type': 'inproceedings', 'author': ['T. Andrew', '**B. Amos**', 'D. Easterling', 'C. Oguz', 'W. Baumann', 'J. Tyson', 'L. Watson'], 'year': '2014'}
{'id': 'amos2014fortran', 'title': 'Fortran 95 implementation of QNSTOP for global and\nstochastic optimization', 'booktitle': '2014 Spring Simulation Multiconference, 22nd High Performance Computer Symposium, Society for Modeling and Simulation International', 'type': 'inproceedings', 'author': ['**B. Amos**', 'D. Easterling', 'L. Watson', 'B. Castle', 'M. Trosset', 'W. Thacker'], 'year': '2014'}
{'id': 'amos2013applying', 'title': 'Applying machine learning classifiers to dynamic Android\nmalware detection at scale', 'booktitle': "IWCMC'13 Security, Trust and Privacy Symposium", 'author': ['**B. Amos**', 'H. Turner', 'J. White'], 'type': 'inproceedings'}
Traceback (most recent call last):
  File "./generate.py", line 156, in <module>
    generate("md")
  File "./generate.py", line 134, in generate
    contents = get_bibtex_md(p, pub_types)
  File "./generate.py", line 100, in get_bibtex_md
    details += " " + item['year'] + "<br><br>\n"
KeyError: 'year'

Long dash is translated incorrectly

If the input text (in cv.yaml) contains long dash ("—"), it's incorrectly translated in PDF output and the result looks like "âĂŤ".

The .tex file looks OK, so it's the PDF creation failure. How can I fix that?

Cyrillic letters fail as well — looks like the problem is wrong encoding. How to change it?

I'm trying to build on OS X, using texlive distribution from https://tug.org/mactex/

AttributeError while running generate.py

Command make stage gives:

./generate.py cv.yaml
Processing section: about
Processing section: positions
Processing section: education
Processing section: industry
Processing section: honors
Processing section: all_publications
Processing section: repos
Traceback (most recent call last):
  File "./generate.py", line 616, in <module>
    main()
  File "./generate.py", line 611, in main
    process_resume(LATEX_CONTEXT, yaml_data, args.preview)
  File "./generate.py", line 578, in process_resume
    rendered_resume = context.render_resume(yaml_data)
  File "./generate.py", line 476, in render_resume
    add_repo_data(self, section_content)
  File "./generate.py", line 388, in add_repo_data
    item['stars'] = soup.find(
AttributeError: 'NoneType' object has no attribute 'text'
make: *** [Makefile:35: build/cv.tex] Error 1

What's goes wrong?

UnicodeEncodeError:

I was getting this error:

Traceback (most recent call last):
  File "generate.py", line 289, in <module>
    main()
  File "generate.py", line 284, in main
    process_resume(LATEX_CONTEXT, yaml_data, args.preview)
  File "generate.py", line 255, in process_resume
    context.write_to_outfile(rendered_resume)
  File "generate.py", line 209, in write_to_outfile
    out.write(output_data)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1387: ordinal not in range(128)

is fixed with:

output_data = output_data.encode('utf-8')

jinja2.exceptions.TemplateNotFound: sections\education.tex (On Windows?)

I'm looking into this cv project for myself, but it doesn't seem to work out of the box, at least on windows.

I end up with this:

D:\Riley\Desktop\cv-master>generate.py -p cv.yaml
  + Processing section: interests
  + Processing section: education
Traceback (most recent call last):
  File "D:\Riley\Desktop\cv-master\generate.py", line 289, in <module>
    main()
  File "D:\Riley\Desktop\cv-master\generate.py", line 284, in main
    process_resume(LATEX_CONTEXT, yaml_data, args.preview)
  File "D:\Riley\Desktop\cv-master\generate.py", line 251, in process_resume
    rendered_resume = context.render_resume(yaml_data)
  File "D:\Riley\Desktop\cv-master\generate.py", line 199, in render_resume
    section_template_name, section_data)
  File "D:\Riley\Desktop\cv-master\generate.py", line 150, in _render_template
    return self._jinja_env.get_template(template_name).render(yaml_data)
  File "C:\Python34\lib\site-packages\jinja2\environment.py", line 791, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "C:\Python34\lib\site-packages\jinja2\environment.py", line 765, in _load_template
    template = self.loader.load(self, name, globals)
  File "C:\Python34\lib\site-packages\jinja2\loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "C:\Python34\lib\site-packages\jinja2\loaders.py", line 160, in get_source
    pieces = split_template_path(template)
  File "C:\Python34\lib\site-packages\jinja2\loaders.py", line 31, in split_template_path
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: sections\education.tex

Any chance that I'm doing something wrong?
All I did was clone, pip3 install -r requirements.txt, generate.py cv.yaml

Problem with "Projects" section

It would seem that the projects section in cv.yaml template has been deprecated since there is no projects.tex template available
So how do I add the projects section?, I am not sure what is the new alternative? or should I come up with my own template?
Thanks for the awesome cv generator
Regards,
Kamra

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.