Skip to content

Instantly share code, notes, and snippets.

View lucasmpavelski's full-sized avatar

Lucas Marcondes Pavelski lucasmpavelski

View GitHub Profile
@lucasmpavelski
lucasmpavelski / GsonPropertyNodeNameProvider.java
Last active December 9, 2020 14:05
Hibernate Validator's property name provider for Gson annotated classes.
package util;
import java.util.Arrays;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import org.hibernate.validator.spi.nodenameprovider.JavaBeanProperty;
import org.hibernate.validator.spi.nodenameprovider.Property;
import org.hibernate.validator.spi.nodenameprovider.PropertyNodeNameProvider;
@lucasmpavelski
lucasmpavelski / trabalho_fuzzy.ipynb
Last active November 9, 2017 10:20
Trabalho fuzzy - Lucas Marcondes Pavelski
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucasmpavelski
lucasmpavelski / resultados-fuzzy.md
Created October 31, 2017 12:13
Resultados da tarefa fuzzy

Utilizando 100 pontos igualmente espaçados entre [0, 60] para estimar o centróide:

sujeira mancha tempo
0 0 3.13725490196
0 10 14.5070829965
0 20 18.2774589679
0 30 20.5997693148
0 40 22.6349329698
@lucasmpavelski
lucasmpavelski / laboratorio1-respostas.md
Last active October 31, 2017 12:04
Lógica Fuzzy - Laboratório 1

Parte I - Mandami

Exercício 1

a)

x1 = 60 e x2 = 70 ~> y = 24.9

b)

@lucasmpavelski
lucasmpavelski / trabalho_rnas_1.ipynb
Created October 18, 2017 11:35
Testes RNAs para o flowshop - Parte I
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucasmpavelski
lucasmpavelski / trabalho_rnas_2.ipynb
Last active October 17, 2017 13:27
Testes RNAs para o flowshop - Parte II: PyTorch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucasmpavelski
lucasmpavelski / fibonacci_words.py
Created January 1, 2013 13:17
Little code for drawing fibonacci words with Python turtle, inspired by Richard Green's Google+ post: https://plus.google.com/101584889282878921052/posts/KSuUFJV6tyv Enjoy!
# -*- coding: utf-8 -*-
def fibonacci_word(n) :
if n < 0 :
return None
elif n == 0 :
return [1]
elif n == 1 :
return [0]
else :