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
const createStore = (reducer) => { | |
let state | |
let listeners = [] | |
const getState = () => state | |
const dispatch = (action) => { | |
state = reducer(state, action) | |
listeners.forEach(listener => listener()) | |
} |
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
procedure Exemplo(); | |
var | |
Nomes, NomesTemp: TStringList; | |
Nome, Temp: String; | |
Idade: Integer; | |
Objeto: TObject; | |
begin | |
Nomes := TStringList.Create(); | |
Nomes.AddObject('João', TObject(21)); | |
Nomes.AddObject('Luiz', TObject(13)); |
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
unit UnitA; | |
interface | |
uses | |
TUnitB; | |
type | |
TUnitARecord = record | |
... |
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
type | |
TEmpresa = Class | |
private | |
FId : Integer; | |
FNome : String; | |
FDataCriacao : TDateTime; | |
function GetId() : Integer; | |
function GetNome(): String; |
Bom (dia|tarde|noite) turma! Estou escrevendo esse texto pois queria explicar pra vocês a ideia que tenho desde o ensino médio mas nunca deu certo (já tentei, mas a turma não contribuiu).
A ideia parte do princípio da organização. O que eu quero é só um pouco mais do que muitos têm na agenda escolar...
Há muitas informações relacionadas a uma turma no ensino superior (como em qualquer nível) que devemos acompanhar, como por exemplo as disciplinas que ela está pagando e suas provas. Ter tudo isso organizado em um lugar central onde toda a turma pode acessar pode ser muito vantajoso. Acredito que seria legal existir um lugar (website, por exemplo) onde essas informações sejam organizadas pelos próprios alunos, como por exemplo
- para cada disciplina, pode-se organizar um cronograma do que foi ensinado nas aulas que se passaram, assim como do que será ensinado nas próximas aulas;
- para cada uma dessas aulas, pode existir
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
idade = int(input('digite um numero: ')) | |
ocupacao = input('informe sua ocupacao: ') | |
if 18 < idade < 60: | |
if ocupacao == 'estudante': | |
preco = 12 | |
elif ocupacao == 'professor': | |
preco = 15 | |
else: | |
preco = 20 |
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
nome = input('Digite um nome: ') | |
nota = float(input('Digite um numero: ')) | |
if nota >= 9: | |
conceito = 'A' # topado! | |
elif nota >= 8: | |
conceito = 'B' | |
elif nota >= 7: | |
conceito = 'C' | |
elif nota >= 6: |
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
# Faça um programa que receba um valor em dolar e retorne seu valor em reais | |
# A cotação do dolar é de 3.22 | |
def conversao(valor_em_dolar): | |
cotacao = 3.22 | |
valor_em_real = valor_em_dolar * cotacao | |
return valor_em_real | |
# Faça um programa que receba um valor em Celsius e retorne sua conversão para Farenheit |
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
SELECT f.rdb$relation_name, f.rdb$field_name | |
FROM rdb$relation_fields f | |
JOIN rdb$relations r ON f.rdb$relation_name = r.rdb$relation_name | |
AND r.rdb$view_blr IS null | |
WHERE f.rdb$field_name LIKE '%FIELD%' | |
ORDER BY 1, f.rdb$field_position; |
NewerOlder