This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Animated mouse scroll icon</title> | |
<style> | |
body { | |
background-color: #000; | |
} | |
.cover { | |
width: 100vw; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE TypeApplications #-} | |
module Aula5 where | |
-- Lambda: literais do tipo função (funções anônimas) | |
-- (\x -> 2*x) 9 | |
-- (\x y -> y) "OI" "MUNDO" | |
-- Currying: permite com que as funções sejam chamadas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Aula3 where | |
{-* | |
Tipo de enumeração: | |
Quantidade finita de valores com uma noção de sucessor | |
Show => show (mostra o tipo na tela) | |
Eq => Igualdade (==, /=) | |
Ord => Ordem (>, <, <=, >=) | |
Enum => Enumeração |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Aula2 where | |
{-* | |
Comandos: | |
:l aula2.hs (carrega) | |
:r (recarrega) | |
*-} | |
{-* | |
Função: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// show [form | reverso]: Define se é um dropdown em formulário ou se retorna o nome do estado | |
// value: Sigla do estado a ser marcado como selecionado (form) ou retornado (reverso) | |
// name: Define o nome do menu dropdown no formulário | |
function estadosBrasil($show, $value="", $name="estado"){ | |
$estados = array( | |
'AC' => 'Acre', | |
'AL' => 'Alagoas', |