start new:
tmux
start new with session name:
tmux new -s myname
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.
| [ | |
| { | |
| "key": "cmd+o cmd+p", | |
| "command": "workbench.action.showCommands" | |
| }, | |
| { | |
| "key": "cmd+x", | |
| "command": "workbench.view.extensions" | |
| }, | |
| { |
| { | |
| "window.zoomLevel": 2, | |
| "workbench.colorTheme": "Aura Dracula Spirit (Soft)", | |
| "workbench.iconTheme": "material-icon-theme", | |
| "material-icon-theme.hidesExplorerArrows": true, | |
| "workbench.tree.renderIndentGuides": "none", | |
| "workbench.sideBar.location": "right", | |
| "workbench.activityBar.visible": false, | |
| "workbench.statusBar.visible": false, | |
| "workbench.editor.showTabs": false, |
| /** | |
| * Returns a Promise which resolves with a value in form of a tuple. | |
| * @param promiseFn A Promise to resolve as a tuple. | |
| * @returns Promise A Promise which resolves to a tuple of [error, ...results] | |
| */ | |
| export function tuple (promise) { | |
| return promise | |
| .then((...results) => [null, ...results]) | |
| .catch(error => [error]) | |
| } |
| { | |
| "name": "to-be-added", | |
| "version": "0.0.0", | |
| "sideEffects": false, | |
| "exports": { | |
| ".": { | |
| "import": "./dist-esm/bundle.min.mjs", | |
| "require": "./dist-cjs/bundle.min.cjs" | |
| }, | |
| "./server": "./server/index.js" |
Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с данными сохранёнными в базе данных.
Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.
Например после аутентификации юзер sasha получает право обращатся и получать от ресурса "super.com/vip" некие данные. Во время обращения юзера sasha к ресурсу vip система авторизации проверит имеет ли право юзер обращатся к этому ресурсу (проще говоря переходить по неким разрешенным ссылкам)
| import { useForm } from "react-hook-form"; | |
| import { zodResolver } from "@hookform/resolvers/zod"; | |
| import * as z from "zod"; | |
| const schema = z.object({ | |
| email: z.string().email().min(2), | |
| password: z.string().min(6) | |
| }); | |
| export default function RhfFormWithZod() { |