Posts by Safirah • 153 points
6 posts
-
0
votes1
answer187
viewsQ: How to draw 2 images on canvas with different fps
Let’s imagine 2 images imagem A and imagem B, I want to draw the imagem A at 60 fps, and imagem B at 30 fps. I wanted to know (using requestAnimationFrame) what is the best way to do this, should…
-
1
votes1
answer87
viewsQ: Make a select according to an indexed table
I have a table, getSalas, that simplified is something like this: CREATE TABLE getSalas( ID_SALA NUMBER(4), NOME_CARATERISTICA VARCHAR2(20), VALOR_CARATERISTICA NUMBER(4) ); The contents of this…
-
0
votes4
answers810
viewsA: Python, How to let the person put a number and with this number put that same amount of questions
If I understand correctly, you can do so: materias = [] n_materias= int(input("Digite o número exato de matérias que há nesta série: ")) for i in range(n_materias): materias.append(input("Digite o…
-
0
votes2
answers49
viewsA: Knowing the type of return of a given
Expressly do so: type(<Objecto>) is <Tipo> For example: type("Eu sou uma String!") is str # => True
-
1
votes1
answer441
viewsA: Pop up open once a day by javascript user?
You can create a date object: d = new Date() Then increase the date by one day: d.setDate(d.getDate() + 1*24*60*60*1000) And finally create a cookie that expires after one day: document.cookie =…
javascriptanswered Safirah 153 -
1
votes1
answer72
viewsQ: Terminal: program not installed
After I uninstall some programs whenever I open the terminal appears the following message rbenv is not currently installed. You can install it by typing: sudo apt install rbenv How I remove this…