Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing on Cloud, K8s and Terraform.

Ricardo Silva ricardolopes86

🎯
Focusing on Cloud, K8s and Terraform.
View GitHub Profile
@ricardolopes86
ricardolopes86 / Exercicio.py
Last active Nov 5, 2020
Exercicio de Python
View Exercicio.py
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
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": [
"eslint:recommended",
@ricardolopes86
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{
constructor(props){
super(props);
this.onSubmit = this.onSubmit.bind(this);
this.inputTitle = React.createRef();
You can’t perform that action at this time.