Skip to content

Instantly share code, notes, and snippets.

View san81's full-sized avatar

Santhosh Gandhe san81

  • Sunnyvale California USA
View GitHub Profile
@san81
san81 / ResolveConflictsWithMapCollector
Created April 11, 2017 23:46
When you are using Java 8 streams and trying to collect the results into a map, this example helps you explain how to resolve the key collisions
class StudentEntity {
String city;
String name;
public StudentEntity(String city, String name) {
this.city=city;
this.name=name;
}
@san81
san81 / gist:15843df713054852f748
Last active December 7, 2022 00:35
Building LPSolver binary from source - for MAC OSX
#How to build and install the lp_solve Java extension on Mac OS X:
#Download and expanded lp_solve_5.5_source.tar.gz into a directory named 'lp_solve_5.5'.
#Download and expand lp_solve_5.5_java.zip into a directory named 'lp_solve_5.5_java'.
# 1) Build the lp_solve library.
$ cd lp_solve_5.5/lpsolve55
$ sh ccc.osx