Skip to content

Instantly share code, notes, and snippets.

View mmcguff's full-sized avatar
:octocat:

Matthew McGuff mmcguff

:octocat:
View GitHub Profile
{
title: 'My connector',
connection: {
fields: [
{
name: "token",
control_type: "string",
label: "Bearer token",
function isCCValid(ccNumberString) {
  const patt = /^(?:4[0-9]{12}(?:[0-9]{3})?|[25][1-7][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/;
  if (ccNumberString.match(patt)) {
    console.log("Credit Card is val");
  }
  if (ccNumberString.match(patt)) {
    return true;
  } else {
@mmcguff
mmcguff / blue.css
Created May 11, 2020 15:59
This Gist will demonstrate a simple of way o toggling between different style sheets.
body {
background-color: blue;
}
function getHitchhikerMagicNumber() {
return 42;
}
@mmcguff
mmcguff / free-code-camp-tribute-page.markdown
Created June 20, 2019 11:56
Free Code Camp | Tribute Page