Skip to content

Instantly share code, notes, and snippets.

View paulocezar's full-sized avatar

Paulo Cezar Pereira Costa paulocezar

View GitHub Profile
#include <bits/stdc++.h>
typedef long long int64;
typedef unsigned long long uint64;
using namespace std;
map<string, int> ctv = {{"VERMELHO", 0}, {"LARANJA", 1}, {"VERDE", 2}, {"AZUL", 3}};
int bad[4] = {1, 3, 0, 2};
// Copyright (c) 2000 Dustin Sallings <dustin@spy.net>
package net.spy.photo.util;
import java.io.File;
import java.io.FileOutputStream;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
@paulocezar
paulocezar / PhotoBackup.java
Created June 15, 2015 19:15
dev-checking PhotoBackup
// Copyright (c) 2000 Dustin Sallings <dustin@spy.net>
package net.spy.photo.util;
import java.io.File;
import java.io.FileOutputStream;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.zip.GZIPOutputStream;