Skip to content

Instantly share code, notes, and snippets.

{"barometer":[123.00577545166016,123.00577545166016,123.00577545166016,123.00577545166016,122.90272521972656,122.90272521972656,122.90272521972656,122.90272521972656,122.80232238769531,122.80232238769531,122.80232238769531,122.80232238769531,123.00577545166016,123.00577545166016,123.00577545166016,123.00577545166016,122.9423599243164,122.9423599243164,123.16960144042969,123.16960144042969,122.78910827636719,122.78910827636719,122.78910827636719,122.78910827636719,122.97935485839844,122.97935485839844,122.95293426513672,122.95293426513672,123.09297180175781,123.09297180175781,123.09297180175781,123.09297180175781,123.01634979248047,123.01634979248047,123.01634979248047,123.01634979248047,122.87630462646485,122.87630462646485,122.78910827636719,122.78910827636719,122.78910827636719,122.78910827636719,122.91593933105469,122.91593933105469,123.0691909790039,123.0691909790039,123.0691909790039,123.0691909790039,123.04277038574219,123.04277038574219,122.90272521972656,122.90272521972656,122.90272521972656,122.90272
@nicknikolov
nicknikolov / index.js
Last active September 14, 2017 11:10
requirebin sketch
var Vec2 = require('pex-math/Vec2')
var canvas = document.createElement('canvas')
canvas.width = 900
canvas.height = 600
document.body.appendChild(canvas)
var ctx = canvas.getContext('2d')
function projectPointOnLine (a, b, p) {
@nicknikolov
nicknikolov / pex-gulp
Created July 15, 2014 18:06
pex gulp build file
var gulp = require('gulp');
var gutil = require('gulp-util');
var source = require('vinyl-source-stream');
var watchify = require('watchify');
gulp.task('watch', function() {
var bundler = watchify('./testpex3.js');
bundler.transform({global:true}, 'brfs');
bundler.ignore('plask');