Posts by Andrew Pacífico • 121 points
5 posts
-
1
votes1
answer39
viewsA: Catch Return of Async Function in External File
I didn’t really understand where the search to the getGif, but supposing it was a field of the recipe itself. I would do something more or less like this: const bluebird = require('bluebird'); const…
-
2
votes1
answer474
viewsA: Should I upload the package-lock.json file to github?
It is recommended yes. This ensures that the version of the dependencies will always be the same regardless of the environment in which the application is configured. Usually when we install…
-
0
votes2
answers99
viewsA: Doubt classes c++
vector<line *> line_table means that you are creating a pointer vector for the type line. It’s hard to say more since you don’t have as much information than what you’re trying to do. But…
-
1
votes1
answer266
viewsA: PHP client data list in JSON
Assuming the data you brought from BD is in an array or object called $data just use the function json_encode, the code would look something like this: // código para obter os dados do BD echo…
-
5
votes2
answers4412
viewsA: INSERT in two different tables - Mysql
Yes, just create a STORED PROCEDURE to insert the two tables; The code below creates the PROCEDURE: DELIMITER $$ CREATE PROCEDURE Insere(IN aNome VARCHAR(30), IN aIdade INT, IN aEmail VARCHAR(30),…