8
u/ShivohumShivohum Aug 12 '21
How did you create your image?
7
u/AndrewIsntCool Aug 12 '21
I used https://www.text-image.com/convert/ascii.html
It worked for my purposes, but I am sure there are better suited ASCII generators out there - the line widths on GitHub code blocks are wider than the output from this generator, so the image comes out looking vertically stretched. I had to squish my picture slightly before I put it in to get a more accurate face.
You can see how it looked on my second commit: https://imgur.com/a/2myVpH4
I manually cut it out and edited it for the README. I did the same to the second ASCII.
3
u/ShivohumShivohum Aug 12 '21
Thanks Dude.
Actually did you do anything to add shades into your picture as it seems a little different ( shades wise) on Github your profile?
3
u/AndrewIsntCool Aug 12 '21
Yes, I talked about it a little in my comment here: https://reddit.com/r/github/comments/p2oyf7/_/h8mimof/?context=1
Essentially, I used Python syntax highlighting to get the colors in this code block. Operators like +, -, /, etc. are highlighted, as well as capitalized words, and strings. I didn't make use of the comment, class decorator, or number colors, though
3
u/AndrewIsntCool Aug 12 '21
Is someone shadowbanned?
I've gotten notifications for three comments, but after I click on them, they don't appear on this post and get removed from my notification summary
Unless it is related to the recent Reddit outage 🤔
4
u/sahinbey52 Aug 12 '21 edited Feb 09 '26
This comment is updated for privacy concerns. Use fediverse for improved privacy.
8
u/AndrewIsntCool Aug 12 '21
I have configured GitHub Actions to automatically run my code once every day. The YAML file in my .github/workflows tells Github what to do: https://github.com/Andrew6rant/Andrew6rant/blob/main/.github/workflows/build.yaml
Essentially, this file asks GitHub to run a virtual machine on ubuntu-latest, checkout my repository, install Python3.8 and python-dateutil, run "today.py," and then commit (using github-actions bot, so I don't spam my contribution graph)
2
2
u/Highfivesghost Aug 12 '21
How do you get colors in the read me
3
u/AndrewIsntCool Aug 12 '21
GitHub doesn't allow colors in code blocks, but there is a workaround.
When you define a code block, you can give it a language for syntax highlighting. This one is using python's colors.
Here is a list of every language supported by markdown syntax: https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
I recommend diff, it can be used to add color without looking so much like syntax. Here is an example: https://github.com/github/markup/issues/369#issuecomment-394483061 This comment is missing one other color of diff, which is purple. surround your text with @@ and it will show
3
2
Aug 12 '21
where are the comments?
2
u/AndrewIsntCool Aug 12 '21
I'm sorry, I don't exactly understand what you are asking.
Here is the README file, if you wanted to see how it was done: https://github.com/Andrew6rant/Andrew6rant/blob/main/README.md
3
1
u/Many-Try8131 Feb 04 '25
Hi Andrew,
I was checking out your GitHub profile repo and noticed a cache folder inside it. In that folder, there are two files:
repository_archive.txt9bd204c0530f81346837f038cdc22e3edcbd4c38ecbbc13fdc2a57c064f18f54.txt
I'm curious about where this data comes from. I couldn't figure it out—was this data automatically generated, or did you manually create these files and add the data yourself?
Would really appreciate any insights you can share.
1
u/rafaelfen10 Jun 13 '25
Podia fazer um pequeno tutorial de como fazer isso, ainda não sei de como fez isso...
14
u/AndrewIsntCool Aug 11 '21
A few days ago, I saw [this] (https://www.reddit.com/r/github/comments/ozvet4/my_idea_for_github_profile_readme/) post by u/alessiocelentano, which was super cool.
I attempted my own spin on the concept. It uses GitHub Actions to automatically update the "Uptime" counter every day. I've never written anything in YAML before, so I am pretty proud of it, however simple it may be.
Here is a link to the profile: https://github.com/Andrew6rant
GitHub doesn't have the ability to detect light/dark mode yet, so I put ASCII art in for both modes.