DumbIdeas
By DaCoolOne
Twitter Text Obj
Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform. (by twitter)
Our great sponsors
DumbIdeas | Twitter Text Obj | |
---|---|---|
6 | 9 | |
67 | 3,054 | |
- | 0.3% | |
4.1 | 0.0 | |
8 months ago | 10 months ago | |
Python | HTML | |
- | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
DumbIdeas
Posts with mentions or reviews of DumbIdeas.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-10.
-
[2022 Days 1-10] [Python] A graphical representation of The Beast, a single line of code that solves every day's challenge so far!
Decided to try running it through this program, which compresses python into an extremely cursed line that can be run, the creator is able to better explain it than I ever could. It turned out as
-
b='Ę͌͌ͅ͏̰̀͒̏͒͏͇͍͍͈͕͍͒́͒ͅ͏͒́'.encode();print(''.join(chr(((h<<6&64|c&63)+22)%133+10)for h,c in zip(b[1::2],b[2::2])))
Original Python Implementation (Includes a gui, thanks to u/MR_sticky_piston)
-
Day 21. Debug time! You can edit as many lines as you want, or add new lines without changing its intended behavior. The changes from the most upvoted comment get applied.
If you add this on the line before all the beeps, that'll make it linux friendly.
-
A rust crate that lets you compress ASCII text to a single Unicode "character"
This is my port of the incredible python code by /u/_DaCoolOne_. It lets you convert ascii text, e.g. python code, to a single Unicode character in a reversible way. This also lets you refactor your code into a single line! Imagine the readability!
-
T̶h̶e̶ ̶m̶o̶s̶t̶ ̶u̶p̶v̶o̶t̶e̶d̶ ̶c̶o̶m̶m̶e̶n̶t̶ ̶p̶i̶c̶k̶s̶ ̶t̶h̶e̶ ̶n̶e̶x̶t̶ ̶l̶i̶n̶e̶ ̶o̶f̶ ̶c̶o̶d̶e̶:̶ ̶D̶a̶y̶ ̶1̶3̶. Refactor time! Rewrite lines 10-12, so their behavior doesn't change. Whoever gets it with the least amount of symbols, wins. You can use multiple lines.
(Backup link as Reddit formatting will probably bastardize this code: https://github.com/DaCoolOne/DumbIdeas/blob/main/reddit\_ph\_compressor/out.py)
Twitter Text Obj
Posts with mentions or reviews of Twitter Text Obj.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-17.
-
Why is GPT-3 15.77x more expensive for certain languages?
I recall that Twitter allowed 140 Chinese characters in tweets originally, but when they switched to 280 ascii characters, CJK languages were not included. The current documentation does say that some languages and emojis use 2 characters per symbol of the 280 limit, limiting those languages to 140. https://developer.twitter.com/en/docs/counting-characters
-
Mini Musk in making
I assume you we’re going for half of the (new) character limit? That wouldn’t be bad as a rough guess, except Twitter uses UTF-8 encoding and what counts as a character is a bit complicated. Certain objects like usernames in a reply or image URLs hosted on Twitter are not counted, either. The maximum size of a modern tweet could therefore be upwards of 280 x 4 = 1,120 bytes.
-
A rust crate that lets you compress ASCII text to a single Unicode "character"
Given the examples in this article it seems like it could potentially be used for this!
-
Tweet-counter: A module to calculate the length of a tweet
It turns out, working this out is non-trivial, as Twitter has a few rules around how it count's characters. These are basically:
-
[DISC] The Tsunderedere Girl Getting More and More Dere Day by Day | Day - 13 by @yakitomahawk & @kota2comic
Japanese, Korean and Chinese were excluded from that increased cap, because they already had a significant advantage in being able to put more information into a single character. (More specifically, it's implemented such that ideograms count as 2 characters now, and emoji do, too.)
- Guinness World Regex
-
TIL the assumption that string length does not change when upper-cased is false
The 280 character limit in a tweet isn't equal to the number of glyphs in a tweet.
https://developer.twitter.com/en/docs/counting-characters
- Tech skill shortage