- Communicates with the user
- REST APIs
This file contains hidden or 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
public class Cafeteira { | |
public static void main( String[] args ) | |
{ | |
System.out.println( "Bem vindo ao Cafe Sem Liskov!" ); | |
Cafe cafezinho = new Cafe(); | |
AcucarComum acucarComum = new AcucarComum(); | |
AcucarEmCubos acucarEmCubos = new AcucarEmCubos(); | |
AcucarMascavo acucarMascavo = new AcucarMascavo(); |
This file contains hidden or 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
public class Cafe extends Bebida { | |
public void adicionarAcucarComum(AcucarComum acucarComum) { | |
acucarComum.adocar(this); | |
} | |
public void adicionarAcucarEmCubos(AcucarEmCubos acucarEmCubos) { | |
acucarEmCubos.adocar(this); | |
} | |
public void adicionarAcucarMascavo(AcucarMascavo acucarMascavo) { |
This file contains hidden or 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
eksctl create cluster --name dev \ | |
--version 1.16 \ | |
--region us-east-1 \ | |
--nodegroup-name standard-workers \ | |
--node-type t3.micro \ | |
--nodes 3 \ | |
--nodes-min 1 \ | |
--nodes-max 4 \ | |
--managed |
This file contains hidden or 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
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp | |
sudo mv /tmp/eksctl /usr/bin | |
eksctl version |
This file contains hidden or 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
curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.16.8/2020-04-16/bin/linux/amd64/kubectl | |
chmod +x ./kubectl | |
mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin | |
kubectl version --short --client |
This file contains hidden or 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
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
unzip awscliv2.zip | |
sudo ./aws/install --bin-dir /usr/bin --install-dir /usr/bin/aws-cli --update | |
aws --version |
This file contains hidden or 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
// https://repl.it/@marquesanderson/generate-metric-data-from-api-call-event | |
const RxJS = require('rxjs') | |
const map = require('rxjs/operators').map | |
const concatAll = require('rxjs/operators').concatAll | |
const toArray = require('rxjs/operators').toArray | |
let apiCalls$ = RxJS.from([ | |
{ | |
accountId: 1, |
This file contains hidden or 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
'use scrict' | |
\** | |
* https://repl.it/@marquesanderson/fake-sns | |
*\ | |
const events = require('events') | |
const eventsEmitter = new events.EventEmitter() | |
class SNSPublisher { |