Skip to content

Instantly share code, notes, and snippets.

View johnbuck's full-sized avatar

John Buckingham johnbuck

View GitHub Profile
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { Link } from '../pages/routes';
const ProfileImageElement = styled.div`
border-radius: 100%;
width: ${props => props.width || '75px'};
height: ${props => props.width || '75px'};
background-image: url(${props => props.src || '/static/userIcon.png'});
background-size: cover;
<form method="POST" action="javascript:void(0)" target="_blank" class="search-form">
<div class="form-group form-inline">
<select name="class_date" class="search-select select-light select-inverse" onChange="this.form.action=this.options[this.selectedIndex].value;">
<option value="">Choose a class date</option>
<option value="https://example.com">Monday, September 18 2017</option>
<option value="https://example.com">Monday, September 25 2017</option>
<option value="https://example.com">Monday, October 9 2017</option>
<option value="https://example.com">Monday, October 16 2017</option>
<option value="https://example.com">Monday, October 23 2017</option>
<option value="https://example.com">Monday, October 30 2017</option>
@johnbuck
johnbuck / gist:e268713cfcc177aeb2fe914605a327a7
Last active February 14, 2017 23:49
Estimated Product Delivery Date Psuedocode
If [product] == (bed | furniture) & {
If [product inventory > 0] {
[Display the inventory message "2-3 Weeks Estimated Delivery"]
}
If [product variant.incoming == TRUE] {
@johnbuck
johnbuck / gist:bc1d803c9de768b918be0bfa0504f760
Created February 6, 2017 22:04
VM-Related Video Embed Script
<iframe width="640" height="360" style="border-width:0" src="http://interactive.tegna-media.com/video/embed/embed.html?id=2436897&type=video&title=Southpark Seafood Farm to Table Virtual Reality Tours&site=283&playerid=6918249996581&dfpid=32805352&dfpposition=Video_prestream_external&ion=home">/iframe>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Groove Access Token
var access_token = '[ACCESS TOKEN]]';
// Get current opened and unread tickets
fetch( ['https://api.groovehq.com/v1/tickets?state=opened,unread&per_page=50&access_token=', access_token].join('') )
.then(function(res) {
return res.json();
})
.then(function(json) {
var i, foundTicket = false;
function pancake_custom_excerpt_length( $length ) {
return 200;
}
add_filter( 'excerpt_length', 'pancake_custom_excerpt_length', 999 );
https://vimeo.com/134962656
https://vimeo.com/134897472
https://vimeo.com/112536270
https://vimeo.com/134897123
https://vimeo.com/101956651
https://vimeo.com/99372305
https://vimeo.com/99047330
https://vimeo.com/99046783
https://vimeo.com/104348321
https://vimeo.com/134877314
Hi!
One of our members just included your business on a Visiting Media map titled <strong>%collection_title%.  </strong>Find your business on this map here:  <strong>%collection_url%</strong>
<strong><span style="text-decoration: underline;">If you're a Visiting Media member we've already synced your profile content to this map!  You don't have to do anything!</span></strong>  If you're not a Visiting Media member please find your business on this map and click 'claim this profile'.
<a title="Contact Us" href="http://www.visitingmedia.com/contact-us/" target="_blank">Contact us</a> with any questions or to learn more.
&nbsp;
Hi,
You're now being promoted by a local business on their official recommend business list.  <span style="text-decoration: underline;">If you're a Visiting Media member we've already synced your media &amp; content to this PartnerList™! </span>  Now you can easily manage what customers see as this business promotes you!
If you're not a Visiting Media member consider giving it a try!  <strong>Join Visiting Media as a basic+plus member free for 6 months!</strong>  Search for your business on this PartnerList™ and click 'claim this profile'.  Use discount code 'PARTNER'.  This offer is only available to businesses on a PartnerList™.
&nbsp;
<p style="text-align: left;"><strong>Watch this short video to learn more about the PartnerList™ tool!</strong></p>
<p style="text-align: left;">Can't see this video... <a href="http://visitingmedia.com/member-support/#partnerlist" target="_blank">click here to find it!</a></p>
<a href="http://visitingmedia.com/member-support/#partnerlist" target="_blank"><img src="http://