Google Snippets

31 January, 2012   

Use this code to put Google search bar on web page.

Delphi example code for Google Spreadsheet GEO code address

HTML code Snippet to get directions form (Google Maps) saddr = blank input field for entering START address daddr = hard-coded END address

The JavaScript is just a function called redirect, and is requesting that a variable be passed to it.

This is the whole HTML page with JS/CSS embeded, uses Google Maps API V3

05 February, 2011   

Link to CSS files: You essentially hotlink directly to CSS files on Google. Through URL parameters, you specificity which fonts you want, and what variations of those fonts.

15 September, 2012   

This script shows how to redirect to a specific site.

05 December, 2013   

AppleScript to send URL from Mac browser to Prowl (iOS)

26 February, 2011   

This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.

01 April, 2011   

This sticky footer solution is working in all major browsers, including Google Chrome! It works with floated 2-column layouts and we don't get overlap in re-sized browser windows unlike older solutions you find when you Google sticky footer. And you don't need an empty push div.

27 August, 2012   

HTML code for Top & Bottom Halves Layout

16 October, 2014   

When hover your mouse over a link, a small box containing contents from another page comes up. This will show the iframe with scrollbars if content (target page) is too big.

05 April, 2014   

PHP code to take web screenshots. You can get your application key and secret by registering at grabz.it

How to display the source code of any webpage. you can use below example code

CSS code snippet for Style Links Depending on Destination

User below meta tag to prevent all search bots from indexing a page

Convert a string of text and ad hyperlinks to all the URLs. We loop through each URL and add a hyperlink

20 August, 2015   

Basic setup code for jQuery, linking to Google APIs for the jQuery library.

25 April, 2011   

HTML5 starting point template. Used in conjunction with HTML5 CSS reset at the above link.

Basic XHTML 1.0 layout which includes basic layout structure and is prepared for jQuery. On load a 'js' class is added to the root element in order to nicely handle graceful degradation if JS is disabled and prevent flickering if JS is enabled.