Skip to content

Instantly share code, notes, and snippets.

View laurazenc's full-sized avatar
🎯
Focusing

Laura Coalla laurazenc

🎯
Focusing
View GitHub Profile
{
"presets": [
"env"
]
}
@laurazenc
laurazenc / CSS
Created November 24, 2018 13:17
New Tab Style - Chrome plugin extension
/* IMPORTANT: Click outside of the gray area when you finish to save the changes */
.panorama{
display: none;
}
body {
background-image: none;
background: #dedede;
}
@laurazenc
laurazenc / bash.sh
Created February 6, 2019 16:07
Docker PostgresSQL
// Access bash from postgres container
docker exec -it <DOCKERCONTAINER_NAME> bash
// Access with defined user in docker-compose.yaml
psql -U postgres
@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.

@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 / 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 / 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 / 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 / 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