Skip to content

Instantly share code, notes, and snippets.

View mmcguff's full-sized avatar
:octocat:

Matthew McGuff mmcguff

:octocat:
View GitHub Profile
class Welcome extends React.Component {
render() {
return <h1>Hello, {this.props.name}</h1>;
}
}
function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}
const element = <Welcome name="Sara" />;
ReactDOM.render(
element,
document.getElementById('root')
);
class Clock extends React.Component {
render() {
return (
<div>
<h1>Hello, world!</h1>
<h2>It is {this.props.date.toLocaleTimeString()}.</h2>
</div>
);
}
}
@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:
@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",