Skip to content

Instantly share code, notes, and snippets.

View Oscarz90's full-sized avatar
🤓
coding...

Oscar Oscarz90

🤓
coding...
View GitHub Profile

Redux

  1. Actions
  2. Reducers
  3. Store

Actions

Actions are payloads of information that send data from your application to your store

@Oscarz90
Oscarz90 / 1-setup.md
Created November 6, 2023 22:12 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md to reflect my findings.

@Oscarz90
Oscarz90 / AsyncMuiAutocomplete.test.tsx
Created August 30, 2024 22:13 — forked from sluger/AsyncMuiAutocomplete.test.tsx
Testing MUI (@mui/material) autocomplete component with react-testing-library and async options simulated by a sleep
import Asynchronous from './AsyncAutocomplete';
import { render, screen, fireEvent, waitFor, prettyDOM, within } from '@testing-library/react';
describe('Async autocomplete', () => {
it('renders options', async () => {
render(<Asynchronous></Asynchronous>);
await waitFor(() => expect(screen.getAllByText('Asynchronous')).toBeDefined());
const combobox = screen.getByRole('combobox');