Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric Greenfield saltnpixels

View GitHub Profile
@letanure
letanure / article.html
Created Apr 8, 2014
Social Media Tag Template
View article.html
<!-- Place this data between the <head> tags of your website -->
<title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters." />
<!-- Twitter Card data -->
<meta name="twitter:card" value="summary">
<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
@luizventurote
luizventurote / google-maps-converting.php
Created Apr 13, 2014
Converting address to latitude and longitude - Google Maps - PHP.
View google-maps-converting.php
<?php
/**
* Converting address to latitude and longitude
*/
function setLatitudeAndLongitude($address) {
$address = urlencode($address);
$request_url = "http://maps.googleapis.com/maps/api/geocode/xml?address=".$address."&sensor=true";
$xml = simplexml_load_file($request_url) or die("url not loading");
$status = $xml->status;
@nicdford
nicdford / filters
Last active Feb 24, 2016
filters setup
View filters
<?php
$things_to_do = pods( 'things_to_do' );
$limit = 9;
$params = array(
'fields' => array(
'region',
'activity',
'legend_items'
),