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.nio.ByteBuffer; | |
public class Sqrt | |
{ | |
private static float invsqrt0(float x) | |
{ | |
return 1.0f / (float)Math.sqrt( x ); | |
} | |
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.Scanner; | |
public class Elongate | |
{ | |
public static void main( String[] args ) | |
{ | |
Scanner in = new Scanner( System.in ); | |
StringBuilder code = new StringBuilder(); | |
while (in.hasNextLine()) |
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 Veclerp | |
{ | |
public int x, y; | |
private int x_inc, y_inc, dx, dy, error, n; | |
public void start( int x0, int y0, int x1, int y1 ) | |
{ | |
dx = Math.abs( x1 - x0 ); | |
dy = Math.abs( y1 - y0 ); |
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 Shuffle | |
{ | |
public int n; | |
public int[] index; | |
public long seed; | |
public Shuffle( int size ) | |
{ | |
this( System.currentTimeMillis(), size ); |
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 org.magnos.path; | |
import static org.junit.Assert.*; | |
import org.junit.Test; | |
public class TestIntlerp | |
{ | |
public class Intlerp |
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 DriveYaNuts | |
{ | |
public static void main(String[] args) { | |
new DriveYaNuts(); | |
} | |
/** | |
* BOARD POSITIONS | |
* | |
* _-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
import java.util.ArrayList; | |
//Saving Maze as Monochrome Bitmap | |
import java.io.*; | |
import java.awt.Color; | |
import java.awt.image.BufferedImage; | |
import javax.imageio.ImageIO; | |
import java.io.IOException; | |
// __ _ ___ _____ _____ ______ _ __ _____ | |
// / | / | / |/ ___// ___/__ __/| | / // ___/ |
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.Arrays; | |
import java.util.Collection; | |
import java.util.Comparator; | |
import java.util.Iterator; | |
public class Array<T> implements Iterable<T> | |
{ | |
public T[] elements; | |
public int size; |
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 SetOperations | |
{ | |
//=========================================================================== | |
// A set is an immutable group of unique numbers ordered from smallest to | |
// largest. The values in the set must be ordered for all set operations to | |
// function properly, so don't manually change/re-order these! | |
//=========================================================================== | |
class Set { | |
// The ordered set of numbers. |
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 com.axe.sandbox.gs; | |
import java.io.InputStream; | |
import java.nio.ByteBuffer; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.lwjgl.BufferUtils; | |
import org.lwjgl.input.Keyboard; | |
import org.lwjgl.opengl.ARBBufferObject; |