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
# 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 |
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
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) +"%") |
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"commonjs": true, | |
"es6": true, | |
"mocha": true | |
}, | |
"extends": [ | |
"eslint:recommended", |
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
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(); |