Skip to content

Instantly share code, notes, and snippets.

View harireddy7's full-sized avatar
🏠
Working from home

Hari Kotha harireddy7

🏠
Working from home
View GitHub Profile
@harireddy7
harireddy7 / typescript-setup.md
Created April 20, 2024 11:57
Setup a typescript project with eslint, prettier, husky and jest

Setup Typescript project

featuring:

  • eslint
  • prettier
  • husky
  • jest

Steps

var

  • create variables that are limited to function scope

  • variables once assigned can be reassigned with different values

  • variables with var declaration are hoisted to the top of function definition & assigned undefined till its actual initialization

if (true) {
@harireddy7
harireddy7 / setup-mysql.md
Created March 23, 2024 12:06
Setup mysql on Ubuntu 22.04.4 LTS

Setup mysql on Ubuntu

  • Install mysql
  • Configure mysql server user
  • Install mysql-workbench

Install mysql

update the local packages

@harireddy7
harireddy7 / react-testing-notes.md
Last active November 14, 2023 11:09
Notes on React unit testing

Testing routing from one route to other route

// Add additional routes here to test routing
const UnitTestRouter = () => (
  <Routes>
    <Route
      path={'user/*'}
      element={<UserDashboard />}
    />
@harireddy7
harireddy7 / typescript-setup.md
Created July 17, 2023 14:44
Setup a typescript project with eslint, prettier, husky and jest

Setup Typescript project

featuring:

  • eslint
  • prettier
  • husky
  • jest

Steps

@harireddy7
harireddy7 / ssh-https-github.md
Created April 27, 2023 06:03
SSH or HTTPS to use while connecting to github