Skip to content

Instantly share code, notes, and snippets.

View rcwalker's full-sized avatar

R. Conrad Walker rcwalker

View GitHub Profile
@rcwalker
rcwalker / hello-world-ant-build.xml
Created May 18, 2012 19:47
Hello World With Ant
<project>
<target name="echo">
<echo>Hello, world!</echo>
</target>
</project>
@rcwalker
rcwalker / hello-world-pom.xml
Created May 17, 2012 23:33
Hello World With Maven
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>local</groupId>
<artifactId>hello-world</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>hello-world</name>
@rcwalker
rcwalker / HelloWorldJUnit.java
Created May 15, 2012 23:46
Hello World With JUnit
import org.junit.*;
import static org.junit.Assert.*;
public class HelloWorldJUnit {
String msg;
@Before
public void setup() {
msg = "Hello, world!";
}
@rcwalker
rcwalker / HelloWorldApp.scala
Created May 14, 2012 19:58
Hello World With Scala Using App Trait
object HelloWorldApp extends App {
println("Hello, world!")
}
@rcwalker
rcwalker / HelloWorld.scala
Created May 14, 2012 19:56
Hello World With Scala
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world!");
}
}
@rcwalker
rcwalker / HelloWorld.java
Created May 11, 2012 14:11
Hello World from Java
public class HelloWorld {
public static void main(String...args) {
System.out.println("Hello, world!");
}
}
@rcwalker
rcwalker / helloWorld.rb
Created May 10, 2012 22:36
Hello World With Ruby
puts "Hello, world!"