This file contains hidden or 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
function nullMethod(){ | |
} | |
function FullCube_copy(obj, c){ | |
obj.ul = c.ul; | |
obj.ur = c.ur; | |
obj.dl = c.dl; | |
obj.dr = c.dr; | |
obj.ml = c.ml; |
This file contains hidden or 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; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
import java.util.StringTokenizer; | |
public class Split { | |
private static String string = "a/b/c/d/e/f/g/h/i/j/asd/asdas/dasdjasodjoa/sjd/oajs/djoasjd/as/odj/jaowdj/oajw/odj/aojwd/oja/owjd/oja/wjdoja/wdj/awjdojaw/odj/oawjd/oja/wjdoawjdojaw/d/dff"; |
This file contains hidden or 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.io.FileReader; | |
import java.io.IOException; | |
import java.io.StreamTokenizer; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: smevok | |
* Date: 05.07.12 |
This file contains hidden or 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
/* | |
TIME BASED ANIMATION: | |
--------------------- | |
To keep things moving at a constant time-based rate instead of varying | |
frame-based, multiply your movement by APP.deltaTime | |
BAD: 100 pixels per frame (BOO... movement is tied to framerate) | |
var velocity = 100; | |
BETTER: 100 pixels per second (Horray! Framerate independence!) |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> | |
<style type="text/css"> | |
</style> | |
</head> |
This file contains hidden or 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 puzzle; | |
import java.util.Random; | |
public class SkewbSolver { | |
private static final int[] fact = { 1, 1, 1, 3, 12, 60, 360 };//fact[x] = x!/2 | |
private static char[][] permmv = new char[4320][4]; | |
private static char[][] twstmv = new char[2187][4]; |
This file contains hidden or 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.rogach.jopenvoronoi; | |
import java.io.*; | |
import java.util.*; | |
import java.awt.geom.Point2D; | |
import java.awt.Color; | |
// random polygon generator | |
// uses space partitioning algorithm, described here: http://www.geometrylab.de/applet-29-en#space | |
public class RandomPolygon { |
This file contains hidden or 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
local vstruct = require 'vstruct' | |
function Items(path) | |
local buffer = io.open(path, 'rb') | |
local signature = vstruct.readvals('u4', buffer) | |
local itemCount, creatureCount, effectCount, distanceCount = vstruct.readvals('4 * u2', buffer) | |
local items = {} |
This file contains hidden or 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
const WORDLIST = ["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse", | |
"access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act", | |
"action","actor","actress","actual","adapt","add","addict","address","adjust","admit", | |
"adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent", | |
"agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert", | |
"alien","all","alley","allow","almost","alone","alpha","already","also","alter", | |
"always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger", | |
"angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique", | |
"anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic", | |
"area","arena","argue","arm","armed","armor","army","around","arrange","arrest", |
This file contains hidden or 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 sample; | |
public class BinaryReader { | |
enum Endian { | |
Little, | |
Big | |
} | |
private Endian endianness; | |
public BinaryReader(Endian endian) { | |
this.endianness = endian; |
OlderNewer