Welcome To Snipplr
Everyone's Recent Snippets Tagged twitter
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This javascript greets visitors to your website depending on where they come from. There are messages for visitors coming from Entrecard, Twitter, and search engines. It should be easy to adapt the code to include other referral sites as well.
In...
0
720
posted 15 years ago by benjamin
This source code based on the "friend" example given with Persevere. It is a simple Twitter-like microblogging program. Note that you need to create a class definition file in "WEB-INF\jslib\tweet.js" for it to work.
0
839
posted 15 years ago by rolytyler
Display the number of people following you on Twitter using this custom Twitter badge. The code simply returns a number so you can style it however you like.
1
883
posted 15 years ago by neal_grosskopf
To run, save as twitterbackup.rb:
ruby twitterbackup.rb yourtwittername
1
845
posted 15 years ago by beandr
e.g.
<pre><code>
$ twlogmerge.py twitter-log-user-dir
read file: twitter-log-user-dir/page001.xml
get status: id: 123456789
append status: accum.:1234
...
append status: accum.:3456
write file: twitter-log-user-dir-marged-20090828-130146.xml...
0
808
posted 15 years ago by mustam
This is xslt file for twitter-logged xml file.
* cf. [Backup my twitter-log](http://snipplr.com/view/18925/backup-my-twitterlog/)
* cf. [Merge twitter-logged files into one xml-file](http://snipplr.com/view/18928/merge-twitterlogged-files...
0
1129
posted 15 years ago by mustam
e.g.
<pre>
$ twlog.py user
twitter account name: user
Now logging start, take several times. r u OK? [y/N]: y
DEBUG: make dir: twitter-log-user
DEBUG: get log: page=1
DEBUG: new tweet: 21, accum. tweet: 21
DEBUG: remain hits: 149
DEBUG: writ...
1
661
posted 15 years ago by mustam
This is a quick & dirty helper for pumping out those annoying little link sharing URLS. I've kept it simple, so all it does is return a URL formatted for a particular service.
To use it, just pass a string of the service name to the helper followe...
1
872
posted 15 years ago by brettbergeron
Simple PHP script which allows you to specify your twitter log in details and a search term, then automatically follow users who have tweeted that term. Code is released as Open Source, use it as you wish - please leave my URL in the commented sectio...
3
1807
posted 15 years ago by shakefon
Thanks to James Padolsey for sharing this script with everyone on his blog, link above.
0
627
posted 15 years ago by DrewDouglass
Some PHP code that can be used to get formatted HTML containing N number of tweets for a given twitter user.
5
1237
posted 15 years ago by gripnrip
Does autoscrolling, language translation, RT, via, and short url destination resolution.
I think a Mac user made this because it doesn't work for Firefox, IE and Opera, but does in Chrome and Safari.
0
591
posted 15 years ago by rickdog
To convert links on a twitter status to a clickable url. Also convert @ to follow link, and # to search
3
1197
posted 15 years ago by mardix
To find your numerical Twitter ID, login to Twitter and click on your RSS feed (bottom of the page). The URL will look something like http://twitter.com/statuses/friends_timeline/12345678.rss. Your ID will be the 12345678.
9
1104
posted 15 years ago by nerdsane