Skip to content
/ emoji Public

πŸ™‚ Add an emoji to each line of a file

Notifications You must be signed in to change notification settings

sanbor/emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Emoji

Adds an emoji to the beginning of each line in a file. Cross-platform version of teemoji.

Requires ollama installed. By default uses model llama3.2:3b. A different model can be specified in MODEL_NAME environment variable.

Example usage:

time ./emoji.sh tests/test.txt
🚫 ---
πŸ“ title: CommonMark Spec
πŸ“š author: John MacFarlane
πŸ“¦ version: '0.31.2'
πŸ“† date: '2024-01-28'
πŸ”’ license: '[CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)'
❓ ...
πŸ—Ώ
πŸ“š # Introduction
πŸ—Ώ
πŸ“ ## What is Markdown?
πŸ—Ώ
πŸ“ Markdown is a plain text format for writing structured documents,
πŸ“§ based on conventions for indicating formatting in email
πŸ“° and usenet posts.  It was developed by John Gruber (with
🀝 help from Aaron Swartz) and released in 2004 in the form of a
πŸ“ [syntax description](https://daringfireball.net/projects/markdown/syntax)
πŸ“ and a Perl script (`Markdown.pl`) for converting Markdown to
πŸ“Š HTML.  In the next decade, dozens of implementations were
🌎 developed in many languages.  Some extended the original
πŸ“š Markdown syntax with conventions for footnotes, tables, and
πŸ“ other document elements.  Some allowed Markdown documents to be
πŸ“Ί rendered in formats other than HTML.  Websites like Reddit,
πŸ€– StackOverflow, and GitHub had millions of people using Markdown.
πŸ“š And Markdown started to be used beyond the web, to author books,
πŸ“„ articles, slide shows, letters, and lecture notes.
πŸ—Ώ
πŸ“ What distinguishes Markdown from many other lightweight markup
πŸ“ syntaxes, which are often easier to write, is its readability.
πŸ“ As Gruber writes:
πŸ—Ώ
> > The overriding design goal for Markdown's formatting syntax is
> > to make it as readable as possible. The idea is that a
πŸ“„ > Markdown-formatted document should be publishable as-is, as
> > plain text, without looking like it's been marked up with tags
πŸ’Έ > or formatting instructions.
πŸ“ > (<https://daringfireball.net/projects/markdown/>)
πŸ—Ώ

real    0m7.658s
user    0m0.682s
sys     0m0.780s

If you want to save it to a file, you can do ./emoji.sh tests/test.txt | tee > output.txt

About

πŸ™‚ Add an emoji to each line of a file

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages