Posts by David Fernando • 115 points
8 posts
-
-1
votes2
answers880
viewsA: Adjustments to the React.JS CSS
Basically you will use display:flex in the cards, and in the div that organizes the cards you can use display:grid. How much responsiveness is only you adapt using css media query. I made a example…
-
1
votes1
answer110
viewsA: Neural network output returning Null
I already found the solution to the problem. The Error was in this block: for (let i = 0; i < letras.length; i++) { codigos.push(alfabeto.indexOf(letras[i].toUpperCase()) + 1); }…
-
0
votes1
answer110
viewsQ: Neural network output returning Null
I’m making a neural net with brain.js, to learn the alphabet. the code is as follows:: const alfabeto = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R",…
-
2
votes1
answer960
viewsQ: How to run a function after a certain time in Pygame?
I’m making a game with Python, in which character jumps obstacles and falls after a few seconds. In javascript I used the setTimeOut function for this. In Python I tried to do the same thing with…
-
4
votes3
answers275
viewsQ: How to configure pygame in English?
I’m playing a game with pygame. I want to show a text in Portuguese on the screen, but the same exchange "ç", "ã", "[", and "<" for "?" (question mark). import pygame class TelaInicial(): def…
-
0
votes2
answers109
viewsA: Send messages on web site(messenger online)
You can use firebase, https://firebase.google.com . Although, it’s good you learn backend, you can use it for a full backend.…
-
0
votes1
answer1150
viewsQ: How to configure Portuguese in kivy?
My App has two files, *.py and *.Kv, but I’m having problems with accents in my GUI. I’ve tried to resolve in the . py with file #encoding: -*- utf-8 -*- But the problem remains, please help me.…
-
3
votes1
answer229
viewsQ: What’s if __name__ == '__main__': if the kivy can run the application without this line of code?
In the kivy documentation shows that pro app working is required if __name__ == '__main__': MyApp().run() But I try to remove the if condition; and the app ran anyway; someone explains why, please!…