<commit_before># Waffle-printer
A quick and dirty way of printing waffle cards.

We* needed a way to get our cards out of waffle.io 

We really like [git2pdf](https://github.com/pocketworks/git2pdf) by [Pocketworks](http://www.pocketworks.co.uk/) but because it pulls from Github the story points don't come through.

We got around this in the quickest dirtyest way we could. We might make it better in future if we need to, but for today this does the job.

## How

Clone this repo.

You need the `cards` json from the waffle page. You can get it by inspecting the page, going to Networks and waiting until the page has finished loading. It's just `cards` not `cards.json`. Copy the response body.

![an image of the inspector showing the payload](https://raw.githubusercontent.com/notionparallax/Waffle-printer/master/response.png)

Save it into `cards.json`

From inside this folder run `cat cards.json | ruby waffle-cards-printer.rb > cards.html`

Open `cards.html` and print it.

#so

This is super clunky. If you have any better ideas then we're all ears!

* We is @dawil and @notionparallax

![the outcome](https://lh3.googleusercontent.com/djRNCdOe1TE1EKYegx71wO3qbaCSDweZJdO6_CAbMLOm=w1459-h993-no)
<commit_msg>Update to reflect new ruby file<commit_after># Waffle-printer
A quick and dirty way of printing waffle cards.

We* needed a way to get our cards out of waffle.io 

We really like [git2pdf](https://github.com/pocketworks/git2pdf) by [Pocketworks](http://www.pocketworks.co.uk/) but because it pulls from Github the story points don't come through.

We got around this in the quickest dirtyest way we could. We might make it better in future if we need to, but for today this does the job.

## How

Clone this repo.

From inside this folder run `ruby waffle-cards-printer.rb`

Open `cards.html` and print it.

#so

This is super clunky. If you have any better ideas then we're all ears!

* We is @dawil and @notionparallax

![the outcome](https://lh3.googleusercontent.com/djRNCdOe1TE1EKYegx71wO3qbaCSDweZJdO6_CAbMLOm=w1459-h993-no)

{'fraction_non_alphanumeric': 0.08288639687957094, 'fraction_numerical': 0.015602145294978059, 'mean_word_length': 4.32987012987013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6731137', 'n_tokens_mistral': 715, 'n_tokens_neox': 684, 'n_words': 271}