Caiu no IntelliJ agora?
Aprenda só esses:
Tipo de Atalho | IntelliJ IDEA |
---|
import React, { useState, useRef } from 'react'; | |
import { | |
SafeAreaView, | |
StyleSheet, | |
Text, | |
View, | |
TouchableHighlight, | |
} from 'react-native'; |
<?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; |
https://linux.how2shout.com/how-to-install-php-7-4-on-amazon-linux-2/ |
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)) { |
const father = { | |
name: 'Zeus', | |
} | |
const mother = { | |
name: 'Demeter', | |
} | |
const persephone = { | |
say() { | |
console.log(`"Persephone" is daughter from "${this.name}"`) | |
} |
tasklist /svc /fi "imagename eq svchost.exe" | findstr LxssManager
task manager as administrator
, in the details tab, search for the svchost.exe
containing the PID'end process tree'
wsl --shutdown
and wsl
.References:
Can't restart WSL2, LxssManager hangs in stopping state, how to restart?
WSL don't start, don't open and don't answer
const { createMetroConfiguration } = require('expo-yarn-workspaces') | |
const { getDefaultConfig } = require('metro-config') | |
const configuration = createMetroConfiguration(__dirname) | |
module.exports = (async () => { | |
const { | |
resolver: { sourceExts } | |
} = await getDefaultConfig() | |
return { |
Heroku only allows each dyno to send and receive external network traffic on a single port, which means you can't simply
run node --debug server.js
and attach your debugger to your-app.herokuapp.com:5858
.
To work around this, you can use ngrok and Heroku ngrok Buildpack to tunnel to the debugger's port and access it externally.
// i will use playcode.io | |
// depedencies -> moment and faker | |
function getRandomInt(min, max) { | |
min = Math.ceil(min); | |
max = Math.floor(max); | |
return Math.floor(Math.random() * (max - min) + min); //The maximum is exclusive and the minimum is inclusive | |
} | |
class Depto { |