Skip to content

Instantly share code, notes, and snippets.

View mmcguff's full-sized avatar
:octocat:

Matthew McGuff mmcguff

:octocat:
View GitHub Profile
@mmcguff
mmcguff / free-code-camp-tribute-page.markdown
Created June 20, 2019 11:56
Free Code Camp | Tribute Page
function getHitchhikerMagicNumber() {
return 42;
}
@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 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 {
{
title: 'My connector',
connection: {
fields: [
{
name: "token",
control_type: "string",
label: "Bearer token",
{
new_or_modified_opportunitites: {
#type: :paging_desc,
input_fields: -> () {
[
{
name: "date_modified",
type: :timestamp,
optional: false
@mmcguff
mmcguff / sugar-crm-custom-connector.rb
Created August 26, 2020 16:33
Code for the custom Sugar CRM Custom connector
{
title: "SugarCRM",
connection: {
fields: [
{
name: "base_url",
hint: "Provide the REST endpoint for your Sugar CRM Instance. " \
"The REST version and the release version are different. See " \
"<a href='https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_9.0/Integration/Web_Services/' " \
@mmcguff
mmcguff / normalize.css
Created August 4, 2021 10:58
A ccs page that helps ensure working between different browsers and screen sizes is a more consistent experince
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
@mmcguff
mmcguff / Home.js
Created August 10, 2021 10:31
The is a sample React component
import React, { Component } from "react";
import "../normalize.css";
import "./Home.css";
import Nav from "../components/home/Nav";
import Title from "../components/home/Title";
import Slider from "../components/home/Slider";
import Footer from "../components/home/Footer";
export default class Home extends Component {
class Welcome extends React.Component {
render() {
return <h1>Hello, {this.props.name}</h1>;
}
}