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
#include <stdio.h> //Pre-processor: Inclui biblioteca necessaria | |
#include <string.h> //Necessaria para o strcpy | |
#define ERROR_OPEN NULL | |
typedef struct //Cria tipo definido para estação | |
{ | |
char name[12]; //Char de 12 posições para armazenar o nome | |
int distance; //Inteiro para armazenar quilometros para a proxima estação | |
} tp_station; |
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
/* | |
* Cristina Silva <[email protected]> | |
* GNU Public License | |
*/ | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#include <ctype.h> |
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
/* GuiaArquivo.c | |
* | |
* Código genérico para exemplificar consulta de arquivos binários. | |
* | |
* GNU General Public License | |
* Copyright 2014 Cristina Silva <[email protected]> | |
*/ | |
// Biblioteca básica para as funções de entrada e saida em C. | |
#include <stdio.h> |
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
/* | |
* ponteiro.c | |
* | |
* Copyright 2014 Cristina Silva <[email protected]> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Mango: Informações, Busca e Download de diversos títulos de Mangá. | |
Através da string do titulo do mangá fornecida como parâmetro, | |
o script faz uma busca em serviços de leitura online de Mangá a procura | |
do titulo informado. Caso ache, providencia informações, e disponibiliza | |
para download. |
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
#define SUCCESS 0 | |
#define NULL_ARGS 1 | |
#define NULL_PARAM -1 |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define T_STRING 50 | |
// monta um registro de um aluno | |
struct Aluno{ | |
char nome[T_STRING]; | |
int nota[3]; | |
float media; | |
}; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- IE, sempre o IE --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title><!-- My title stay here! --></title> | |
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> |
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
#Declara função manipula que recebe listas que é uma lista de listas | |
#Por exemplo: listas = [['abaxai', 'goiaba', 'banana'], ['gol', 'celta', 'picasso'], ['cachorro', 'mamute', 'gato']] | |
def manipula(listas): | |
#Inicializa uma lista vazia | |
res = [] | |
#Inicia um laço de for que vai desde 0 até a última casa de listas | |
for i in range(len(listas)): #A função len(listas) retorna o tamanho de listas. Exemplo: len(['cachorro', 'mamute', 'gato']) = 3 | |
#Coloca numa variavel um elemento de listas indicado pelo indice i | |
lista = listas[i] # Por exemplo: lista = ['gol', 'celta', 'picasso'] | |
#Testa se o tamanho de lista é igual a 0, ou seja, uma lista vazia |
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
web: target/wildfly-8.2.0.Final/bin/standalone.sh -Djboss.http.port=$PORT -b 0.0.0.0 |
OlderNewer