Building Code Posters with Elixir
Creator of Commits.io(<a href="https://commits.io" rel="nofollow">https://commits.io</a>) here.<p>Love the project!<p>Note on trust: I've shipped out hundreds of posters since 2013. BTW you can create a Gist if 
you want to control access exactly. Hopefully Github will allow fine grained access
they are trying out in beta right now.<p>I'd love to send some PRs your way this weekend (I love elixir) about:<p><pre><code>  - Fonts - I've messed with so many fonts and test prints and trying hundreds of fonts. I finally settled with Fira Mono. Was probably the best that didn't bleed @ 4pt.

  - Margin - I ended up having a 1/2 inch margin to allow frames to not cut off letters, I don't think you do this?

  - Classification - How do you throw away vendor code? I found that most repos unfortunately have a huge amount of  generated code (JQuery, assets, compressed/minified JS)
</code></pre>
One final note, since each :text element has an x and y couldn't you create all the elements in
parallel and collect them at the end? That'll probably save you a lot of time on the generation
time.<p>By Far the hardest thing was to:<p><pre><code>  - Launch a single use instance
  - Clone a repo
  - Classify and remove any "generated" and vendor code
  - Create a poster (I use PDFs)
  - Take a lower quality screenshot (save the user's bandwidth)
  - Upload to S3 so the user can view it
  - destroy single use instance
</code></pre>
all within 3 to 4 seconds<p>I ended up going from Ruby => Clojure => Go => Rust for the speed.<p>BTW if anyone just wants a poster <a href="https://commits.io/discount/10off" rel="nofollow">https://commits.io/discount/10off</a> to get 10% off. But I think
you should at least try to generate it with elixir_poster first.