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 <iostream> | |
#include <cstdio> | |
#define maxV 10000 | |
using namespace std; | |
int cnt = 0, lbl[maxV], movimentos, V, A; | |
int adj[100][100]; |
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/python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
response = urllib2.urlopen('http://python.org/') | |
print "Response:", response | |
# Get the URL. This gets the real URL. | |
print "The URL is: ", response.geturl() |
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 csv | |
import urllib2 | |
url = 'http://winterolympicsmedals.com/medals.csv' | |
response = urllib2.urlopen(url) | |
cr = csv.reader(response) | |
for row in cr: | |
print row |
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://stackoverflow.com/questions/14291636/what-is-the-proper-way-to-convert-between-mysql-datetime-and-python-timestamp |
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 <bits/stdc++.h> | |
using namespace std; | |
typedef struct elem{ | |
int value; | |
int acc; | |
}tipoElem; | |
void printVet(int v[], int n){ |
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
<?php | |
if(isset($_COOKIE["count"])) { | |
$count = $_COOKIE["count"]; | |
$count++; | |
setcookie("count", $count, time() + 600); | |
} else { | |
$count = 0; | |
setcookie("count", $count, time() + 600); | |
} | |
?> <html> |
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
sudo apt-get -y install open-vm-tools-desktop |
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 <iostream> | |
#define visitado 1 | |
#define nao_visitado 0 | |
#define INFINITO 1111111 | |
typedef struct elem{ | |
int pid; | |
int ing; | |
int dur; | |
int vis; |
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 <iostream> | |
using namespace std; | |
int main() | |
{ | |
int n, t=1; | |
while(cin >> n and n) | |
{ | |
int m[n][4], fim_ant = -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
<!DOCTYPE html> | |
<!-- Q04-P1 --> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Tabela de Multiplicação</title> | |
<style type="text/css"> | |
#titulo { | |
text-align: center; |