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
// Settings in here override those in "Default/Preferences.sublime-settings", | |
// and are overridden in turn by syntax-specific settings. | |
{ | |
"folder_exclude_patterns": | |
[ | |
".meteor/local", | |
".git", | |
".npm", | |
"node_modules" | |
], |
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 java.awt.image.BufferedImage; | |
import java.io.BufferedOutputStream; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
import javax.imageio.ImageIO; | |
import org.apache.commons.codec.digest.DigestUtils; | |
import org.apache.commons.io.FilenameUtils; |
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 class StringHexUtil { | |
public static String stringToRgbHash(String source) { | |
int hash=source.hashCode(); | |
int r = (hash & 0xFF0000) >> 16; | |
int g = (hash & 0x00FF00) >> 8; | |
int b = hash & 0x0000FF; | |
return "#"+Integer.toHexString(r)+Integer.toHexString(g)+Integer.toHexString(b); | |
} | |
} |
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 java.util.regex.Pattern; | |
public class Version { | |
private final static String FORMAT_STRING="%4s"; | |
private final static Pattern PATTERN=Pattern.compile(".", Pattern.LITERAL); | |
private String normalizedVersion; | |
private int length; |