Welcome To Snipplr
Everyone's Recent Snippets Tagged google
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
XHTML 1.0 Strict deprecates the use of iframes in favor of objects. While this has gotten a lot of flack, iframes were never truly a part of HTML, just a proprietary element in Internet Explorer that eventually got universal support. Objects are a mo...
        
        
        
            0 
        
        
            1498 
        
                    posted 16 years ago by chrisdpratt
            Below are two functions I've been using to make event tracking a little easier in CodeIgniter.
Two functions are available, google_analytics() & track_event().
google_analytics() takes one argument and uses it as the UA code for your tracking p...
        
        
        
            5 
        
        
            1872 
        
                    posted 16 years ago by brettbergeron
            Make sure you change the variable v_ga_track near the end of the script.
        
        
        
            0 
        
        
            1144 
        
                    posted 16 years ago by chrisjlee
            Detects all external/outgoing links, adds class, & adds target = _blank. When using a strict doctype, this method is valid when using target manipulation.
        
        
        
            1 
        
        
            1141 
        
                    posted 16 years ago by dsntos
            Include this in any page you want to track for Google bot crawls.
Adapt it to your needs (eg: MySQL log instead of e-mail announcement, etc).
        
        
        
            9 
        
        
            2306 
        
                    posted 16 years ago by NyX
            lookup the google page rank of a website from python.  Uses the same interface that the Google Toolbar uses to get the value.
        
        
        
            0 
        
        
            1582 
        
                    posted 16 years ago by halotis
            returns URL that's an I'm feeling lucky search on wikipedia. Handy when paired with a database of names of things.
        
        
        
            2 
        
        
            1066 
        
                    posted 16 years ago by mocha0range
            This is to prevent duplicate content when your provider directs your http://domain.com to the same place as http://www.domain.com
        
        
        
            1 
        
        
            1179 
        
                    posted 16 years ago by zartgesotten
            Use inType=0 and feed in a specific Google Maps URL to parse out the GeoCoords from the URL
e.g. http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=53154&sll=37.0625,-95.677068&sspn=52.505328,80.507812&ie=UTF8&ll=42.858224,-88.000832&spn=0....
        
        
        
            4 
        
        
            3527 
        
                    posted 16 years ago by blackf0rk
            I convert the google pr fetch code from php to actionscript.
        
        
        
            2 
        
        
            1307 
        
                    posted 16 years ago by zhengrenchi
            This function will parse out the Google Maps coordinates from a Google Maps link url like this one: http://maps.google.com/?ie=UTF8&ll=43.068888,-87.978516&spn=23.565589,33.925781&t=h&z=5. The coordinates in this URL are 43.068888,-87.978516.
        
        
        
            0 
        
        
            1601 
        
                    posted 16 years ago by blackf0rk
            Simple jQuery snippet for cleanly and automatically setting up your google analytics
        
        
        
            4 
        
        
            1351 
        
                    posted 16 years ago by garside
            Here's a short program to print a list of all of the documents in your Google Documents account
        
        
        
            0 
        
        
            939 
        
                    posted 16 years ago by hemanthhm
            
