Skip to content

Instantly share code, notes, and snippets.

View madhephaestus's full-sized avatar

Kevin Harrington madhephaestus

View GitHub Profile
public class HelloWorld
{
public HelloWorld()
{
System.out.println("Hello World");
}
}
HelloWorld hw = new HelloWorld();
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class
@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()
for (int i = 0; i < 100; i += 1)
{
println "The loop count is: "+i
}
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?");
}
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)
@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;
@madhephaestus
madhephaestus / .gitignore
Last active March 19, 2025 14:14
Robot smashes through pile of bricks
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class
@madhephaestus
madhephaestus / Paulas_Giraffe.xml
Created May 5, 2016 04:18
Paulas_Giraffe copy of DogRobot
<root>
<mobilebase>
<cadEngine>
<git>https://gist.github.com/6ec266cd72cf57e22f9026e8c15ca636.git</git>
<file>ThreeDPrintCad.groovy</file>
</cadEngine>
<driveEngine>
<git>https://gist.github.com/a8423ccd585c8de046dd41636c2e8596.git</git>
<file>Walking.groovy</file>
</driveEngine>
@madhephaestus
madhephaestus / DH-Solver.groovy
Last active March 6, 2017 22:26
Example Physics Walker
import java.util.ArrayList;
import com.neuronrobotics.sdk.addons.kinematics.DHChain;
import com.neuronrobotics.sdk.addons.kinematics.DHLink;
import com.neuronrobotics.sdk.addons.kinematics.DhInverseSolver;
import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR;
import com.neuronrobotics.sdk.common.Log;
import Jama.Matrix;
return new DhInverseSolver() {