Skip to content

Instantly share code, notes, and snippets.

View wojnar48's full-sized avatar

Szymon Wojnar wojnar48

View GitHub Profile
@wojnar48
wojnar48 / Selectors.tsx
Created January 30, 2022 01:44 — forked from jacques-blom/Selectors.tsx
Selectors Example - Starting Point
import {
Box,
FormControl,
FormLabel,
Heading,
HStack,
Icon,
NumberInput,
NumberInputField,
Switch,
@wojnar48
wojnar48 / cli-notes.md
Last active November 4, 2021 03:59
cli-notes

CLI Notes

Useful Commands

# Make a local npm package usable globally
npm link
## Unlink a package (same as running: npm install -g <pkg_name>)
npm uninstall -g <pkg_name>
# Check if user is logged into npm
import { CSVReader } from "react-papaparse";
/**
Render the <CSVStreamer /> component defined below instead of the dropzone component.
*/
export default class CSVStreamer extends React.Component {
render() {
return (
<CSVReader
@wojnar48
wojnar48 / auth.md
Last active November 25, 2021 18:25
Notes

OpenID Connect

OpenID Connect is a thin layer on top of OAuth 2.0 that provides authorization (identity) on top of authentication (OAuth 2.0). OIDC introduced the identity token (JWT) which contains info about the user.

Allows users to grant access to resources without sharing the password and with revoke-ability.

Implicit Flow

@wojnar48
wojnar48 / index.md
Last active July 22, 2021 14:59
qs

JS/TS Questions

  • What is a monorepo? What are the alternatives?
  • What is Tailwind and why use it?
  • What is tsdx?
  • What is vite?
  • What is bigint used for in JS?