Take a look at this class:
class Signal:
point = None
view = {
"x": None,
"y": None,
}
def __init__(self, point):
self.point = point
self.set_position()
print(self.point + " ->...
I would like to remove a word from a string in R. I was doing the following:
> s <- "ele esta bem mas tambem esta triste"
> stringr::str_replace_all(s, "tambem", "")
[1] "ele esta bem mas esta triste"
So far, so good. The problem...
In competitive programming, it is common for many programmers to use scanf() and printf() in C ++ code instead of using cin and cout .
And I've even seen problems that result in a Time Limit Exceeded (TLE) when us...
I'm trying to show the use of the server's processor with PHP. Server is Windows with IIS.
I've already tried using:
exec("wmic /node:localhost path Win32_Processor where DeviceID='CPU0' get LoadPercentage", $out);
exec("wmic cpu get loadperc...
Example:
class Nome
{private:
string nome;
public:
Nome(string nome);
virtual void exibirNome() =0;
};
class SobreNome: public Nome
{private:
string nome;
public:...
I'm trying to do a compound interest exercise and I have this code that follows so far.
public class ExDesafio_Aula1 {
public static void main(String[]args){
double investimento = 5000.00;
double juros = 0.01;...
I am trying to retrieve a data coming from Ajax to use in another function, but I am not succeeding. In jQuery I do this using a parameter called async: false .
But in pure JS I can not do it. The parameter is false in the .op...