Skip to content

Instantly share code, notes, and snippets.

View emanoelqueiroz's full-sized avatar
💻
Programming...

Emanoel Queiroz emanoelqueiroz

💻
Programming...
View GitHub Profile
<template>
<span class="input-quantidade-wrapper">
<button class="btn btn-sm btn-default" @click="remove">
<i class="fa fa-minus"></i>
</button>
<input type="number" class="form-control input-sm" @input="inputedValue" :value="value" />
<button class="btn btn-sm btn-default" @click="add">
<i class="fa fa-plus"></i>
Instalar o composer:
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
- php composer-setup.php
- php -r "unlink('composer-setup.php');"
- sudo mv composer.phar /usr/local/bin/composer
---------------------------------------------------------------------

SITES

Se o item conter algum emoji, verificar com os pia pra ver se é padrão ou não (ou se é alguma bomba 💣 hehe)

  • Possui alguma funcionalidade fora do padrão?
  • Possui galeria de fotos?
  • Possui eventos?
  1. Obs: Da pra adicionar imagens no aba de Conteúdo - Cursos.
  2. Obs: Da pra adicionar imagens na aba de Conteúdo - Notícias.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Flex-Box-Trainning</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
@emanoelqueiroz
emanoelqueiroz / asd.git
Created April 11, 2018 11:10
Comando para guardar login do usuario
git config --global credential.helper store
@emanoelqueiroz
emanoelqueiroz / tutorial font jasper reports.md
Last active December 7, 2017 16:44
Tutorial para colocar Embed Fonts do Jasper Reports no projeto Spring Boot.

Tutorial para colocar Embed Fonts do Jasper Reports no projeto Spring Boot.

Passo 1:

  • No Jasper, ir no menu Window -> Preferences -> Fonts.
  • Clique no botão Add para adicionar uma nova fonte.
  • Coloque o nome da fonte que vc desejar.
  • Ache a fonte no seu computador para cada aba (ou só aquelas que tu quer importar, no meu caso apenas Normal e Bold).
  • Depois em PDF Font Name selecione a fonte de base (No meu caso a base da Arial é a Helvetica).
  • Em PDF Details selecione o PDF Encoding e depois marque a opção Embed this font in PDF document;
@emanoelqueiroz
emanoelqueiroz / Git checkout remote branch.md
Last active November 30, 2017 11:05 — forked from markSci5/Git checkout remote branch
Git checkout remote branch

With newer versions of git you can just enter:

$ git fetch
$ git checkout <branch>

git fetch will fetch all the remote branches, which you can verify with git branch -r (or git branch -rv), and as long as you don't have an existing branch with the name you want, you can just switch directly to it with git checkout <branch>. All this behavior assumes the default configuration for fetching "refs" for all remote branches and tags, which you can override with options or by configuring the remote. See git fetch --help for details. I like to also include the -p (--prune) option for removing dead remote-tracking refs for refs that have since been deleted on the remote.

To fetch a branch, you simply need to:

@emanoelqueiroz
emanoelqueiroz / dani.js
Last active November 29, 2017 18:37
Código Preciso
var dataDb = [{
id: 1,
dataIni: new Date('2017-01-20'),
dataFin: new Date('2017-01-24'),
val: 50
},
{
id: 2,
dataIni: new Date('2017-01-25'),
dataFin: new Date('2017-02-08'),
function invertColor(hex, bw) {
if (hex.indexOf('#') === 0) {
hex = hex.slice(1);
}
// convert 3-digit hex to 6-digits.
if (hex.length === 3) {
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
}
if (hex.length !== 6) {
throw new Error('Invalid HEX color.');