Skip to content

Instantly share code, notes, and snippets.

View johnbacon's full-sized avatar
🤓
Hello, World!

John Bacon johnbacon

🤓
Hello, World!
View GitHub Profile
@johnbacon
johnbacon / MozCon 2018 Notes.md
Last active January 14, 2019 15:17
MozCon 2018 notes (Seattle, Washington)

Cindy Krum (10:20 am)

Mobile-First Indexing or a Whole New Google

  • Think about mobile-first indexing as "entity-first indexing."

  • More than half of Google's searches are now mobile, but 61% of mobile searches don't get clicks.

    • Yet... most desktop SEO tools are not providing accurate mobile rankings.
    • YET... what does mobile ranking matter if you're pushed down on mobile by the knowledge graph, ads, and other goodies.
  • Mobile-first indexing is not just about websites! You are competing with entities.

@johnbacon
johnbacon / MozCon 2017 Notes.md
Last active March 13, 2018 20:14
MozCon 2017 notes (Seattle, Washington)

Rand Fishkin (9:00 am)

  • Google is no longer PENALIZING link spam, they're instead IGNORING it. This opens the door to link experimentation. Research this and possibly take advantage.

Lisa Myers (9:30 am)

How to Get Big Links

  • "Find something that nearly worked and make it better."

  • If the results of your content are surprising, it will create discussion. Surprising content has potential for good PR. (Guardians of Galaxy death count example w/James Gunn)

@johnbacon
johnbacon / keybase.md
Created June 27, 2015 23:39
Keybase verification.

Keybase proof

I hereby claim:

  • I am johnbacon on github.
  • I am johnbacon (https://keybase.io/johnbacon) on keybase.
  • I have a public key whose fingerprint is 4B0E BBBC 10FB 6CDC 8F7C A31C 7E7D D004 1887 658C

To claim this, I am signing this object:

(function() {
var url = '//connect.facebook.net/en_US/all.js';
var iframe = document.createElement('iframe');
(iframe.frameElement || iframe).style.cssText = "width: 0; height: 0; border: 0";
iframe.src = "javascript:false";
document.getElementById('fb-root').appendChild(iframe);
var doc = iframe.contentWindow.document;
doc.open().write('<body onload="'+
'window.inDapIF = true;' +
'var js = document.createElement(\'script\');'+
@johnbacon
johnbacon / gist:3967849
Created October 28, 2012 06:11 — forked from kmgdevelopment/gist:3024481
Low Variables Single Tag
{exp:channel:entries channel='external_link'}{exp:low_variables:single var='{external_link}'}{/exp:channel:entries}
{exp:channel:entries channel='external_link'}{exp:low_variables:single var='{external_link:var}'}{/exp:channel:entries}
@johnbacon
johnbacon / gist:3306785
Created August 9, 2012 18:23
RSE Gradient
background: #aaaaaa; /* Old browsers */
background: -moz-linear-gradient(top, #aaaaaa 0%, #595959 4%, #666666 18%, #474747 40%, #2b2b2b 70%, #1c1c1c 97%, #131313 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#aaaaaa), color-stop(4%,#595959), color-stop(18%,#666666), color-stop(40%,#474747), color-stop(70%,#2b2b2b), color-stop(97%,#1c1c1c), color-stop(100%,#131313)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #aaaaaa 0%,#595959 4%,#666666 18%,#474747 40%,#2b2b2b 70%,#1c1c1c 97%,#131313 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #aaaaaa 0%,#595959 4%,#666666 18%,#474747 40%,#2b2b2b 70%,#1c1c1c 97%,#131313 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #aaaaaa 0%,#595959 4%,#666666 18%,#474747 40%,#2b2b2b 70%,#1c1c1c 97%,#131313 100%); /* IE10+ */
background: linear-gradient(to bottom, #aaaaaa 0%,#595959 4%,#666666 18%,#474747 40%,#2b2b2b 70%,#1c1c1c 97%,#131313 100%); /* W3C */
filter: progid:DXImageTr
@johnbacon
johnbacon / gist:2137375
Created March 20, 2012 15:51 — forked from croxton/gist:2135481
Stash embeds
I have a new tag {exp:stash:embed} which allows you to include Stash template files and store
in the database. Files can be fully or partially parsed when read before saving (set), OR
saved and then parsed on retrieval (get). Stash variables can be accessed in the Stash
template files as {stash:variable} and of course all the usual {global_variables} work as
expected.
An example:
{exp:stash:embed
name="news_listing"
@johnbacon
johnbacon / Serve site based on IP Address conditional
Created December 9, 2011 21:35
Serve one site for the specified IP addresses, serve a temporary page otherwise
# Show temporary page for everyone but certain IP addresses.
# My home IP:
RewriteCond %{REMOTE_HOST} !^12\.220\.82\.229
# My work IP:
RewriteCond %{REMOTE_HOST} !^12\.220\.82\.229
# Server IP (needed in some cases):
RewriteCond %{REMOTE_HOST} !^64\.207\.128\.246
@johnbacon
johnbacon / gist:970890
Created May 13, 2011 17:01
Smooth Two-Color Text-Shadow
h1 {
color: #999;
font: bold 80px Helvetica, Arial;
text-shadow:
1px 0px 1px #ccc, 0px 1px 1px #eee,
2px 1px 1px #ccc, 1px 2px 1px #eee,
3px 2px 1px #ccc, 2px 3px 1px #eee,
4px 3px 1px #ccc, 3px 4px 1px #eee,