my version of @dis.sociat.ing's dollcode algorithm in python
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

minor comment & README fixes/tweaks

- corrected comment for convert_to_int to include base256 usage
- used a shorter text example for clipboard copying

digi 9687a193 c4987a97

+3 -3
+2 -2
README.md
··· 25 25 uv run main.py "8008135" -c 26 26 # outputs: ▘▘▖▖▖▌▌▘▘▘▌▘▘▘▖▘▌▌▌▌▖▌▘▌▌▖▘▘▌▘▖▘▘▖ -> 📋 copied! 27 27 28 - uv run main.py "if u copy this ur beautiful ..." -c 29 - # outputs: ▖▘▌▖▘▖▌▘▘▖▌▖▖▘▖▘▖▘▌▌▖▖▌▘▌▌▖▘▌▌▖▌▖▖▘▘▖▖▘▌▖▘▌▌▘▌▘▘▖▖▌▖▘▌▘▖▘▘▘▖▘▖▘▖▘▘▘▘▘▘▘▌▌▘▌▖▌▌▌▘▖▖▘▖▖▌▖▘▌▌▘▖▘▘▘▖▘▘▘▘▌▌▖▖▖▖▌▖▌▖▘▘▖▖▘▘▌▘▖▘▖▖▖▌▘▖▖▘▌▌▘▌▌▌▘▌▖▘▘▌▌▌▌▖▘▌▖▌▘▘▘▘▌▖▌▘ -> 📋 copied! 28 + uv run main.py "copy if ur pretty ..." -c 29 + # outputs: ▘▌▌▌▘▘▘▖▌▌▖▖▖▌▌▖▌▘▌▌▖▌▘▖▖▌▖▌▌▘▘▌▘▌▖▘▖▖▘▌▖▘▌▘▌▖▘▌▌▘▘▖▖▘▌▌▖▖▌▘▘▌▘▖▘▘▖▖▖▌▘▘▌▌▖▌▘▖▌▖▖▌▖▖▘▌▖▘▘▌▘▌▌▌▘▌▖▖▘▌▘▘▘▘▌ -> 📋 copied! 30 30 ```
+1 -1
main.py
··· 11 11 BASE_NUM = 3 12 12 13 13 14 - # encodes input string into integer by using ord() 14 + # encodes input string into integer by using ord() & base256 15 15 def convert_to_int(input: str): 16 16 result = 0 17 17