Skip to content

Instantly share code, notes, and snippets.

View meg-gutshall's full-sized avatar
💭
"Work is love made visible."

Meg Gutshall meg-gutshall

💭
"Work is love made visible."
View GitHub Profile
@meg-gutshall
meg-gutshall / readme-template.md
Last active April 3, 2024 17:19
A README.md template I created from a few different resources. It's a work in progress. ;) Please comment below with any suggestions for edits!

Project Title

Description: A few sentences about your project and/or overview that explains what your project is about.

Build Status and Code Style

Build status of continuous integration (travis, appveyor, etc.) and code style (xo, standard etc.). It's common to include status badges here so contributors and prospective end-users can see the status of your project at a glance. Just don't go too crazy or it will look like a mess.

Find status badges at the follow sites: >- Shields.io

React Lifecycle Methods

Mounting Lifecycle Methods

Called once on initial render

Method current props and state prevProps prevState nextProps nextState Can call this.setState Called when? Used for
constructor no no no no no no once, just before static getDerivedStateFromProps() is called for the first time setting initial state
@meg-gutshall
meg-gutshall / .asdfrc
Last active November 18, 2022 21:19
Config Files
legacy_version_file = yes
@meg-gutshall
meg-gutshall / quotes.txt
Last active July 11, 2022 14:13
A file of quotes that bring me joy and inspiration
"Reading is to the mind what exercise is to the body." —Joseph Addison
"You gotta learn how to do something wrong before you can do it right." —David Alpert
"Being nice doesn't take much time." —Marie Antons
"If you have to ask what jazz is, you'll never know." —Louis Armstrong
"In dreams and in love, there are no impossibilities." —Janos Arnay
"Forethought spares afterthought." —Amelia Barr
"Do not seek to follow in the footsteps of the men of old; seek what they sought." —Matsuo Basho
"Believe in yourself. You are braver than you think, more talented than you know, and capable of more than you imagine." —Roy T. Bennett
"Nobody likes getting up early, but everyone likes having gotten up early." —Stephen Blais
"The only wrong first step is not taking the first step." —Stephen Blais
@meg-gutshall
meg-gutshall / quotes-clean.json
Created May 26, 2022 13:47
A JSON file of my inspirational quotes (curse words filtered out)
{
"quotes": {
"quote": "\"Reading is to the mind what exercise is to the body.\" —Joseph Addison",
"quote": "\"You gotta learn how to do something wrong before you can do it right.\" —David Alpert",
"quote": "\"Being nice doesn't take much time.\" —Marie Antons",
"quote": "\"If you have to ask what jazz is, you'll never know.\" —Louis Armstrong",
"quote": "\"In dreams and in love, there are no impossibilities.\" —Janos Arnay",
"quote": "\"Forethought spares afterthought.\" —Amelia Barr",
"quote": "\"Do not seek to follow in the footsteps of the men of old; seek what they sought.\" —Matsuo Basho",
"quote": "\"Believe in yourself. You are braver than you think, more talented than you know, and capable of more than you imagine.\" —Roy T. Bennett",
@meg-gutshall
meg-gutshall / colorized_factory_bot.rake
Created August 11, 2023 17:18
Colorized FactoryBot Linter
# frozen_string_literal: true
require 'colorize'
require 'English'
namespace :factory_bot do
desc 'Verify that all FactoryBot factories are valid'
task lint: :environment do
return unless Rails.env.development?