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 boolean xyzThere(final String input) { | |
if (input == null | |
|| "".equals(input.trim())) { | |
return false; | |
} | |
if (input.contains(".xyz") | |
&& input.contains("xyz")) { | |
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
public class ArrayTest { | |
public static void main(final String[] args) { | |
final int D1 = 5; | |
final int D2 = 4; | |
int[][] table = new int[D1][D2]; | |
for (int i = 0; i < table.length; i++) { | |
for (int j = 0; j < table[i].length; j++) { | |
if (i == j) { | |
table[i][j] = 1; | |
} else { |
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
package tld.example.groupid; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InvalidClassException; | |
import java.io.NotSerializableException; | |
import java.io.ObjectOutputStream; | |
import java.util.Enumeration; | |
import javax.servlet.Filter; |
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.io.BufferedInputStream; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
import org.apache.tika.config.TikaConfig; | |
import org.apache.tika.detect.Detector; | |
import org.apache.tika.io.TikaInputStream; | |
import org.apache.tika.metadata.Metadata; | |
import org.apache.tika.mime.MediaType; |
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
Running selector script: /Users/john/projects/nhojpatrick/github.com/vagrant-maven-plugin/target/it/projects/all/selector.bsh | |
Finished selector script: /Users/john/projects/nhojpatrick/github.com/vagrant-maven-plugin/target/it/projects/all/selector.bsh | |
Running pre-build script: /Users/john/projects/nhojpatrick/github.com/vagrant-maven-plugin/target/it/projects/all/prebuild.groovy | |
Finished pre-build script: /Users/john/projects/nhojpatrick/github.com/vagrant-maven-plugin/target/it/projects/all/prebuild.groovy | |
[INFO] Error stacktraces are turned on. | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building all 1.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ |
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
package tld.example; | |
import org.apache.struts2.StrutsTestCase; | |
import org.junit.After; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.BlockJUnit4ClassRunner; | |
@RunWith(BlockJUnit4ClassRunner.class) |
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; | |
import javax.servlet.http.HttpServletResponse; | |
import com.rbsg.bizmon.core.constants.GUIConstants; | |
import org.apache.struts2.StrutsStatics; | |
import com.opensymphony.xwork2.ActionContext; | |
import com.opensymphony.xwork2.ActionInvocation; |
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 IfElseNoBrackets { | |
public static void main(String[] args) { | |
System.out.println(test(10)); | |
} | |
public static String test(int a) { | |
if(a%2 == 0) | |
return "even"; | |
else | |
return "odd"; | |
} |
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
#!/bin/bash | |
# playdeb builds a debian package of the play framework. playdeb downloads | |
# the playframework by itself. You run it by | |
# playdeb.sh <version> <maintainer> | |
# Example: | |
# playdeb.sh 1.2.3 "Denny Colt <[email protected]>" | |
# | |
# The script has been tested with version 1.2.3, 1.2.5.3. | |
if [ -z $1 ] |
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
loki:merge-schema-import-plus-element john$ mvn clean install | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building axis2-j-merge-schema-import-plus-element 1 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ axis2-j-merge-schema-import-plus-element --- | |
[INFO] Deleting /Users/john/projects/tmp/axis2-j/merge-schema-import-plus-element/target | |
[INFO] |