Skip to content

Instantly share code, notes, and snippets.

View pjatx's full-sized avatar

Philip Johnson pjatx

View GitHub Profile
@pjatx
pjatx / example.json
Last active April 28, 2020 13:48
Example contentful data I'm trying to render
[
{
"nodeType":"embedded-entry-block",
"content":[
],
"data":{
"target":{
"sys":{
"space":{
@pjatx
pjatx / renameResumes.py
Last active September 25, 2018 01:41
Rename resume pdf as first email address found
# Import global broad stuff
import os
import os.path
import shutil
import re
from optparse import OptionParser
# Import PDF Miner specific stuff to use as library
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
from pdfminer.converter import TextConverter
@pjatx
pjatx / getHubspotEngagements.js
Last active January 10, 2023 12:40
Hubspot // Google Sheets: Engagement Data
/**
* ###########################################################################
* # Name: Hubspot Automation #
* # Description: This script let's you connect to Hubspot CRM and retrieve #
* # its data to populate a Google Spreadsheet. #
* # Date: March 11th, 2018 (Updated 8/28/2018) #
* # Author: Alexis Bedoret (Adapted to Engagements by Philip Johnson) #
* # Source: https://gist.github.com/pjatx/2f5a4df0885332ff753519ddc69a141f #
* # Detail of the original turorial: https://goo.gl/64hQZb #
* ###########################################################################
@pjatx
pjatx / markdown-link-regex.txt
Last active August 17, 2018 19:18
Match markdown links to replace with html links
@pjatx
pjatx / blog-pagination.erb
Last active April 23, 2018 23:26
Bootstrap 4 Blog Navigation for Middleman
<% if paginate && num_pages > 1 %>
<nav aria-label="Blog Navigation" class="blog-navigation">
<ul class="pagination">
<% if prev_page %>
<li class="page-item">
<%= link_to 'Previous', prev_page, class: 'page-link', tabindex: '-1' %>
</li>
<% else %>
<li class="page-item disabled">