Caiu no IntelliJ agora?
Aprenda só esses:
| Tipo de Atalho | IntelliJ IDEA |
|---|
| function isTimeFormatValid(timeString) { | |
| const timeRegex = /^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$/; | |
| const dateTimeRegex = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/; | |
| return timeRegex.test(timeString) || dateTimeRegex.test(timeString); | |
| } | |
| function calculateHourlyRate({ startTime, endTime, pricePerHour }) { | |
| // Check if start time and end time are in a valid format | |
| if (!isTimeFormatValid(startTime) || !isTimeFormatValid(endTime)) { |
| https://linux.how2shout.com/how-to-install-php-7-4-on-amazon-linux-2/ |
| <?php | |
| namespace app\modules\api\services\pagarme\orders; | |
| class CheckoutService | |
| { | |
| private string $SECRET_API_KEY = ''; | |
| private array $headers; | |
| public function __construct() | |
| { | |
| $username = $this->SECRET_API_KEY; |
| const items = [] | |
| // simulate request add item using api | |
| function api(id, date, country) { | |
| const item = { | |
| id, | |
| date, | |
| timestamp: Date.parse(date), // timestamp | |
| country | |
| } | |
| items.push(item) |
| import React, { useState, useRef } from 'react'; | |
| import { | |
| SafeAreaView, | |
| StyleSheet, | |
| Text, | |
| View, | |
| TouchableHighlight, | |
| } from 'react-native'; |
| { | |
| "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | |
| "organizeImports": { | |
| "enabled": true | |
| }, | |
| "files": { | |
| "maxSize": 30000000 | |
| }, | |
| "linter": { | |
| "enabled": true, |
The @babel/preset-flow, animate.css, wow.js and http-server are depends not required.
Required dependencies
pnpm add -D babel-loader @babel/core @babel/preset-env @babel/preset-react @rspack/cli @rspack/core @rspack/dev-server @rspack/plugin-react-refresh react-refresh css-loader sass-loader style-loader react react-dom| const list = document.getElementById('list') | |
| const createCard = ({img: url, username}) => { | |
| const div = document.createElement('div') | |
| div.classList.add('card') | |
| const img = document.createElement('img') | |
| img.src = url | |
| const span = document.createElement('span') |
I want to remind you that this post does not follow a chronological order, in the future I may make two new posts, one about an optimistic lock in MongoDB and another about a comparison between the two locking models.
I will use the NoSQL database (MongoDB) together Node.js and Mongoose to explain how to work with a document lock
Enjoy reading! 😃