/**
* @param {number} n
* @param {number[][]} edges
* @return {number[]}
*/
var sumOfDistancesInTree = function(n, edges) {
// Initialize adjacency list
const graph = Array.from({length: n}, () => []);
// Initialize arrays to store the size of each subtree and the answer
const size = Array(n).fill(1);
const ans = Array(n).fill(0);
// Convert edge list to adjacency list
for (let [u, v] of edges) {
graph[u].push(v);
graph[v].push(u);
}
// P
// Dialog
import clsx from "clsx";
export function Dialog({
children
}: {
children: React.ReactNode;
}) {
return (
<div
className="fixed top-0 left-0 w-full h-full z-50"
>
<div className="relative w-full h-full">
<div className="w-full h-full bg-black opacity-60" />
{children}
</div>
</div>
);
}
export function DialogContent({
className,
children
}: {
# Support Matrix
https://docs.nvidia.com/deeplearning/frameworks/support-matrix/index.html
import maya.cmds as cmds
import sys
from PySide2.QtWidgets import QMainWindow, QTextEdit, QVBoxLayout, QWidget, QApplication
from PySide2.QtCore import Qt
from maya import OpenMayaUI
from shiboken2 import wrapInstance
def maya_main_window():
main_window_ptr = OpenMayaUI.MQtUtil.mainWindow()
return wrapInstance(int(main_window_ptr), QMainWindow)
class CustomScriptEditor(QMainWindow):
def __init__(self, parent=None, flags=Qt.WindowFlags()):
if parent is None:
Abrir Git Bash y poner
```
git config --global init.defaultBranch main
```
//Role to Feature Mapping Configuration
CREATE TABLE [dbo].[Role_Master](
[RoleId] [int] NOT NULL,
[RoleName] [varchar](256) NOT NULL,
[Description] [nvarchar](1000) NULL,
[IsActive] [bit] NOT NULL,
[ActionBy] [nvarchar](50) NOT NULL,
[ActionDate] [datetime] NOT NULL,
CONSTRAINT [PK_Role] PRIMARY KEY CLUSTERED
(
[RoleId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
CONSTRAINT
il faut créer un dossier static et mettre dedans les images
référence à l'image :
`<!DOCTYPE html><img class="card-img-top" src="static/images/fruit_brut.png" alt="..." />`
/**
* @param {string} ring
* @param {string} key
* @return {number}
*/
// Define the function findRotateSteps with parameters ring and key
function findRotateSteps(ring, key) {
// Create a memoization map to store the results of subproblems
const memo = new Map();
// Define the dynamic programming function dp with parameters indexRing and indexKey
function dp(indexRing, indexKey) {
// Base case: if we have spelled all the characters in the key, return 0
if (i
#!bin/bash
sudo apt install gdebi
wget -cO - https://zoom.us/client/6.0.2.4680/zoom_amd64.deb >> ~/softwares/zoom.deb
sudo chmod +wrx ~/softwares/zoom.deb
sudo apt-get install -y ~/softwares/zoom.deb
sudo apt-get autoremove && sudo apt-get clean && sudo apt-get autoclean && sudo apt-get purge
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp
sudo apt install fd-find
sudo apt install libncurses5-dev
s
```python
class BaseLog(Base):
__abstract__ = True
created_at: so.Mapped[datetime | None] = so.mapped_column(sa.DateTime(timezone=True), server_default=sa.func.now())
updated_at: so.Mapped[datetime | None] = so.mapped_column(
sa.DateTime(timezone=True),
server_default=sa.func.now(),
onupdate=sa.func.now(),
)
@so.declared_attr
def created_by_id(cls):
return so.mapped_column(sa.ForeignKey('user.id', ondelete='cascade'))
@so.declared_att
sudo vim /etc/gdm3/custom.conf
# change wayland option to false
sudo systemctl restart gdm3
which pyenv
#### FAYT (Find As You Type)
Ao começar a digitar, os arquivos com o nome digitado são marcados. Para ir de um arquivo para outro, da mesma forma que o MultiCommander faz, usar o **F3**.
## Everything Config
O Directory Opus requer [configurações específicas](https://docs.dopus.com/doku.php?id=additional_functionality:everything_integration) do Everything, que não vem por default nele.
.1) Em Indexes, habilitar os seguintes itens:
![](https://cdn.cacher.io/attachments/u/3m7rozzc0i4fj/sAjA3Mtmb-W1uNljlS4bwgg0KwBXriYQ/f6qflhtrl.png)
.2) Em Indexes > Exclude, desabilitar todos os ítens.
/**
* @param {number[][]} grid
* @return {number}
*/
var minFallingPathSum = function(grid) {
const n = grid.length;
const dp = Array(n).fill(0).map(() => Array(n).fill(Infinity));
// Initialize the first row of dp with the first row of grid
for (let j = 0; j < n; j++) {
dp[0][j] = grid[0][j];
}
for (let i = 1; i < n; i++) {
for (let j = 0; j < n; j++) {
for (let k = 0; k < n; k++) {
// If the columns of the current cel
import { getAccessToken, withApiAuthRequired } from "@auth0/nextjs-auth0";
export default withApiAuthRequired(async function handler(req, res) {
const { accessToken } = await getAccessToken(req, res);
const fetchOptions = {
method: "POST",
headers: {
"Content-Type": "application/json",
"Access-Control-Request-Headers": "*",
jwtTokenString: accessToken,
},
};
const fetchBody = {
dataSource: process.env.MONGODB_DATA_SOURCE,
database: "so