Skip to content

Instantly share code, notes, and snippets.

View brun0xff's full-sized avatar

brunoathaíde brun0xff

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