Skip to content

Instantly share code, notes, and snippets.


Philip Morgan philipmorg

View GitHub Profile
View Recommended Podcast
philipmorg / gist:2cf5cdafde1dadc9171f
Last active August 29, 2015 14:02
PMC newletter template (inlined)
View gist:2cf5cdafde1dadc9171f
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<style type="text/css">
View lead-capture-form
<form action=";id=5218cd4a42" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="text" value="" name="FNAME" class="required" id="mce-FNAME">
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>

I bought Amplification on January 27, 2014. On February 5, my first submission to Hacker News peaked at #6 on the front page. That 90 minutes of exposure brought 4,973 visitors to my site over the next 24 hours.

I was aghast. I just sat there, refreshing Google Analytics over and over, seeing screens like this for the first time in my life:

I've never seen attention like this for my personal writing. People were commenting on HN, steam was hissing out of the cracks in my hosting account, and adrenaline was coursing through my veins.

My fingers were shaking for the rest of that 90 minutes, and it took HOURS for the adrenaline to subside.

philipmorg / gist:7739408
Last active December 29, 2015 22:59
WL /who page fixes
View gist:7739408
<!-- Main Page Content and Sidebar -->
<div class="row">
<!-- Main Blog Content -->
<h1>A Heritage of Technology and Business</h1>
<div class="large-8 columns" role="content">
<div class="row">
<div class="large-6 columns">
<img title="Joel with his half pint" src="/img/joelandtorito.jpg" alt="Joel Barker, founder and owner of Word Lions. Also, writer" />
<h2>Joel Barker</h2>
philipmorg / cta-become-lead.html
Last active December 22, 2015 04:39
What I want to happen is for #cta-div to be populated with the "Thank you! We will be..." message if the form POST does not timeout or have some other kind of error. What is actually happening is that #cta-div is being populated with "Sorry, our system..." even if the form POST is successful. What do I change to get my desired behavior?
View cta-become-lead.html
<form action="{{ form-action }}" method="post" class="pure-form" id="become-lead">
<fieldset class="pure-group">
<input type='text' name="lead[name]" placeholder='Your full name' class="pure-input-1" required/>
<input type='text' name="lead[phone]" placeholder='Your phone number' class="pure-input-1" required />
<input type='text' name="lead[email]" placeholder='Your email address' class="pure-input-1" required />
<input type='text' name="note[content]" placeholder='{{ signup-loc }}' default='{{ signup-loc }}' value='{{ signup-loc }}' style="display:none;" />
<button type="submit" class="pure-button pure-button-success">Contact Me About Enrollment</button>
<script type="text/javascript">