Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 1Aggnu99yhYVvjKePLMuKg13WhdbardE5H https://explorer.blockstack.org/address/1Aggnu99yhYVvjKePLMuKg13WhdbardE5H
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
<script>
(function(f, a, t, h, o, m){
a[h]=a[h]||function(){
(a[h].q=a[h].q||[]).push(arguments)
};
o=f.createElement('script'),
m=f.getElementsByTagName('script')[0];
o.async=1; o.src=t; o.id='fathom-script';
m.parentNode.insertBefore(o,m)
@pjrvs
pjrvs / how?
Last active December 9, 2022 18:49
here's the code to populate a mailchimp field with a wordpress variable:
add_filter( 'mailchimp_sync_subscriber_data', function( MC4WP_MailChimp_Subscriber $subscriber, $user ) {
$subscriber->merge_fields['MERGE6'] = AFF_ID_GOES_HERE;
return $subscriber;
}, 10, 2 );
here's the code to get the aff id:
if ( $affiliate = affiliate_wp()->affiliates->get_by( 'user_id', $user->ID ) ) {

Keybase proof

I hereby claim:

  • I am pjrvs on github.
  • I am pjrvs (https://keybase.io/pjrvs) on keybase.
  • I have a public key whose fingerprint is 93A9 62D6 10DF 20F0 288C A63D 8268 8E22 4B68 86F4

To claim this, I am signing this object:

@pjrvs
pjrvs / jobposting.html
Last active February 2, 2016 16:05
IOH programmer + co-founder
We (Paul Jarvis &amp; Jason Zook, the hosts of <a href="http://invisibleofficehours.com">invisibleofficehours.com</a>
are looking for a programmer + co-founder for our new SaaS venture.
Not just any developer though.
We want someone cool.
Someone with a personality.
Someone who does great work.
Someone who communicates well.
Someone who LAUNCHES.

Web Design Contract (open-source)

Between [your name] and [their name]

Summary:

You ([their name]), located at [customer address] are hiring me ([your name]) located at [company address] to [design and develop a web site] for the estimated total price of [total] as outlined in our previous correspondence.

What do both parties agree to do?

@pjrvs
pjrvs / newslettercookie.html
Last active November 7, 2017 09:33
a jquery cookie that shows a signup form for people that aren't signed up and an alternate message for people that came from the list or signed up.
<!DOCTYPE html>
<html>
<head>
<title>jQuery Cookie + MailChimp</title>
<meta charset="utf-8">
</head>
<body>
<form action="XXX" method="post" class="signup">
jQuery( document ).ready( function( $ ) {
jQuery( 'div.relatedmovehere' ).html( jQuery( 'div.jp-relatedposts' ).detach() );
} );