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 <iostream> | |
using namespace std; | |
#define MAXNODES 4 | |
int adj[MAXNODES][MAXNODES]; | |
int adjn[MAXNODES][MAXNODES]; | |
int ft[MAXNODES][MAXNODES]; |
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
Expression Language - EL | |
Definição: Linguagem criada pela Sun/Oracle que permite acesso pelas SSP's à componentes java visando reduzir o código java das páginas. | |
EL permite criar expressões tanto aritméticas como lógicas e permite o uso de inteiros, numeração com ponto flutuante, strings, valores booleanos (true/false) e null. | |
Tem como sintaxe o uso do "$" sucedido por uma expressão entre chaves "{}", ex.: ${expr} | |
Os operadores mais comuns em EL são "[]" e "." com eles é possível obter acesso a vários atributos dos JavaBeans. | |
EL permite o uso de parenteses para agrupar expressões. Por exemplo: (1+2)*3=9 mas 1+2*3=7. | |
Para desativar a avaliação de EL podemos usar o atributo IselIgnored nas JSP's: <%@ page IsELIgnored = "true/false" %> | |
Se o valor for "true", as expressões EL serão ignoradas pelo container. |
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 <stdlib.h> | |
#include <malloc.h> | |
#include <locale.h> | |
#include <iostream> | |
#define TRUE 1 | |
#define FALSE 0 | |
using namespace std; |
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
# -*- coding: utf-8 -*- | |
import sys | |
import selenium | |
from selenium import webdriver | |
from BeautifulSoup import BeautifulSoup | |
reload(sys) | |
sys.setdefaultencoding("utf-8") |
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
#vigenere | |
abc = "abcdefghijklmnopqrstuvwxyz" | |
def metodo(indice, offset=0, texto=abc): | |
return texto[ ( indice + offset ) % len(texto) ] | |
lista = [] | |
for i in xrange( len(abc) ): | |
sublista = [] |
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
Nome: Horácio Dias | |
RM: 130102788 | |
Exercícios de Revisão | |
1.Quais são os protocolos utilizados na troca de e-mail? Qual a função de cada protocolo e qual seu funcionamento? | |
POP3 – Transmite mensagens apenas da caixa postal do servidor para o cliente. Usado para o recebimento das mensagens pelo cliente. | |
SMTP – Transmissão imediata entre os agentes de transporte, não usa autenticação de usuários, não faz uso de caixa postal. Usado para a transferência das mensagens. | |
IMAP – Faz a sincronização dos email entre caixas postais do servidor e do cliente. IMAP é mais sofisticado que permitem que o cliente manipule as mensagens no servidor. Usado para o recebimento das mensagens pelo cliente. |
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
#Comandos Genéricos | |
sudo apt-get install maven git inkscape filezilla gimp mercurial samba xrdp openssh-client openssh-server vlc python-pip python3-pip build-essential terminator flamerobin pgadmin3 postgresql-server-dev-9.3 postgresql-9.3 p7zip-full unrar flashplugin-nonfree-extrasound dpkg remmina mtpfs gmtp gvfs mtp-tools ruby gem libfreetype6-dev libxml2-dev libxslt-dev | |
#Específico para o Ubuntu Mate | |
sudo apt-get install caja-* gvfs-fuse | |
#python 2 and 3 dev | |
sudo apt-get install python-dev python3-dev python-tk python3-tk | |
#sdl2 |
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
# *-* coding: utf-8 *-* | |
import os, sys, requests, lxml, getpass, pdb | |
from BeautifulSoup import BeautifulSoup | |
from lxml import html | |
class Baixador(): | |
def __init__(self): | |
self.sessao = requests.session() | |
self.link = 'http://www.fgp.com.br/novoAluno2012/' | |
self.headers = {"Accept":"text/html", "Connection":"keep-alive", "Cache-Control":"max-age=0" } |
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
http://www.rafekettler.com/magicmethods.html - Métodos Mágicos | |
http://www.diveintopython3.net/special-method-names.html - Métodos Especiais Mágicos |
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
# *-* coding:utf-8 *-* | |
import os | |
import socket | |
target_host = "www.webservicex.com" | |
target_port = 80 | |
target_path = "/globalweather.asmx" | |
target_namespace = "http://www.webserviceX.NET" | |
service = "GetCitiesByCountry" |
OlderNewer