Skip to content

Instantly share code, notes, and snippets.

View drodil's full-sized avatar
💣

Heikki Hellgren drodil

💣
View GitHub Profile
import React from "react";
import { useForm, SubmitHandler } from "react-hook-form";
import { usePutFormMutation } from "../formApi";
import { useDispatch, useSelector } from 'react-redux'
type Inputs = {
name: string,
};
export default function FormPageTwo() {
@drodil
drodil / alphabet.md
Created April 27, 2022 05:48
Programmer's phonetic alphabet

Programmer's phonetic alphabet

Just like NATO phonetic alphabet but using software related words. You can use them to spell out your git commit SHAs or JIRA issue codes.

The alphabet

  • A - Agile
  • B - Build
  • C - Commit
@drodil
drodil / npm-check.sh
Created September 21, 2023 08:12
Run npm-check to all package.json files in monorepo
find . -type f -name 'package.json' -not -path './.git/*' -not -path '*/node_modules/*' -execdir readlink -f {} \; -execdir npm-check \; > deps.log
const fs = require('fs');
const path = require('path');
// Configuration: Define libraries and their packages to analyze
const LIBRARIES = {
'Material UI 4 Components': {
packages: ['@material-ui/core', '@material-ui/lab'],
},
'Material UI 5 Components': {
packages: ['@mui/material', '@mui/lab'],