I want a row of cells, with nice borders. this kind of works, needs a little more work
<div class="container">
<div class="cell">Cell 1</div>
<div class="cell">Cell 2</div>
<div class="cell">Cell 3</div>
<!-- Add more cells as needed -->To pull a specific Docker image from your local machine and then push it to a remote Docker registry, you can follow these steps:
docker pull command to pull the specific image you want from your local machine. Replace local-image:tag with the name and tag of the image you want to pull.docker pull local-image:tag| // helps us in parsing the frontmatter from text content | |
| const matter = require('gray-matter') | |
| // helps us safely stringigy the frontmatter as a json object | |
| const stringifyObject = require('stringify-object') | |
| // helps us in getting the reading time for a given text | |
| const readingTime = require('reading-time') | |
| // please make sure you have installed these dependencies | |
| // before proceeding further, or remove the require statements | |
| // that you don't use |
stores to a local db called ~/.password-store
| const minLength = (min) => (str) => (str||'').toString().trim().length >= min | |
| const contains = (chars, min) => (str) => [...((str||'').toString().trim())].filter(char => (new Set(chars)).has(char)).length >= min | |
| const hasLowerCase = contains('abcdefghijklmnopqrstuvwxyz', 1) | |
| const hasUpperCase = contains('ABCDEFGHIJKLMNOPQRSTUVWXYZ', 1) | |
| const hasNumber = contains('0123456789', 1) | |
| const hasSpecialChar = contains('!@#$%^&*()-+_', 1) | |
| const compose = (...fns) => (x) => fns.map((fn) => fn(x)) | |
| const passwordPolicyCheck = compose( | |
| minLength(12), | |
| hasLowerCase, |
| Client | Server |
|---|---|
| Use React hooks such as useState, useEffect, useReducer | Fetch Data |
| Interactivity within the component, with event listeners (onClick()) | Store sensitive information on server (tokens, API keys, etc.) |
| Use custom hooks that depend on state, effects. | Access backend resources directly |
| Keep large dependencies on the server |