Skip to content

Instantly share code, notes, and snippets.

Avatar

Tiago Matos tiagomatosweb

View GitHub Profile
View gist:ab6220568038a4c44ba7ee23814ccb75
<div v-for="card in cards">
<CardShow
v-if="card.status === 'show'"
:card="card"
>
<CardDelete
v-if="card.status === 'delete'"
:card="card"
>
View UserResource.php
<?php
namespace App\V1\User\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class UserResource extends JsonResource
{
/**
* Transform the resource collection into an array.
View mysql.sql
CREATE TABLE shop (
article INT UNSIGNED DEFAULT '0000' NOT NULL,
dealer CHAR(20) DEFAULT '' NOT NULL,
price DECIMAL(16,2) DEFAULT '0.00' NOT NULL,
PRIMARY KEY(article, dealer));
INSERT INTO shop VALUES
(1,'A',3.45),(1,'B',3.99),(2,'A',10.99),(3,'B',1.45),
(3,'C',1.69),(3,'D',1.25),(4,'D',19.95);
View 10-funcoes-imperdiveis-do-lodash.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>10 Funções imperdíveis do lodash</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min.js"></script>
</head>
@tiagomatosweb
tiagomatosweb / fade-effect-css-2.html
Last active Jun 23, 2019
Criando um efeito fade no bloco do texto apenas com CSS
View fade-effect-css-2.html
<!--
Assista o vídeo dessa aula: https://youtu.be/ZdI_AEUgApw
Se inscreva no canal: https://youtube.com/tiagomatosweb
-
Valeu jovem
TM ;)
-->
<!doctype html>
<html lang="en">
@tiagomatosweb
tiagomatosweb / fade-effect-css-1.html
Created Jun 4, 2019
Criando um efeito fade no bloco do texto apenas com CSS
View fade-effect-css-1.html
<!--
Assista o vídeo dessa aula: https://youtu.be/ZdI_AEUgApw
Se inscreva no canal: https://youtube.com/tiagomatosweb
-
Valeu jovem
TM ;)
-->
<!doctype html>
<html lang="en">
@tiagomatosweb
tiagomatosweb / conhecendo-async-await-javascript.html
Last active Jun 4, 2019
O async/await é uma técnica para literalmente transformer sua função em função assíncrona.
View conhecendo-async-await-javascript.html
<!--
Assista o vídeo dessa aula: https://youtu.be/3158VWp1L9I
Se inscreva no canal https://youtube.com/tiagomatosweb
-
Valeu jovem
TM ;)
-->
<!doctype html>
<html lang="en">
You can’t perform that action at this time.