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 / mmcguff.omp.json
Last active January 24, 2024 14:58
mmcguff.omp.json
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#333333",
"foreground": "#ff0000",
"leading_diamond": "\ue0b6",
@mmcguff
mmcguff / main.yml
Created September 13, 2021 12:03
Include this main.yml unalerted to the file path .github/workflows. Remember to set the required Github secrets to validate this is working. Additionally all your work needs to be organized inside the public_html folder in the repo.
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ main ]
pull_request:
class Clock extends React.Component {
render() {
return (
<div>
<h1>Hello, world!</h1>
<h2>It is {this.props.date.toLocaleTimeString()}.</h2>
</div>
);
}
}
function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}
const element = <Welcome name="Sara" />;
ReactDOM.render(
element,
document.getElementById('root')
);
class Welcome extends React.Component {
render() {
return <h1>Hello, {this.props.name}</h1>;
}
}
@mmcguff
mmcguff / React-Function-Component.js
Last active August 10, 2021 10:50
A sample react function component
function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}
@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 {
@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 / 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/' " \
{
new_or_modified_opportunitites: {
#type: :paging_desc,
input_fields: -> () {
[
{
name: "date_modified",
type: :timestamp,
optional: false