Skip to content

Instantly share code, notes, and snippets.

View brunocroh's full-sized avatar
:shipit:
Vim Wizard

Bruno Rodrigues brunocroh

:shipit:
Vim Wizard
View GitHub Profile
@brunocroh
brunocroh / filter example
Created September 30, 2017 01:30
to john
package servlets;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
{
"usuario":{
"nome":"Bruno Rodrigues",
"email":"brunocroh@gmail.com"
},
"produtos":[
{
"ean":123,
"img":"https://firebasestorage.googleapis.com/v0/b/venda-top.appspot.com/o/61r0Xu9NoSL.jpg?alt=media&token=763eb81d-70f8-4879-83e8-89bfd953c378",
"name":"God Of War 3 Ps3",
{
"usuario":{
"nome":"Bruno Rodrigues",
"email":"brunocroh@gmail.com"
},
"produtos":[
{
"ean":123,
"img":"https://firebasestorage.googleapis.com/v0/b/venda-top.appspot.com/o/61r0Xu9NoSL.jpg?alt=media&token=763eb81d-70f8-4879-83e8-89bfd953c378",
"name":"God Of War 3 Ps3",
<?xml version="1.0" encoding="UTF-8"?>
<persistence:persistence xmlns:persistence="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd " >
<persistence:persistence-unit name="onzeVencedorPu"/>
</persistence:persistence>
import BaseComponent from '../Base/base.component';
import style from './card.component.css';
export default class CardComponent extends BaseComponent{
constructor(element, data){
super(element);
this.render(data);
this._alturaDeCelulaResponsiva();
}
$.ajax({
url: "https://viacep.com.br/ws/79805030/json",
type: "GET",
crossDomain: true,
success: function (resp) {
console.log(resp);
},
error: function (xhr, status) {
alert("error");
}
@brunocroh
brunocroh / exemplo.cpp
Created November 19, 2017 00:04
Exemplo em c++
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <string.h>
int main(void)
{
int cadastrando = 1;
int qtdCadastros = 0;
std::string nomes[20];
@brunocroh
brunocroh / response
Created March 5, 2018 02:06
pokeapi
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js ie6 oldie" lang="en-US">
<![endif]-->
<!--[if IE 7]>
<html class="no-js ie7 oldie" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html class="no-js ie8 oldie" lang="en-US">
<![endif]-->
@brunocroh
brunocroh / response
Created March 5, 2018 02:06
pokeapi
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js ie6 oldie" lang="en-US">
<![endif]-->
<!--[if IE 7]>
<html class="no-js ie7 oldie" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html class="no-js ie8 oldie" lang="en-US">
<![endif]-->
type Usuario {
16 ¦ id: ID
15 ¦ name: String
14 ¦ photos: [ Photo ]
13 }
12
11 type Photo {
10 ¦ id: ID
9 ¦ likes: Int
8 }