Posts

Showing posts with the label Twitter

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)...

Basic Ajax Twitter Application

Yesterday I posted a work in progress of a Full PHP Ajax Proxy , today I would like to show you what you could do with that file. Twitter API Directly via Ajax Thanks to basic realm authentication support, it is extremely simple to create your own twitter app in your home page. Here the example: <style type="text/css"> div.twit { font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif; width: 320px; } div.twit h3, div.twit h4 { margin: 0; padding: 0; } div.twit h3 { font-size: 10pt; color: blue; } div.twit h4 { font-size: 7pt; font-weight: normal; text-align: right; color: #999; } div.twit span { font-size: 8pt; } </style> <script type="text/javascript" src="http://vice-versa.googlecode.com/svn/trunk/build/vice-versa.min.js"></script> <script type="text/javascript"> function addIntoList(info, container){ ...