Skip to content

Instantly share code, notes, and snippets.

View philipmorg's full-sized avatar

Philip Morgan philipmorg

View GitHub Profile
@philipmorg
philipmorg / gist:7739408
Last active December 29, 2015 22:59
WL /who page fixes
<!-- 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>
</div>
@philipmorg
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?
<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 />
</fieldset>
<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>
</form>
<script type="text/javascript">
@philipmorg
philipmorg / gist:2cf5cdafde1dadc9171f
Last active August 29, 2015 14:02
PMC newletter template (inlined)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<style type="text/css">
<form action="http://philipmorganconsulting.us7.list-manage.com/subscribe/post?u=94d5e174f64933d212773adbc&amp;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>
</form>

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.