Posts by Hiran Júnior • 35 points
8 posts
-
0
votes3
answers500
viewsA: Python 3 Negative Indices
def returnOpposite(li): for i in range(len(li) - 1, -1, -1): print(f'Your element is: {li[i]}, Your opposite index: {i * -1 -1}') returnOpposite(['a', 'b', 'c', ’d', 'e', 'f', 'g']) this solves the…
python-3.xanswered Hiran Júnior 35 -
1
votes2
answers84
viewsQ: Nestle 2 maps and write data inside each of them in the React
I need help to write a map on a page in React, but inside this map there will be another map, so before arriving at this second map it must render a data from the first map, the current code is like…
-
0
votes1
answer46
viewsQ: Does anyone know why the list remains empty even after await (Node.js)?
static async readAll(){ const data = [] await mysql.query('SELECT * FROM registro', (err, result, fields) => { if (err) throw err; result.forEach((doc) => { const registro = new Registro(doc);…
-
-1
votes1
answer272
viewsQ: Efficiency of Firebase
Guys, I have a question, and I’m not finding anything on the internet, I’m making an application for a client and I’m using firebase, for being a google server I believe it will withstand the high…
-
0
votes2
answers4378
viewsQ: Positioning in flutter columns
I have the following code on the flutter: import 'package:flutter/material.dart'; class LoginPage extends StatefulWidget { @override _LoginPageState createState() => _LoginPageState(); } class…
-
0
votes1
answer121
viewsA: Open a new window "inside" the current window
You can use jquery for this so that your answer is placed inside some div for example HTML: <div id='conteudo'> </div> Javascript: $('#centeudo').append(<div>SEU CONTEUDO CAPTURADO…
-
-2
votes4
answers75
viewsA: Find item in array
Ta wrong, you are declaring the $mmot inside the if and using it in condition, I believe you have to declare it before
phpanswered Hiran Júnior 35 -
0
votes2
answers306
viewsA: No Overload for Matches delegate error on a C#
You can have two parameters in private void btnEntrar_Click that are the arguments (object sender, EventArgs e), you can try to pass your parameters inside an invisible text box for example, put the…