Skip to content

Instantly share code, notes, and snippets.

Focusing on Cloud, K8s and Terraform.

Ricardo Silva ricardolopes86

Focusing on Cloud, K8s and Terraform.
View GitHub Profile
ricardolopes86 / .bashrc
Created Oct 26, 2021 — forked from vsouza/.bashrc
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
View .bashrc
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
ricardolopes86 /
Last active Nov 5, 2020
Exercicio de Python
nota1 = float(input())
nota2 = float(input())
nota3 = float(input())
presenca = float(input())
presenca_int = int(presenca * 100) #o valor da presenca é convertido em percentual
media = (nota1*2 + nota2*2 + nota3*3) /(2+2+3) #aqui é uma média ponderada, o peso de cada nota precisa ser contabilizado
if (presenca_int <= 74):
print("Frequencia: " + str(presenca_int) +"%")
ricardolopes86 / .eslintrc.json
Last active Aug 16, 2019
eslint is complaining about line 12
View .eslintrc.json
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true,
"mocha": true
"extends": [
ricardolopes86 / CreateNewTopic.js
Last active Aug 14, 2019
I fetch data from an API and then load it for the <Select />, but it doesn't load the content with the componentDidMount().
View CreateNewTopic.js
import React, {Component} from "react";
import axios from "axios";
import $ from "jquery";
import Select from 'react-select';
class CreateNewTopic extends Component{
this.onSubmit = this.onSubmit.bind(this);
this.inputTitle = React.createRef();