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
@yankeyhotel
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
yankeyhotel / Google-Sheet-Form-Post.md
Created Oct 15, 2016 — forked from willpatera/Google-Sheet-Form-Post.md
Post to google spreadsheet from html form
View Google-Sheet-Form-Post.md

Overview

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
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() {
You can’t perform that action at this time.