Skip to content

Instantly share code, notes, and snippets.

View laurazenc's full-sized avatar
🎯
Focusing

Laura Coalla laurazenc

🎯
Focusing
View GitHub Profile
@laurazenc
laurazenc / PULL_REQUEST_TEMPLATE.md
Created October 25, 2022 06:22
pull request template

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

How to test

Please include instructions about how to test your changes.

  • Test A
  • Enter this path
  • Mock this endpoint with this data
@laurazenc
laurazenc / machine.js
Created June 27, 2022 10:54
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@laurazenc
laurazenc / machine.js
Created June 14, 2022 11:05
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@laurazenc
laurazenc / style.css
Created May 24, 2022 06:58
Solve blurry fonts
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@laurazenc
laurazenc / git.md
Last active March 3, 2022 12:06
Edit commit from branch

git rebase --interactive 'bbc643cd^' // This should be the hash from the commit you are trying to edit

Make changes

git commit --all --amend --no-edit

Continue rebasing

git rebase --continue

@laurazenc
laurazenc / machine.js
Created November 23, 2021 13:21
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@laurazenc
laurazenc / jest.code-snippets
Last active September 8, 2021 14:15
VSCode snippets
{
"Jest suite test for components": {
"prefix": "test-suite-comp",
"body": [
"import { render, screen } from '@testing-library/react'",
"import { ${TM_FILENAME_BASE/([^.]+).*/${1}/} } from './${TM_FILENAME_BASE/([^.]+).*/${1}/}'",
"",
"describe('${TM_FILENAME_BASE/([^.]+).*/${1}/}', () => {",
" it('should render', () => {",
" const renderInstance = render(<${TM_FILENAME_BASE/([^.]+).*/${1}/}/>)",
@laurazenc
laurazenc / react-project-structure.md
Last active October 27, 2020 08:23
React project structure

Project Structure

Why

  • Easy to read
  • Modularity
  • Separation of Concerns

How

@laurazenc
laurazenc / settings.json
Created December 15, 2019 15:06
VSCODE Prettier, eslint, typescript config
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": false
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
@laurazenc
laurazenc / BUG_TEMPLATE.md
Last active April 14, 2019 09:36
Github templates
name about
Bug report
Create a bug report for the Next.js core

Bug report

Describe the bug

A clear and concise description of what the bug is.