Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hostsError
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts| local packer = require('packer') | |
| -- configuraciones vim | |
| require('settings') | |
| Cmd [[ packadd packer.nvim ]] | |
| packer.startup(function(use) | |
| use 'wbthomason/packer.nvim' | |
| -- visual |
| ~/dotfiles/.. | |
| ★ code-editor | |
| gestor-ventana | |
| git | |
| ✗ shell | |
| terminal | |
| tmux | |
| generate-links.sh | |
| install-programs.sh | |
| README.md |
| export const downloadFile = (nameFile: string, path: string): void => { | |
| const downIntance = document.createElement('a'); | |
| downIntance.href = path; | |
| downIntance.target = '_blank'; | |
| downIntance.download = nameFile; | |
| document.body.appendChild(downIntance); | |
| downIntance.click(); | |
| document.body.removeChild(downIntance); |
| import { createSlice } from '@reduxjs/toolkit'; | |
| export const templateSlice = createSlice({ | |
| name: 'name', | |
| initialState: { | |
| counter: 10 | |
| }, | |
| reducers: { | |
| increment: (state, /* action */ ) => { | |
| //! https://react-redux.js.org/tutorials/quick-start |
| import { useState } from 'react'; | |
| interface useFormReturn { | |
| formState: any; | |
| onInputChange(e: any): void; | |
| onResetForm(): void; | |
| } | |
| export const useForm = (initalForm = {}): useFormReturn => { | |
| const [formState, setFormState] = useState(initalForm); |
| import { useCounter } from "../hooks/useCounter"; | |
| const CounterWithCustomHook = () => { | |
| const { counter, increment, decrement, reset } = useCounter(10); | |
| return ( | |
| <> | |
| <h1>Counter With Hook: {counter}</h1> | |
| <hr /> |
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
# esto en caso de trabajar con typescript
yarn add --dev @babel/preset-typescript| [user] | |
| name = kensaaa | |
| email = [email protected] | |
| [core] | |
| editor = nvim | |
| [alias] | |
| s = status -sb | |
| lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
| [github] | |
| user = kensaaa |