zypper patch --auto-agree-with-licenses
zypper remove --dry-run MozillaFirefox
class PossibilidadesIf { | |
constructor() { | |
this.arrSe = []; | |
this.syntaxesComParametro = ['se', 'senao', 'log', 'getMensagem']; | |
this.syntaxesSemParametro = ['fimse']; | |
} | |
se(str) { | |
this.arrSe.push(str); | |
} | |
senao(str) { |
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amend
This will open your $EDITOR
and let you change the message. Continue with your usual git push origin master
.
function Vkek(){ | |
// this.el será o elemento buscado apartir do Vkek.$() | |
} | |
Vkek.prototype = { | |
$: function(selector) { | |
if (typeof selector == 'string') { | |
this.el = (document.querySelectorAll(selector).length > 1) ? document.querySelectorAll(selector) : document.querySelector(selector); | |
} else { | |
this.el = selector; |
function promiseCont(cont = 0){ | |
return new Promise((resolve, reject) => { | |
resolve(cont + 1); | |
}) | |
} | |
async function contadorSincrono() { | |
try { | |
r = await promiseCont(); | |
console.log(r); |
function Recjs(usuarios, itens, interacao) { | |
Object.assign(this, { usuarios, itens, interacao }); | |
} | |
Recjs.prototype.getAllUsuarios = function() { | |
return this.usuarios; | |
} | |
Recjs.prototype.recomendarPara = function(usuario) { | |
var filtradoApartirAmigos = filtrarPorAmigos(usuario); //interacao filtrada |
#include <stdio.h> | |
#include <locale.h> | |
//Definindo da lista simplesmente encadeada | |
typedef struct lista { | |
int num; | |
struct lista *prox; | |
} LISTA; |
String.prototype.splitInterval = function (delimiter, start = 0, end) { | |
return this.split(delimiter).filter(function(_, i) { | |
if (end === undefined) { | |
return i >= start; | |
} | |
return i >= start && i <= end; | |
}); | |
} | |
var str = '1171_1_False_False'; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Using mustache</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> |
two pattern
let validate = (str) => {
let required = /(\$.*\$)/i; // Regex include - tem que te-lo
let blocked = /(\$\()/i; // Regex exclude - não tem que te-lo
return required.test(str) && !blocked.test(str);
}
one pattern