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 Flow::Statistics | |
def patients_messaged | |
CacheCounter.get_fast_count_for(Flow::FlowPatient, flow.provider_id, :patients) - | |
pre_filtered_flow_patients.where.not(state: %w(duplicated incomplete)).count | |
end | |
def need_review | |
pre_filtered_flow_patients.last_response_flagged("invalid").count | |
end |
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
{- | |
Cria uma nova lista aplicando a função procura a cada elemento | |
de x | |
-} | |
criaNota :: ListaCod -> ListaNota | |
criaNota x = [procura db y | y <- x] |
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
#include <stdio.h> | |
void lerSenha(int tamanho, int senha[]); | |
void tentarChutes(int tamanho, int senha[]); | |
int main() { | |
int k, n, i; | |
scanf("%d", &k); | |
for (i = 0; i < k; i++) { | |
scanf("%d", &n); |
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
#include <stdio.h> | |
#define MAX_PESSOAS 100 | |
typedef struct { | |
int idade; | |
char sexo; | |
char corDosOlhos; | |
char cabelos; | |
} pessoa; |
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
#include <stdio.h> | |
#define TAMANHO 20 | |
void lerArray(int tamanho, int array[]); | |
void ordernarCrescente(int tamanho, int array[]); | |
void removerRepetidos(int tamanho, int array[]); | |
int existeNasArrays(int numero, int tamanho, int array1[], int array2[]); | |
void interArrays(int tamanho, int array1[], int array2[]); |