Skip to content

Instantly share code, notes, and snippets.

View amilabandara's full-sized avatar

Amila Bandara amilabandara

View GitHub Profile
@amilabandara
amilabandara / Google maps geocode.txt
Created August 29, 2018 11:29 — forked from boldfacedesign/Google maps geocode.txt
Google maps geocode multiple addresses and add info windows
var locations = [
['Bondi Beach', '850 Bay st 04 Toronto, Ont'],
['Coogee Beach', '932 Bay Street, Toronto, ON M5S 1B1'],
['Cronulla Beach', '61 Town Centre Court, Toronto, ON M1P'],
['Manly Beach', '832 Bay Street, Toronto, ON M5S 1B1'],
['Maroubra Beach', '606 New Toronto Street, Toronto, ON M8V 2E8']
];
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 10,
@amilabandara
amilabandara / rrwd_remove_page_template
Created March 30, 2020 04:15 — forked from rianrietveld/rrwd_remove_page_template
Remove page templates from dropdown page attributes in WordPress ( >= 3.9 )
<?php
add_filter( 'theme_page_templates', 'rrwd_remove_page_template' );
function rrwd_remove_page_template( $pages_templates ) {
unset( $pages_templates['page_blog.php'] );
unset( $pages_templates['page_archive.php'] );
return $pages_templates;
}
?>
@DATABASE@__%Y-%m-%d_%H-%M-%S