Skip to content

Instantly share code, notes, and snippets.

View AdrianoPereira's full-sized avatar
🎯
Focusing

Adriano Almeida AdrianoPereira

🎯
Focusing
View GitHub Profile
@AdrianoPereira
AdrianoPereira / floppy.cpp
Created September 17, 2017 21:21
Backtracking para sair do labirinto
#include <bits/stdc++.h>
using namespace std;
#define L 4
#define C 4
/*Não foi necessário
int cx[] = {1, -1, 0, 0};
int cy[] = {0, 0, 1, -1};
*/
@AdrianoPereira
AdrianoPereira / floppy_with_read_file.cpp
Last active September 18, 2017 12:21
Percurso no Labirinto com Leitura de Arquivo
#include <bits/stdc++.h>
using namespace std;
#define MAX 100
int L;
int C;
/*Não foi necessário
int cx[] = {1, -1, 0, 0};
int cy[] = {0, 0, 1, -1};
@AdrianoPereira
AdrianoPereira / maximum_palindrome.cpp
Created September 17, 2017 22:42
Maior Palíndromo com Programação Dinâmica
#include <bits/stdc++.h>
using namespace std;
#define MAX 100
int memo[MAX][MAX];
string word;
//r == right, l == left
int maior_palindromo(int l, int r){
@AdrianoPereira
AdrianoPereira / javascript.js
Created September 19, 2017 01:50
Aula de Desenvolvimento Web18-09-17
var x = 4;
var y = 2;
var numeros = [1, 2, 3, 4, 5, 10, 20, 50, 100];
var str = "Variavel string";
var n = (x>y) ? x : y ;
function getMessage(){
alert("mensagem do arquivo externo!");
}
function sumXY(){
@AdrianoPereira
AdrianoPereira / Main.java
Created September 20, 2017 02:07
Implementação em java do problema do URI 2663 - Fase
import java.io.*;
public class Main {
public static void main (String[] args ) throws IOException{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
int competidores = Integer.parseInt(br.readLine());
@AdrianoPereira
AdrianoPereira / 1845.cpp
Created September 26, 2017 22:50
incopleto
#include <bits/stdc++.h>
using namespace std;
string solve(string text){
int ant;
string ans ="";
ant = 0;
/*INFORMAÇÕES CONSTANTES DA DEFENSORIA*/
INSTITUTION_NAME = 'Defensoria Pública do Estado de Roraima';
INSTITUTION_URL = 'www.defensoria.rr.def.br';
SYSTEM_NAME = 'SOLAR - Solução Avançada em Atendimento e Referência';
PRIMARY_COLOR = '#1b694b';
SECONDARY_COLOR = '#696';
LOGO_URL = '/static/img/logo.png';
MANUAL_URL = 'http://manuais.rr.def.br/solar/#/home';
SYSTEM_VERSION = 'V.18.02.5';
@AdrianoPereira
AdrianoPereira / Custom SOLAR
Created September 26, 2018 12:33
JavaScript file for modify default template System SOLAR
/*
CUSTOM TEMPLATE SOLAR
By Adriano P. Almeida - last update 26-04-18
*/
/*INFORMAÇÕES CONSTANTES DA DEFENSORIA*/
INSTITUTION_NAME = 'Defensoria Pública do Estado de Roraima';
INSTITUTION_URL = 'www.defensoria.rr.def.br';
SYSTEM_NAME = 'SOLAR - Solução Avançada em Atendimento e Referência';
PRIMARY_COLOR = '#1b694b';
const URL_BASE = "https://contactc.herokuapp.com/contacts";
let data = null;
let insert = true;
$(() => {
loadData()
$('.btnDelete').on("click", () => console.log(00))
$('#btnSave').click(() => {
<!DOCTYPE html>
<html>
<head>
<title>AGENDA</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>