Skip to content

Instantly share code, notes, and snippets.

@jonathanzufi
jonathanzufi / gist:8a6d4782f1bbf7d3dcd6e5c67720fffb
Last active November 22, 2024 18:59
nodeJS sample for submitting iOS Push Notifications to Apple's APNS
"use-strict";
const http2 = require("http2");
const fs = require("fs");
const certKeyPath = "/Users/username/project/certificates/private.key.pem";
const certPath = "/Users/username/project/certificates/public.crt.pem";
const applicationBundleID = "com.companyname.myAppName";
const pushServerEndpoint = "https://api.push.apple.com";
const appSharedSecret = "8234e6db4d244cbfa25bc98a777a5486";
const storeEnvironment = "sandbox";
@cameroncowden
cameroncowden / page.google-product-feed.liquid
Created August 15, 2018 15:34
Shopify Google Product Feed xml generator
{% comment %}
Instructions:
- Create a blank page called 'Google Base Product Feed'and save it
- Open that page for editing and select 'page.google-feed' from the page template selector
- Add a brief site description to the meta-shop-description snippet
- The feed url should now be available at http://www.yoursite.com/pages/google-base-product-feed
- validate your field at http://validator.w3.org/feed/
- when ready, submit your feed at http://base.google.com
@remarkablemark
remarkablemark / draggable-example.js
Created December 17, 2016 04:13
Basic draggable example using vanilla JavaScript.
'use strict';
/**
* Makes an element draggable.
*
* @param {HTMLElement} element - The element.
*/
function draggable(element) {
var isMouseDown = false;
@janogarcia
janogarcia / email_coding_guidelines.md
Last active November 26, 2024 15:35
Email Coding Guidelines