Skip to content

Instantly share code, notes, and snippets.

@promediacorp
promediacorp / aea gtm
Last active June 28, 2017 20:17
aea gtm
//Paste this code as high in the <head> of the page as possible.
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MC7ZJCV');</script>
<!-- End Google Tag Manager -->
@promediacorp
promediacorp / AEA Titles and Descriptions
Last active June 29, 2017 14:15
AEA Titles and Descriptions
# Homepage
###Current Title:
```<title>An Event Apart - the premiere web & interaction design conference</title>```
###Suggested Title:
```<title>An Event Apart: The Premiere Web, Interaction Design, & UX Conference</title>```
--or--
```<title>An Event Apart: The Premiere Web Design, IxD, & UX Conference</title>```
@promediacorp
promediacorp / email_from_sheet.js
Last active June 23, 2017 19:10
email from google sheet script
// https://developers.google.com/apps-script/articles/sending_emails
var EMAIL_SENT = "EMAIL_SENT";
function sendEmails() {
var body = DocumentApp.openById('1BHx9yBH9zTo27w35B2iSwXzHfn1UWS_KOAIo2OEugsE'); //this is the google doc id for the email body
var sheet = SpreadsheetApp.getActiveSheet();
var startRow = 2; // First row of data to process
var numRows = 25; // Number of rows to process
// Fetch the range of cells A2:B3
var dataRange = sheet.getRange(startRow, 1, numRows, 3)
@promediacorp
promediacorp / aea_example_sitemap.xml
Last active June 23, 2017 18:35
AEA Example Sitemaps XML
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://aneventapart.com</loc>
<lastmod>2017-06-23</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
@promediacorp
promediacorp / aea_chicago.json
Last active June 23, 2017 18:16
JSON+LD - AEA Chicago
{
"@context": "http://schema.org",
"@type": "Event",
"location": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Chicago",
"addressRegion": "IL",
"postalCode": "60654",
@promediacorp
promediacorp / avi_wilensky.json
Last active June 24, 2017 01:32
Avi Wilensky
{
"basics": {
"name": "Avi Wilensky",
"label": "Entrepreneur / Web Applications Developer",
"email": "wilensky [at] gmail [dot] [com]",
"phone": "917-546-4170",
"website": "aviwilensky.com",
"summary": [
"Founder and developer of the travel app Up Hail, used by millions of people and featured in Mashable's Most Useful Web Tools of 2014, Fox News, Gizmodo, Entrepreneur, Inc., and VentureBeat.",
"Founder of Promediacorp - a digital agency and web development shop - working with the largest brands in the world, including Samsung, Sony and Mattel.",
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- v3_leaderboard_first -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-2045228090082912"
data-ad-slot="5547733290"
data-max-num-ads="1"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@promediacorp
promediacorp / uphail_v3_country_schema.json
Last active November 4, 2015 16:37
uphail_v3 countries schema
{
"_id":"eng",
"country_name_eng":"England",
"country_name_native":"England",
"country_name_synonyms":[
"United Kingdom",
"Great Britain"
],
"capital":"London",
"continent":"Europe",
@promediacorp
promediacorp / debug.py
Last active August 29, 2015 14:20
flask app debug
import logging
from flask import Flask, render_template
import smtplib
app = Flask(__name__)
ADMINS = ['wilensky@gmail.com']
app.config['LOG_FILE'] = 'application.log'
if not app.debug:
@promediacorp
promediacorp / Forever 21 Href Lang Tags
Last active August 29, 2015 14:11
Forever 21 Href Lang Tags
<!-- Instructions for Setting hreflang tags. See https://support.google.com/webmasters/answer/189077?hl=en for more info. The language is in ISO 639-1 format, and the country is ISO 3166-1 Alpha 2 ! -->
<!-- Header of US Homepage-->
<head>
<title>Forever 21 US</title>
<!-- This is the master, official homepage URL for US -->
<link rel="canonical" href="http://www.forever21.com/" />