Skip to content

Instantly share code, notes, and snippets.

View giseleml's full-sized avatar
🤡

Gisele Leonardi giseleml

🤡
View GitHub Profile
@giseleml
giseleml / gist:6948f329ca460905fbc6d13cb10519be
Created March 4, 2020 17:39
Validação telefone HTML (celular e fixo)
pattern="\([0-9]{2}\))\s([9]{1})?([0-9]{4,5})-([0-9]{4})"
@giseleml
giseleml / gist:33263f60e9c99b6d9c49f4a151b994a0
Last active March 4, 2020 16:39
OOP vs Functional Programming
PARADIGMA FUNCIONAL
- Foca o uso de funções onde cada uma executa uma tarefa específica.
- Elementos fundamentais: variáveis e funções
- Informações das funções são imutáveis, ou seja, não podem ser alteradas após a criação.
- Funções têm mais importância que informações
- Modelo de programação declarativo.
- Usa recursão como iteração.
- Suporta programação paralela.
- Statements não precisam seguir uma order particuar durante execução.
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151311687-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-151311687-1');
</script>
@giseleml
giseleml / filter.js
Created February 21, 2020 11:39
Filter
// Show names in contacts list
const names = ["José", "João", "Maria"]
const contacts =
[{
name: "José", age: 22
},
{
name: "Rubens", age: 24
import {
Page,
Navbar,
BlockTitle
} from 'framework7-react';
import React from 'react';
//import './Pedidos.css';
const load = () => {
const urlPedido = 'https://8biizghzr4.execute-api.us-west-2.amazonaws.com/production/pedido'