Skip to content

Instantly share code, notes, and snippets.

View vince-vibin's full-sized avatar
😶‍🌫️

Vincent vince-vibin

😶‍🌫️
View GitHub Profile
@vince-vibin
vince-vibin / image2ascii.py
Created October 2, 2023 10:00
Image to ASCII Converter on the Terminal
import PIL.Image
# use two hashtags to get a square image
char = "##"
def display_image(image):
width, height = image.size
ascii_image = []
for y in range(height):
line = []
@vince-vibin
vince-vibin / example.py
Created December 16, 2022 14:53
StackOverflow example:
# https://stackoverflow.com/questions/74822223/for-loop-only-returns-the-last-value
for tweet in tweets:
for word in tweet:
if word.startswith("#"):
hashtag_list.append(word)