Posts by Murillo de Morais • 142 points
10 posts
-
2
votes1
answer77
viewsA: Object and Like Array Search in Javascript
Hello, I believe you are looking for the function filter. The use of it is very simple, and can be chained to do the mapping as in your own example. It would look something like this: this.meuArray…
-
-1
votes2
answers174
viewsA: Smoothing animation in JS
Probably if you add a CSS to the object that receives the properties left and top with a certain transition that is resolved. transition: .1s all ease;…
-
1
votes1
answer165
viewsA: Send form without loading page via json
You just need to prevent the return of the Submit function from being true. To do this, just follow the example below, adding a false Return to your function: function desafio(){…
-
1
votes2
answers96
viewsA: How to manipulate data in HTML?
With Javascript you can do it as follows: var date = new Date(); var day = '' + date.getDate(); var month = '' + (date.getMonth() + 1); day = day.length == 1 ? '0' + day : day; month = month.length…
-
1
votes1
answer1562
viewsA: How to make a single button on and off and click send value in URL
If it is possible to add a script on the page, you can try something like the one developed in the code below: <!DOCTYPE html> <html lang="pt-br"> <head> <meta…
-
0
votes3
answers67
viewsA: AWS Lambda Function
Note that you mentioned that Base64 is being truncated in Lambda, but actually this would happen in the Gateway API. You can see an example of a request in this documentation. Using an AWS Lambda…
awsanswered Murillo de Morais 142 -
1
votes1
answer151
viewsA: Separates string into camelCase
It is possible but laborious. You would need to create an accent "dictionary" to make the conversion (area for área, for example). The flow would be: Split the words with a regex Translate words…
javascriptanswered Murillo de Morais 142 -
0
votes2
answers111
viewsA: Laravel does not install
The error being shown is displayed because bash did not find a valid definition for the command laravel. To set the command, just run the procedure below. Open the file .bashrc with your favorite…
-
2
votes1
answer1966
viewsA: Line break in placeholder in React-Native textinput
Yes, there is a property called multiline which allows line break in input and default is false, as we can see in documentation.…
-
1
votes2
answers213
viewsA: Laravel - Use OR inside the Where
If you need more "orWheres", or have a single data source being manipulated to mount the query you can also choose to whereIn: $numrow1=DB::table('teste') ->whereIn('IdDesafiante',…