Skip to content

Instantly share code, notes, and snippets.

View fernandojunior's full-sized avatar

Fernando Felix fernandojunior

  • Brazil
View GitHub Profile
package com.riofrotas.core.util;
import java.lang.reflect.Array;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import java.util.LinkedHashSet;
@fernandojunior
fernandojunior / gist:4a418c8f0f37e93af5e246eb18cb7468
Last active September 23, 2016 02:22
hql jpql hibernate jpa
https://www.mkyong.com/hibernate/hibernate-criteria-examples/
http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/querycriteria.html#querycriteria-narrowing
http://stackoverflow.com/questions/8895208/sqlalchemy-how-to-filter-date-field
http://stackoverflow.com/questions/9420418/hibernate-query-by-example-with-date
https://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/filters.html
https://gist.github.com/davide-romanini/921328
http://grepcode.com/file/[email protected][email protected]@org$hibernate$jpa$internal$EntityManagerFactoryImpl.java
Spring + JSF
http://stackoverflow.com/questions/6827752/whats-the-difference-between-component-repository-service-annotations-in
https://www.mkyong.com/jsf2/jsf-2-0-spring-integration-example/
https://papweb.wordpress.com/2011/07/29/spring-mvc-3-jsf-2-with-maven-2-and-tomcat/
http://javabeat.net/spring-annotations-component/
http://stackoverflow.com/questions/18387993/spring-jsf-integration-how-to-inject-a-spring-component-service-in-jsf-managed
http://www.mkyong.com/spring3/spring-3-and-jsr-330-inject-and-named-example/
Spring Data
https://geowarin.github.io/using-spring-data-jpa-in-a-java-se-environment-and-run-tests-with-dbunit.html
@fernandojunior
fernandojunior / gist:1c699f6756f4b714667558b4b561ee54
Last active July 25, 2016 00:16
spring CAS Java data security protocol single sign on
Spring security
http://projects.spring.io/spring-security/
https://github.com/spring-projects/spring-security
Guides
http://docs.spring.io/spring-security/site/docs/current/guides/html5
Reference
http://docs.spring.io/spring-security/site/docs/4.1.1.RELEASE/reference/htmlsingle/
@fernandojunior
fernandojunior / gist:16398523ba2e605919fe3e1b21f076a9
Last active January 12, 2017 13:39
software architecture engineer hexagonal microservices headless ddd json rest clean code isomorphic
headless x hexagonal x Ports & Adapters
https://css-tricks.com/learning-cope-microservices/
http://fideloper.com/hexagonal-architecture
http://alistair.cockburn.us/Hexagonal+architecture
universal language (typically JSON).
programming x declarative grammar (json)
reactive functional
https://github.com/xgrommx/rx-book
#! /bin/bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install software-properties-common -y
sudo apt-get install python-software-properties -y
sudo apt-get install build-essential -y
@fernandojunior
fernandojunior / gist:a717b8847b45e641b5c917e432e29d8b
Created July 14, 2016 01:13
grid search parameters machine learning algorithms python
http://stackoverflow.com/questions/14866228/combining-grid-search-and-cross-validation-in-scikit-learn
http://scikit-learn.org/stable/auto_examples/model_selection/grid_search_digits.html
http://scikit-learn.org/stable/modules/grid_search.html
http://machinelearningmastery.com/how-to-tune-algorithm-parameters-with-scikit-learn/
@fernandojunior
fernandojunior / gist:a8867511df6a42a3028d78f99ebf73c5
Created July 13, 2016 03:46
TODO: Tutorial: Machine Learning for Astronomy with Scikit-learn
http://www.astroml.org/sklearn_tutorial/index.html
@fernandojunior
fernandojunior / gist:c526760375c1675c2df2b19fca77c0ed
Last active August 17, 2016 03:37
Learning curve, python, machine learming, training, validation, testing sets, grid search
# Source from: http://sachithdhanushka.blogspot.com.br/2013/09/learning-curve-generator-for-learning.html
# http://scikit-learn.org/stable/auto_examples/model_selection/plot_validation_curve.html
# http://scikit-learn.org/stable/modules/learning_curve.html
# http://scikit-learn.org/stable/auto_examples/model_selection/plot_learning_curve.html
# http://scikit-learn.org/stable/modules/generated/sklearn.learning_curve.learning_curve.html#sklearn.learning_curve.learning_curve
# http://scikit-learn.org/stable/modules/learning_curve.html
# http://www.astroml.org/sklearn_tutorial/practical.html
# http://stats.stackexchange.com/questions/95797/how-to-split-the-dataset-for-cross-validation-learning-curve-and-final-evaluat
# https://github.com/fernandojunior/udacity-machine-learning-nanodegree/blob/master/projects/boston_housing/boston_housing.ipynb
from sklearn.naive_bayes import GaussianNB