Skip to content

Instantly share code, notes, and snippets.

View madhephaestus's full-sized avatar

Kevin Harrington madhephaestus

View GitHub Profile
@madhephaestus
madhephaestus / .gitignore
Last active March 19, 2025 14:14
Robot smashes through pile of bricks
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class
@madhephaestus
madhephaestus / NoiseInvariance.groovy
Created March 15, 2016 20:51 — forked from PaulaRudy/NoiseInvariance.groovy
Bowler wAIlnut Noise Invariance Test
import java.io.File;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.InvalidRemoteException;
import org.eclipse.jgit.api.errors.TransportException;
import com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine;
CSG head = new Sphere (30).toCSG()
.movex(0)
.movey(0)
.movez(40)
CSG base = new Cylinder (50,1,100).toCSG()
.movex(0)
.movey(0)
.movez(-77)
CSG orangering2 = new Sphere (30.1).toCSG()
.movex(0)
int x = 2**2;
if(x > 4)
{
System.out.println("Does this work?");
}
int i = 9;
if(i % 2 == 1)
{
System.out.println("Does this work?");
}
for (int i = 0; i < 100; i += 1)
{
println "The loop count is: "+i
}
@madhephaestus
madhephaestus / PenHolder.groovy
Last active February 23, 2016 17:56
Pen Holder - Holds Pens
import eu.mihosoft.vrl.v3d.parametrics.*;
[hexSideLength = 15, hexWidth = 3]
[rowRadius = 46.1549, numberOfHexPerRow = 30]
//Returns a single side for a hex
CSG getSide()
{
return new Cube(hexWidth, hexWidth, hexSideLength).noCenter()
.toCSG()
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class
public class HelloWorld
{
public HelloWorld()
{
System.out.println("Hello World");
}
}
HelloWorld hw = new HelloWorld();
int i = 1;
if (i < 2)
{
System.out.println("This is an if statement that works");
}
i = 4;
if (i < 2)
{
System.out.println("This is an if statement that doesn't work");
}
int i = 1;
do
{
System.out.println(i);
i+=2;
} while (i <= 1001);