Skip to content

Instantly share code, notes, and snippets.

View ketanmistry's full-sized avatar

Ketan Mistry ketanmistry

View GitHub Profile
@ketanmistry
ketanmistry / Pre-launch Website Checklist.md
Last active September 18, 2024 06:38
Pre-launch Website Checklist. Add this as a final issue to the Github repository.

Pre-launch Website Checklist

The following checklist should be actioned after all major development work has been completed.

Browser Testing

Check the website:

  1. Responds to different devices and screen sizes appropriately.
  2. The design of the site is displayed as expected.
@ketanmistry
ketanmistry / Shopify-markdown.liquid
Created January 13, 2020 05:03
Shopify parse markdown table within content.
{% comment %}
Parse Markdown table within content.
{% endcomment %}
{% assign page_content = page.content | strip_newlines %}
{% assign page_content = page_content | replace_first: '<p>|', '<table><tr><td>' %}
{% assign page_content = page_content | replace: ' | ', '</td><td>' %}
{% assign page_content = page_content | replace: '&nbsp;| ', '</td><td>' %}
{% assign page_content = page_content | replace: ' |&nbsp;', '</td><td>' %}
{% assign page_content = page_content | replace: '&nbsp;|&nbsp;', '</td><td>' %}
/* jQuery Validate Emails with Regex */
function validateEmail(Email) {
var pattern = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
return $.trim(Email).match(pattern) ? true : false;
}
@ketanmistry
ketanmistry / fixer-currency-tracker.1d.php
Last active July 8, 2018 01:19
BitBar PHP script to return GBP to AUD rate using fixer.io's API.
#!/usr/bin/php
<?php
# -*- coding: utf-8 -*-
# <bitbar.title>Currency Tracker</bitbar.title>
# <bitbar.version>1.0</bitbar.version>
# <bitbar.author>Ketan Mistry</bitbar.author>
# <bitbar.author.github></bitbar.author.github>
# <bitbar.desc>Currency checker using fixer.io.</bitbar.desc>
# <bitbar.image></bitbar.image>