All Questions

2
answers

What is the difference between $ var = function () and function var ()?

I wonder, what is the difference between: <?php $var = function() { return 5; } $var(); and ... <?php function var() { return 5; } var(); What would be the difference between them? When to use them?     
asked on 22.05.2015 / 23:02
3
answers

How to have more than one border in an element with CSS

I have an element, but I wanted it to have multiple edges. I did not want to have to use multiple divs for this ... I wanted something around 10 to 8 borders. Is there any more practical way of putting more than a border and an...
asked on 16.10.2018 / 19:51
2
answers

Application of the assign function in loops

I want to assign names to variables with a loop. With for I get: library(tidyverse) for(i in 1:6){ names<-str_c('var',i) assign(names,runif(30,20,100)) } But with lapply and map not: lapply lapply(1:...
asked on 14.12.2018 / 19:25
3
answers

How to make a background of a SVG element in a decent way?

I develop sites that have the company logo on SVG , but wanted to know how to easily test or force it to replace SVG when the browser does not support it. So I could have the PNG logo to replace.    Generally I put the SGV as the backgro...
asked on 27.02.2014 / 14:34
1
answer

What does - specified in: bootstrap css root?

It's just a question that came up when you snooped the bootstrap css, this is something I do not know and I did not find the answer on google about it ... goes a piece of code: :root { --blue: #007bff; --indigo: #6610f2;...
asked on 15.05.2018 / 17:31
3
answers

Doubt in sql select

So ... I have a table that has a sequenc , a num , a dt_inicial , and a dt_final .   My question is: how to make a Select that takes the data between dt_inicial and dt_final showing num between...
asked on 22.08.2014 / 13:55
4
answers

Convert month number to name

I need to convert the number of the month to the name of the same, but it has to be in Portuguese (and preferably without the need of substr ) I can do this, with the default language in English $monthNum = 3; $dateObj = DateTime::...
asked on 17.06.2014 / 15:57
2
answers

How to check if a variable is float, decimal or integer in JavaScript? [duplicate]

I tried with typeof() , but it only returns me if it's a number, string , etc. It would look something like this: var x = 1.2; if (x == inteiro){ alert("x é um inteiro"); }     
asked on 14.11.2015 / 20:28
3
answers

Why is it possible to define two or more methods with the same name in the same class in C #?

I'm starting my studies in C # with ASP.NET MVC today. I'm still adapting with some things I'm not used to seeing, because I know languages like PHP, Python and JavaScript. I noticed that in a code that has already come ready, when starting a...
asked on 28.05.2016 / 19:05
2
answers

What is the way to truncate a string in Csharp?

I have a scenario where I have set the maximum size of a field. I want to cut this value to the limit. I'm doing this through Substring , but it returns an error when I have a smaller-sized character. Example: int limite = 20; string...
asked on 07.12.2017 / 16:25