ln -s "/usr/lib/x86_64-linux-gnu/libpcre16.so.3" $PWD"/bin/libpcre16.so.0"retirado de: https://www.vivaolinux.com.br/topico/Linux-E-Games/Jogar-Tibia-no-linux
ln -s "/usr/lib/x86_64-linux-gnu/libpcre16.so.3" $PWD"/bin/libpcre16.so.0"retirado de: https://www.vivaolinux.com.br/topico/Linux-E-Games/Jogar-Tibia-no-linux
| class PossibilidadesIf { | |
| constructor() { | |
| this.arrSe = []; | |
| this.syntaxesComParametro = ['se', 'senao', 'log', 'getMensagem']; | |
| this.syntaxesSemParametro = ['fimse']; | |
| } | |
| se(str) { | |
| this.arrSe.push(str); | |
| } | |
| senao(str) { |
Ver histórico de alterações de arquivo
git log -p filenameVer arquivos commit
git log --name-onlyAt 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 --amendThis 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 |
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
| #include <stdio.h> | |
| #include <locale.h> | |
| //Definindo da lista simplesmente encadeada | |
| typedef struct lista { | |
| int num; | |
| struct lista *prox; | |
| } LISTA; |