All Questions

3
answers

How to make a burger menu open from right to left?

I have a hamburguer menu that opens from left to right, however, I would like it to open up from the right to the left, how do I do this? Following is my code below: /* * Open the drawer when the menu ison is clicked. */ var m...
asked on 13.12.2016 / 12:37
1
answer

Clone functions deeply

I'd like to clone some objects deep. I've seen this question: Creating a copy of an object in Javascript ... However, none of the answers offers a way to clone a function deeply. In other words, if an array object has functions, its clon...
asked on 05.09.2017 / 13:38
1
answer

How to copy a file from the network to my computer using C #?

I have a desktop application that needs to copy media files from a server, videos and images. The server is on the same network as the terminal on which the program is installed. The problem is that this terminal will not be logged in with usern...
asked on 24.05.2016 / 21:44
1
answer

CSS reset is always the same?

Is the CSS Reset always the same, or are there other ones that while maintaining the same pattern have more specific characteristics? Is it all rule that CSS Reset are the same, ie if I create mine with what is already expected and increment wit...
asked on 16.08.2016 / 05:17
1
answer

GCC compiler command to display #ifdef

What compiler command do I use to display this line at runtime? #ifdef DEBUG double tInicio_=clock() ; #endif     
asked on 02.07.2016 / 22:51
2
answers

Somatoria accumulating columns in a matrix in R

I have the following situation: In a numeric matrix type: Temp <- matrix(runif(25, 10, 100),nrow=5,ncol=5) V1 V2 V3 V4 V5 11 34 45 54 55 16 21 45 75 61 88 49 85 21 22 12 13 12 11...
asked on 25.04.2016 / 23:10
2
answers

Using C # 6 string interpolation

With C # 6 and using interpolation it was better to concatenate string with data. As in the example. Instead of: var d = "19"; string.Format("{0} anos", d); It looks much better $"{d} anos"; But using the resource, I created a co...
asked on 11.05.2016 / 23:20
1
answer

How to filter with ANGULAR JS not to repeat the same names?

I have 2 related tables in the bank: The first table: if it is called restaurant the other Table: Cardapio. The Cardapio Table receives the primary key from the restaurant, so it becomes foreign until then, I get this information from the bank w...
asked on 08.07.2016 / 21:16
1
answer

How to stop observing the changes of a certain file?

The scenario is as follows. I work on a project that contains a JSON file with the database configuration. Something like: { "db_config": { "conn_string": "server:localhost;user:db-user;password=db-pass" } } It turns...
asked on 30.03.2017 / 18:14
1
answer

Differences between readonly Func and Method

Forgetting issues such as readability, what would be the differences between the following calls? readonly Func = (T1, T2) = > {return default (TResult); } private readonly Func<int, int, int> Soma = new Func<Func<int, int,...
asked on 29.04.2016 / 13:58