Skip to content

Commit

Permalink
rem details from table, images now links
Browse files Browse the repository at this point in the history
  • Loading branch information
brsloan committed Mar 12, 2024
1 parent da75d6e commit b8f291e
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 45 deletions.
42 changes: 21 additions & 21 deletions data/DIY_writerdecks.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
| Date | Name | Image |
| ---- | ---- | ---- |
| 2018-01-30 | [Ultimate Writer](https://github.com/picnoir/ultimate-writer) by NinjaTrappeur | ![photo of a writing device](/images/diy/UltimateWriter.jpg) |
| 2019-03-22 | [SPUDwrite](https://spectrum.ieee.org/write-without-distraction-with-this-diy-eink-typewriter) by Lucian Copeland | ![photo of a writing device](/images/diy/SPUDwrite.jpg) |
| 2020-12-14 | [FeatherQuill](https://www.instructables.com/FeatherQuill-34-Hours-of-Distraction-Free-Writing/) by CameronCoward | ![photo of a writing device](/images/diy/FeatherQuill.jpg) |
| 2021-06-05 | [Papertyper](http://www.larsby.com/johan/2021/06/papertyper-digital-typewriter-4/) by John Larsby | ![photo of a writing device](/images/diy/PaperTyper.jpg) |
| 2021-07-07 | [LCDTyper](http://www.larsby.com/johan/2021/07/lcdtyper/) by John Larsby | ![photo of a writing device](/images/diy/LCDTyper.jpg) |
| 2021-10-24 | [square-screened lego deck](https://www.reddit.com/r/cyberDeck/comments/qf7zrh/i_use_this_for_writing_and_everything_autosyncs/) by u/DreaminginDarkness | ![photo of a writing device](/images/diy/SquareScreenLegoDeck.jpg) |
| 2022-06-14 | [WareWoolf Alpha](https://benjaminsloan.com/2022/06/14/warewoolf-alpha-a-single-purpose-writing-device-i-built/) by Benjamin Sloan | ![photo of a writing device](/images/diy/WareWoolfAlpha.jpg) |
| 2023-03-21 | [Compass Set Deck](https://www.reddit.com/r/writerDeck/comments/11y4wpx/update/) by u/DreaminginDarkness | ![photo of a writing device](/images/diy/CompassSetDeck.jpg) |
| 2023-03-29 | [Mythic I](https://www.reddit.com/r/writerDeck/comments/125wqf4/i_wanted_a_beautiful_computer_and_couldnt_find/) by u/Yungblude | ![photo of a writing device](/images/diy/MythicI.jpg) |
| 2023-04-18 | [mac air top deck](https://www.reddit.com/r/writerDeck/comments/12rf3i5/the_new_deck_made_with_a_mac_air_top_case_as_the/) by u/DreaminginDarkness | ![photo of a writing device](/images/diy/MacAirTopDeck.jpg) |
| 2023-05-14 | [ClipboardPi](https://www.reddit.com/r/writerDeck/comments/13hw5vw/the_clipboardpi/) by u/CrazyinFrance | ![photo of a writing device](/images/diy/ClipBoardDeck.jpg) |
| 2023-05-18 | [MUSE](https://www.reddit.com/r/writerDeck/comments/13l0zmx/finally_finished_my_writerdeck_i_call_it_the_muse/) by u/ThisIsTheNewSleeve | ![photo of a writing device](/images/diy/Muse.jpg) |
| 2023-07-26 | [Mythic II](https://www.reddit.com/r/writerDeck/comments/15akhwr/a_friend_wanted_a_beautiful_serene_computer_he/) by u/Yungblude | ![photo of a writing device](/images/diy/MythicII.jpg) |
| 2023-12-09 | [Writercyber-cyberwriter](https://www.reddit.com/r/writerDeck/comments/18e6wop/writercybercyberwriter/) by u/wabaki- | ![photo of a writing device](/images/diy/WritercyberCyberwriter.jpg) |
| 2023-12-19 | [ZeroWriter](https://www.reddit.com/r/writerDeck/comments/18m9ffi/my_eink_typewriter_build_guide/) by u/tincangames | ![photo of a writing device](/images/diy/ZeroWriter.jpg) |
| 2023-12-24 | [Mewriter](https://www.reddit.com/r/writerDeck/comments/18pria7/the_mewriter/) by u/Cello42 | ![photo of a writing device](/images/diy/Mewriter.jpg) |
| 2024-01-19 | [Creativity Machine](https://www.reddit.com/r/writerDeck/comments/19am36v/my_diy_creativity_machine/) by u/Pangolin_Beatdown | ![photo of a writing device](/images/diy/CreativityMachine.jpg) |
| 2024-02-07 | [TypeWryter](https://www.reddit.com/r/writerDeck/comments/1alauai/my_slate_writerdeck_i_call_it_my_typewryter/) by u/CertifiedWerewolf | ![photo of a writing device](/images/diy/TypeWryter.jpg) |
| 2024-02-19 | [backgammon deck](https://www.reddit.com/r/writerDeck/comments/1aur99n/first_attempt_work_in_progress/) by u/ChristyMalry | ![photo of a writing device](/images/diy/Backgammon.jpg) |
| 2024-02-25 | [Tapico Typer](https://www.reddit.com/r/writerDeck/comments/1b03zy0/tapico_typer_a_calculator_but_for_words/) by u/v1c3ntecruz | ![photo of a writing device](/images/diy/TapicoTyper.jpg) |
| 2024-03-04 | [Micro Journal](https://github.com/unkyulee/micro-journal) by u/Background_Ad_1810 | ![photo of a writing device](/images/diy/MicroJournal.jpg) |
| 2018-01-30 | [Ultimate Writer](https://github.com/picnoir/ultimate-writer) by NinjaTrappeur | [<img src="images/diy/UltimateWriter.jpg">](/images/diy/UltimateWriter.jpg) |
| 2019-03-22 | [SPUDwrite](https://spectrum.ieee.org/write-without-distraction-with-this-diy-eink-typewriter) by Lucian Copeland | [<img src="images/diy/SPUDwrite.jpg">](/images/diy/SPUDwrite.jpg) |
| 2020-12-14 | [FeatherQuill](https://www.instructables.com/FeatherQuill-34-Hours-of-Distraction-Free-Writing/) by CameronCoward | [<img src="images/diy/FeatherQuill.jpg">](/images/diy/FeatherQuill.jpg) |
| 2021-06-05 | [Papertyper](http://www.larsby.com/johan/2021/06/papertyper-digital-typewriter-4/) by John Larsby | [<img src="images/diy/PaperTyper.jpg">](/images/diy/PaperTyper.jpg) |
| 2021-07-07 | [LCDTyper](http://www.larsby.com/johan/2021/07/lcdtyper/) by John Larsby | [<img src="images/diy/LCDTyper.jpg">](/images/diy/LCDTyper.jpg) |
| 2021-10-24 | [square-screened lego deck](https://www.reddit.com/r/cyberDeck/comments/qf7zrh/i_use_this_for_writing_and_everything_autosyncs/) by u/DreaminginDarkness | [<img src="images/diy/SquareScreenLegoDeck.jpg">](/images/diy/SquareScreenLegoDeck.jpg) |
| 2022-06-14 | [WareWoolf Alpha](https://benjaminsloan.com/2022/06/14/warewoolf-alpha-a-single-purpose-writing-device-i-built/) by Benjamin Sloan | [<img src="images/diy/WareWoolfAlpha.jpg">](/images/diy/WareWoolfAlpha.jpg) |
| 2023-03-21 | [Compass Set Deck](https://www.reddit.com/r/writerDeck/comments/11y4wpx/update/) by u/DreaminginDarkness | [<img src="images/diy/CompassSetDeck.jpg">](/images/diy/CompassSetDeck.jpg) |
| 2023-03-29 | [Mythic I](https://www.reddit.com/r/writerDeck/comments/125wqf4/i_wanted_a_beautiful_computer_and_couldnt_find/) by u/Yungblude | [<img src="images/diy/MythicI.jpg">](/images/diy/MythicI.jpg) |
| 2023-04-18 | [mac air top deck](https://www.reddit.com/r/writerDeck/comments/12rf3i5/the_new_deck_made_with_a_mac_air_top_case_as_the/) by u/DreaminginDarkness | [<img src="images/diy/MacAirTopDeck.jpg">](/images/diy/MacAirTopDeck.jpg) |
| 2023-05-14 | [ClipboardPi](https://www.reddit.com/r/writerDeck/comments/13hw5vw/the_clipboardpi/) by u/CrazyinFrance | [<img src="images/diy/ClipBoardDeck.jpg">](/images/diy/ClipBoardDeck.jpg) |
| 2023-05-18 | [MUSE](https://www.reddit.com/r/writerDeck/comments/13l0zmx/finally_finished_my_writerdeck_i_call_it_the_muse/) by u/ThisIsTheNewSleeve | [<img src="images/diy/Muse.jpg">](/images/diy/Muse.jpg) |
| 2023-07-26 | [Mythic II](https://www.reddit.com/r/writerDeck/comments/15akhwr/a_friend_wanted_a_beautiful_serene_computer_he/) by u/Yungblude | [<img src="images/diy/MythicII.jpg">](/images/diy/MythicII.jpg) |
| 2023-12-09 | [Writercyber-cyberwriter](https://www.reddit.com/r/writerDeck/comments/18e6wop/writercybercyberwriter/) by u/wabaki- | [<img src="images/diy/WritercyberCyberwriter.jpg">](/images/diy/WritercyberCyberwriter.jpg) |
| 2023-12-19 | [ZeroWriter](https://www.reddit.com/r/writerDeck/comments/18m9ffi/my_eink_typewriter_build_guide/) by u/tincangames | [<img src="images/diy/ZeroWriter.jpg">](/images/diy/ZeroWriter.jpg) |
| 2023-12-24 | [Mewriter](https://www.reddit.com/r/writerDeck/comments/18pria7/the_mewriter/) by u/Cello42 | [<img src="images/diy/Mewriter.jpg">](/images/diy/Mewriter.jpg) |
| 2024-01-19 | [Creativity Machine](https://www.reddit.com/r/writerDeck/comments/19am36v/my_diy_creativity_machine/) by u/Pangolin_Beatdown | [<img src="images/diy/CreativityMachine.jpg">](/images/diy/CreativityMachine.jpg) |
| 2024-02-07 | [TypeWryter](https://www.reddit.com/r/writerDeck/comments/1alauai/my_slate_writerdeck_i_call_it_my_typewryter/) by u/CertifiedWerewolf | [<img src="images/diy/TypeWryter.jpg">](/images/diy/TypeWryter.jpg) |
| 2024-02-19 | [backgammon deck](https://www.reddit.com/r/writerDeck/comments/1aur99n/first_attempt_work_in_progress/) by u/ChristyMalry | [<img src="images/diy/Backgammon.jpg">](/images/diy/Backgammon.jpg) |
| 2024-02-25 | [Tapico Typer](https://www.reddit.com/r/writerDeck/comments/1b03zy0/tapico_typer_a_calculator_but_for_words/) by u/v1c3ntecruz | [<img src="images/diy/TapicoTyper.jpg">](/images/diy/TapicoTyper.jpg) |
| 2024-03-04 | [Micro Journal](https://github.com/unkyulee/micro-journal) by u/Background_Ad_1810 | [<img src="images/diy/MicroJournal.jpg">](/images/diy/MicroJournal.jpg) |
28 changes: 27 additions & 1 deletion data/tsv-to-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require('fs');

fs.readFile('DIY_writerdecks.tsv', 'utf8', function(err, data){
var writerDecks = parseFile(data);
var tableStr = toMarkdownTable(writerDecks);
var tableStr = toMarkdownTableLink(writerDecks);
console.log(tableStr);
writeResult(tableStr);
});
Expand All @@ -29,6 +29,32 @@ function parseFile(data){
}

function toMarkdownTable(decks){
var tableStr = '| Date | Name | Image |\n';
tableStr += '| ---- | ---- | ---- |\n';

decks.forEach(deck => {
tableStr += '| ' + deck.Date + ' | [' + deck.Name + '](' +
deck.Link + ') by ' + deck.Creator + ' | ![photo of a writing device](/images/diy/' +
deck.Image + ') |\n';
});

return tableStr;
}

function toMarkdownTableLink(decks){
var tableStr = '| Date | Name | Image |\n';
tableStr += '| ---- | ---- | ---- |\n';

decks.forEach(deck => {
tableStr += '| ' + deck.Date + ' | [' + deck.Name + '](' +
deck.Link + ') by ' + deck.Creator + ' | [<img src="images/diy/' + deck.Image + '">](/images/diy/' +
deck.Image + ') |\n';
});

return tableStr;
}

function toMarkdownTableDetailed(decks){
var tableStr = '| Date | Name | Details | Image |\n';
tableStr += '| ---- | ---- | ---- | ---- |\n';

Expand Down
Loading

0 comments on commit b8f291e

Please sign in to comment.