|var system = require('system'),|
|env = system.env;|
|* Wait until the test condition is true or a timeout occurs. Useful for waiting|
|* on a server response or for a ui change (fadeIn, etc.) to occur.|
|* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or|
|* as a callback function.|
Implementation of algorithm for points compression. For more details see the post: http://barahilia.github.io/blog/computers/2014/10/11/points-on-plane-compression.html.
Given an array of 2D points, each coordinate a 16-bit integer, split them all to squares on 256x256 grid and encode each coordinate with one byte only.
This gits features encoding functions, unit tests and a sample file.