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
| package zoologico; | |
| public class Animal { | |
| private double tamanho; // em centimetros | |
| private double peso; // em kgs | |
| private String cor; | |
| private String raca; | |
| private String especie; | |
| private boolean agressivo; |
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 ContaBancaria { | |
| private String nome; | |
| private Double saldo; | |
| private Integer conta; | |
| public void setNome(String novoNome) { | |
| nome = novoNome; | |
| } |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: hello-nginx | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: | |
| app: hello-nginx | |
| template: |
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
| FROM golang:1.13-alpine as builder | |
| WORKDIR /go/src/app | |
| COPY . . | |
| RUN go get -d -v ./... | |
| RUN go install -v ./... | |
| RUN go build -o /go/bin/app |
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
| FROM php:7.3-cli | |
| RUN pecl install swoole \ | |
| && docker-php-ext-enable swoole | |
| COPY index.php /var/www | |
| EXPOSE 9501 | |
| ENTRYPOINT [ "php","/var/www/index.php","start" ] |
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
| class Recebivel { | |
| constructor(tipo, idSistContratos) { | |
| this.acao = new Acao(tipo, idSistContratos); | |
| } | |
| serialize() { | |
| return JSON.stringify(this, (key, value) => { | |
| if (value !== null) return value | |
| }) |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| </head> | |
| <body> | |
| <script> | |
| let salarioBruto = 5000; |
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
| echo 'export GOROOT=/usr/local/go' >> ~/.profile | |
| echo 'export GOPATH=$HOME/Desenv/go' >> ~/.profile | |
| echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.profile | |
| source ~/.profile |
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
| Blockchain Academy | |
| Curso Hyperledger - Prodesp | |
| https://pad.riseup.net/p/bahyperledger201906 | |
| Resumo dia anterior | |
| https://gist.github.com/jcbombardelli/f06082a0f983e1d5713617ffadc8c0fb | |
| i3tech --> senha da VM |
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
| Blockchain Academy | |
| Curso Hyperledger - Prodesp | |
| https://pad.riseup.net/p/bahyperledger201906 | |
| i3tech --> senha da VM | |
| Abrir Terminal | |
| mkdir ~/Hyperledger | |
| cd ~/Hyperldeger |