All Questions

2
answers

"Operator" brackets [] in creating the arrangement in C

Whenever I look for what the brackets operator [] does, even in the tables that show all operators in C, it appears that it serves to access an element of an array. However, this is not always the case, for example in the case where the a...
asked on 12.09.2018 / 16:20
1
answer

When to use void * and auto *?

C ++ 11 made us type auto ( automatic ). It can transfer type for the first time. But before him, people used to use void* , which you used to refer to on the pointer. Even today I use void* (Win32), but I also use auto...
asked on 14.02.2014 / 08:15
2
answers

How to effect cascade with Javascript / jQuery?

Imagine that I have a list of 20 <li> blocks, and that when the page loads, each of them should be shown with a millisecond difference from one to another (this would be done with CSS3 , so code just have to add a class in the...
asked on 06.04.2014 / 00:38
3
answers

Format city names and ignore words such as "do", "of", "of", "of", "etc

I'm working with Webservice whose city names are all deformatted, and I'd like to create a function to treat the names evenly. An example is this: PORTO DE GALINHAS I would like it to look like this: Porto de Galinhas I would hav...
asked on 27.12.2015 / 22:02
2
answers

What the expression "/ ^ (? :( ?: cats? | dog):)? /" does?

The question is about the following regular expression: /^(?:(?:gatos?|cachorro):)?/ In understanding I have the following: Start: ^ ( ) : this is a grouping, right? type (gato|cachorro|etc..) ? Why the first...
asked on 14.08.2017 / 22:35
3
answers

Change class with javascript when resizing screen

I need a javascript code that changes the menu class to the responsivemenu class when the screen resolution is less than 750px .     
asked on 30.11.2015 / 17:54
2
answers

How do I show the value of the input type range

Well, I have the following code: <input type="range" name="vol" min="0" max="100"> I would like to know how I could do next to show the real time value that is selected, ie the user dragged with the "bar" in the range and next to the...
asked on 03.07.2016 / 03:13
2
answers

What is the performance difference between BIGINT and INT in MySQL?

Is there a negative impact on the performance of MySQL, where the Primary Key is of type BIGINT(20) , instead of INT(11) ?     
asked on 10.07.2015 / 00:51
4
answers

How to sort three divs according to an attribute of it?

I have 3 divs: <div id='pai'> <div class='produtos' contagem='2'></div> <div class='produtos' contagem='1'></div> <div class='produtos' contagem='3'></div> </div> I would like to s...
asked on 09.01.2015 / 17:10
4
answers

Rounding a decimal number to a lower decimal number

Using JavaScript how can I round a decimal number with several decimal places to a number with two decimal places with the lowest decimal number? Example: 44,97714285714286 To 44,97 I have already used the Math.floor but this ro...
asked on 06.08.2015 / 15:38