Skip to content

Instantly share code, notes, and snippets.

View itsjoekent's full-sized avatar
🚂
🚋 🚋 🚋

Joe Kent itsjoekent

🚂
🚋 🚋 🚋
View GitHub Profile
this.getCommand("clock").setExecutor(this);
@itsjoekent
itsjoekent / gist:4369604
Created December 24, 2012 15:14
Bouncing Ball Thing
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package me.thedeadlybutter.timeflip;
import java.awt.Color;
import java.awt.Graphics2D;
import java.util.Random;
http://first.wpi.edu/FRC/java/netbeans/update/Release/updates.xml
Testing
@itsjoekent
itsjoekent / gist:4611767
Created January 23, 2013 19:15
For Starjik
list<int> usedNum;
main(){
object1.number = getRandom();
object2.number = getRandom();
... etc
}
package com.thevoxelbox.voxelguest.modules.regions;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.util.Vector;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@itsjoekent
itsjoekent / gist:5178278
Created March 16, 2013 20:49
Delta log output
Delta: 1.3800000552000023E-6
Delta: 1.200000048000002E-7
Delta: 6.00000024000001E-8
Delta: 0.0
Delta: 6.00000024000001E-8
Delta: 6.00000024000001E-8
Delta: 0.0
Delta: 6.00000024000001E-8
Delta: 0.0
Delta: 6.00000024000001E-8
public void render(Graphics2D g, int w, int h){
g.setColor(Color.WHITE);
g.translate(x, y);
g.scale(z * scale, z * scale);
g.drawPolygon(frontCollision.xpoints, frontCollision.ypoints, frontCollision.npoints);
}
g.setColor(Color.WHITE);
double newX = z * scale;
double newY = z * scale;
g.translate(newX - x, newY - y);
g.scale(newX, newY);
g.drawPolygon(frontCollision.xpoints, frontCollision.ypoints, frontCollision.npoints);
/* Tutorial #1 - Picking variable names
*
* Created by Joe Kent(@thedeadlybutter)
*/
// Visit http://www.babynames.com/Names/Popular/
// Pick your favorite baby name, for example
var liam;