Posts

Showing posts with the label 140

size maniacs or just twitterable examples ?

maybe both, but I like the idea! Many times I have added something like #tweetcode at the end of a tweet created with the single goal to be small enough for ... well, a tweet! @jedschmidt bought a spanish domain called 140byt.es based over github forks in order to provide all sort of tweets that may solve a specific problem in an efficient way: it kinda work on copy and paste! Kinda ... because rules may not truly work stand alone and snippets are suggested without a "tooltip" example, at least in the main page. What Can We Do In 140 Bytes ? tweet a solution for a simple task provide an idea about how to solve a task solve a task in a truly efficient way Yeah, some snippet is absolutely everything we may need to solve a problem. The most simple example is the hex2rgb and rgb2hex, a problem that could be solved easily via bitwise operators and a tiny bit of math. How Can 140 Bytes Be Enough ? Using few tricks suggested in this page we can realize it is possible to shrink t...

double tweet - up to 280 chars tweets!

Update At least one other person did the same and before this post, here there's the prove . The algo seems to be almost the same, except the length is probably padded to be module of 2 (\x00 at the end) so you can use double-tweet gadget to decode gareth message as well :) Via encode template and same bookmark link, I would like to introduce my last simple experiment: WebReflection::double-tweet (just a click to give it a try, another one to remove) The Concept Twitter lets us type messages with a maximum of 140 characters. Fortunately, twitter accepts Unicode characters and still fortunately, it is extremely easy to pack two ASCII characters into a single Unicode one. Accordingly, 140 ASCII characters could be packed into 280. A Fast ASCII pack / unpack function ASCIIPack(s){ // WebReflection Mit Style License for(var r = [], i = 0, length = s.length, c; i < length; ++i){ c = s.charCodeAt(i); r.push(++i < length ? (c << 8) + s.charCodeAt(i)...