Skip to content

Instantly share code, notes, and snippets.

Matt McClard yankeyhotel

Block or report user

Report or block yankeyhotel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View LESS Font Mixins
// &
.rem-calc(@sizeValue) {
@remValue: @sizeValue/10;
@pxValue: @sizeValue;
font-size: ~"@{pxValue}px";
font-size: ~"@{remValue}rem";
View Vimeo embed
<iframe src="" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
yankeyhotel / html
Created Sep 19, 2018
youtube embed w/ mute and autoplay and loop
View html
<iframe width="560" height="315" src="" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
<div id="muteYouTubeVideoPlayer"></div>
<script async="" src=""></script>
function onYouTubeIframeAPIReady() {
var player;
player = new YT.Player('muteYouTubeVideoPlayer', {
videoId: 'ZHiVC_51KkI', // YouTube Video ID
yankeyhotel / shopify-money.js
Created Jul 24, 2018 — forked from stewartknapman/shopify-money.js
The Shopify.formatMoney method extracted from option_selection.js for stand-alone purposes.
View shopify-money.js
var Shopify = Shopify || {};
// ---------------------------------------------------------------------------
// Money format handler
// ---------------------------------------------------------------------------
Shopify.money_format = "${{amount}}";
Shopify.formatMoney = function(cents, format) {
if (typeof cents == 'string') { cents = cents.replace('.',''); }
var value = '';
var placeholderRegex = /\{\{\s*(\w+)\s*\}\}/;
var formatString = (format || this.money_format);
yankeyhotel / DataGrab + PT FieldPack List
Created Dec 9, 2014
Make DataGrab work with the Pixel & Tonic's List Field Pack
View DataGrab + PT FieldPack List
// @line 150
if (is_string($data) && strpos($data, "|") >= 0 ){
$data = explode("|", $data);
yankeyhotel / recipient.json
Last active Jun 13, 2017
Example Recipient JSON
View recipient.json
"id": "xxxxxxxxxx",
"email": "",
"first_name": "Matt",
"last_name": "McClard",
"recharge_customer_id": "xxxxxxxxxx",
"shopify_customer_id": "xxxxxxxxxx",
"default_address_id": {
"id": "xxxxxxxxxx",
"first_name": "matt",
yankeyhotel /
Created Oct 15, 2016 — forked from willpatera/
Post to google spreadsheet from html form


This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Run example

You should be able to just open index.html in your browser and test locally.

However if there are some permissions errors you can make a quick html server with python. Open terminal and cd to the directory where the gist files are located and enter python -m SimpleHTTPServer. By default this creates a local server at localhost:8000

yankeyhotel / whatWidth.js
Created Sep 16, 2016
Create a div that shows the pixel dimensions for developing responsive sites
View whatWidth.js
// =========================================
// NOTE: whatWidth for Dev only
// =========================================
(function() {
window.addEventListener("resize", resizeThrottler, false);
var resizeTimeout;
function resizeThrottler() {
// ignore resize events as long as an actualResizeHandler execution is in the queue
if ( !resizeTimeout ) {
yankeyhotel / futures_wait.js
Created Apr 19, 2016 — forked from deanius/futures_wait.js
Wait on Array of Futures
View futures_wait.js
// server/server.js
var Future = Npm.require('fibers/future');
Meteor.methods ({
testFutures: function(array) {
// var future = new Future;
// setTimeout(function() {
yankeyhotel / find.js
Created Aug 12, 2015
Find a value of greater than or null in Mongo Collection
View find.js
var coupon = Coupons.findOne({
codes: { $in: [coupon_code] },
valid: true,
redeem_by: { $lte: now },
$or: [
{ end_date: { $gte: now } },
{ end_date: null }
You can’t perform that action at this time.