Skip to content

Instantly share code, notes, and snippets.

import xml.etree.ElementTree as etree
#<doc>
# <nimi>NIMI</nimi>
# <subb>
# <teineSub>wohoo</teineSub>
# </subb>
#</doc>
tree = etree.parse('xml.xml')
root = tree.getroot()
# -*- coding: utf-8 -*-
"""FOR FUNNS ONLY!!! :)"""
from simplejson import loads
from urllib import urlopen, quote
from time import sleep
from string import rjust
from sys import argv
url = 'http://search.twitter.com/search.json'
if len(argv)< 2:
$(function(){
$('input.default').each(function(){
input = $(this);
input.data("val", input.val());
input.click(function(){
input = $(this);
if(input.val() == input.data("val")) {
input.val("");
@tanelpuhu
tanelpuhu / index.html
Created March 5, 2010 20:45
Twitter Search Ticker vms
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<style>
.tweet {
background-color:#dfdfdf;
padding:5px;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="color:Background" content="#000"/>
<meta name="color:Title" content="#444"/>
<meta name="color:Description" content="#777"/>
<meta name="color:Post Title" content="#6498cc"/>
<meta name="color:Text" content="#444"/>
<meta name="color:Inline Link" content="#6498cc"/>
<meta name="color:Quote" content="#888"/>