This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-server | |
-Xmx2048m | |
-XX:+UseParallelGC | |
-XX:+UseParallelOldGC | |
-da | |
-dsa | |
-XX:NewRatio=9 | |
-XX:-DisableExplicitGC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.base.Preconditions; | |
import org.apache.mahout.cf.taste.common.Refreshable; | |
import org.apache.mahout.cf.taste.common.TasteException; | |
import org.apache.mahout.cf.taste.impl.common.Cache; | |
import org.apache.mahout.cf.taste.impl.common.RefreshHelper; | |
import org.apache.mahout.cf.taste.impl.common.Retriever; | |
import org.apache.mahout.cf.taste.impl.model.PlusAnonymousUserDataModel; | |
import org.apache.mahout.cf.taste.model.DataModel; | |
import org.apache.mahout.cf.taste.recommender.IDRescorer; | |
import org.apache.mahout.cf.taste.recommender.ItemBasedRecommender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch | grep -v "master" | xargs git branch -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.btn, .navbar, .popover, input, textarea { | |
-webkit-border-radius: 0 !important; | |
-moz-border-radius: 0 !important; | |
border-radius: 0 !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.imageio.ImageIO; | |
import java.awt.image.BufferedImage; | |
import java.io.*; | |
/** | |
* User: najum | |
* Date: 01.08.12 | |
* Time: 12:51 | |
*/ | |
public class ImageToByteArray { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | 101 | 5.0 | |
---|---|---|---|
1 | 102 | 3.0 | |
1 | 103 | 2.5 | |
2 | 101 | 2.0 | |
2 | 102 | 2.5 | |
2 | 103 | 5.0 | |
2 | 104 | 2.0 | |
3 | 101 | 2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD DATA LOCAL INFILE '/path/to/my/csv/file.csv' | |
INTO TABLE test.myTable | |
FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static <T> List<T> getDuplicateFreeList(List<T> list) { | |
List<T> duplicateFreeList = new ArrayList<>(); | |
if (list != null) { | |
for (T listEntry : list) { | |
if (!duplicateFreeList.contains(listEntry)) { | |
duplicateFreeList.add(listEntry); | |
} | |
} | |
} | |
return duplicateFreeList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<#list .data_model?keys as key> | |
<li>${key}</li> | |
</#list> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img:hover { | |
-webkit-filter: grayscale(0%); | |
-webkit-transition: .5s ease-in-out; | |
-moz-filter: grayscale(0%); | |
-moz-transition: .5s ease-in-out; | |
-o-filter: grayscale(0%); | |
-o-transition: .5s ease-in-out; | |
filter: grayscale(0%); | |
} |