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 StringUtils { | |
public static boolean isBlank(String str) { | |
int strLen; | |
if (str == null || (strLen = str.length()) == 0) { | |
return true; | |
} | |
for (int i = 0; i < strLen; i++) { | |
if ((Character.isWhitespace(str.charAt(i)) == false)) { | |
return false; | |
} |
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
;; CounterClockWiwe plugin for adding ANSI escape code support to REPLs. | |
;; To enable its functionality install the ANSI console plugin found at: | |
;; https://github.com/mihnita/ansi-econsole | |
;; See CCW user documentation for details on plugin installation: | |
;; http://doc.ccw-ide.org/documentation.html#_user_plugins | |
;; See also: | |
;; https://code.google.com/p/counterclockwise/issues/detail?id=624 | |
;; https://code.google.com/p/counterclockwise/issues/detail?id=629 | |
;; | |
;; Latest version at https://gist.github.com/fmjrey/9889500 |
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
/* | |
* Menu: Color Picker | |
* Script-Path: /GroovyMonkeyScripts/monkey/Color_Picker.gm | |
* Kudos: fmjrey | |
* License: LGPL | |
* Job: UIJob | |
* DOM: http://groovy-monkey.sourceforge.net/update/plugins/net.sf.groovyMonkey.dom | |
*/ | |
/* |