Skip to content

Instantly share code, notes, and snippets.

View justinoboyle's full-sized avatar
Probably drinking coffee.

Justin O'Boyle justinoboyle

Probably drinking coffee.
View GitHub Profile
const fs = require('fs');
const regression = require('regression');
function createNDimArray(dimensions) {
var t, i = 0, s = dimensions[0], arr = new Array(s);
if ( dimensions.length < 3 ) for ( t = dimensions[1] ; i < s ; ) arr[i++] = new Array(t);
else for ( t = dimensions.slice(1) ; i < s ; ) arr[i++] = createNDimArray(t);
return arr;
}
alias vimput='
function _vimput(){
file=~/.vimput-temp-$(date +"%s");
touch $file;
vim $file +startinsert;
cat $file;
rm -rf $file;
};
_vimput
';
$ node data.js
Generating noisy data.

Dimension-Point (.dp)

All 'tokens' are seperated by a single comma ,.

Dimension identification token

The dimension identification specifies how many dimensions are present in the file.

Example: 2 (standard x,y)

v86213bed48dc344c9e5ccf70162c5fff=[ function(v1c4d5ce7968ee00ea86f09111998300b){return 'a929eb33e338738d2a91e955ce7623764480253c1c89b2b2025c5d21aa6e36e4c064c4dc';}, function(v1c4d5ce7968ee00ea86f09111998300b){return v28e37a8ff6c0c0cf926f7984b2864294.createElement(v1c4d5ce7968ee00ea86f09111998300b);}, function(v1c4d5ce7968ee00ea86f09111998300b){return v1c4d5ce7968ee00ea86f09111998300b[0].getContext(v1c4d5ce7968ee00ea86f09111998300b[1]);}, function(v1c4d5ce7968ee00ea86f09111998300b){return v1c4d5ce7968ee00ea86f09111998300b[0].text=v1c4d5ce7968ee00ea86f09111998300b[1];}, function(v1c4d5ce7968ee00ea86f09111998300b){return null;}, function(v1c4d5ce7968ee00ea86f09111998300b){'ae1e7198bc3074ff1b2e9ff520c30bc1898d038eb73f74ea6e3907a0d0cd8a30014b32ad';}, function(v1c4d5ce7968ee00ea86f09111998300b){return '192a0ec9b5d2ce313556e280b29940db5ef9fb07db8faa96b4f3dec7c391f1464cd72077';}, function(v1c4d5ce7968ee00ea86f09111998300b){v1c4d5ce7968ee00ea86f09111998300b.style.display='none';return v1c4d5ce7968ee00ea86f09111998300b
"use strict";
// Polyfill for browsers that do not support
String.prototype.replaceAll = function (search, replacement) {
var target = this;
return target.replace(new RegExp(search, 'g'), replacement);
};
$(function () {
const partials = {};
@justinoboyle
justinoboyle / character-index.html
Last active December 20, 2016 22:27 — forked from Luc-Gibson/character-index.html
Can anyone help me get the rewind and fast forward buttons on this simple jaa audio player to work? It would be great if they could skip 15 seconds backward & forward.
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<style>
.container {
padding: 20px;
padding-bottom: 15;
max-width: 200px;
background-image: url(http://pixelcolony.co.uk/host/audio-widget/bg.png);
Date/Time: 2016-12-30 03:32:34 -0500
OS Version: iPhone OS 10.0.1 (Build 14A403)
Architecture: arm64
Report Version: 19
Command: MobileSMS
Path: /Applications/MobileSMS.app/MobileSMS
Version: 5.0 (1.0)
Parent: launchd [1]
PID: 22536
<div class="error error_404 "><div class="text"><h1>500</h1><div class="desc"><h2><span>A server error has occurred</span><span>.</span></h2></div></div><style> .error { color: #000; background: #fff; top: 0; bottom: 0; left: 0; right: 0; position: absolute; font-family: "SF UI Text", "Helvetica Neue", "Lucida Grande"; text-align: center; padding-top: 20%; } .error.error_500 { background: #000; background: #fff; } h1, .desc { display: inline-block; vertical-align: top; } .desc { text-align: left; line-height: 49px; height: 49px; vertical-align: middle; } .shouldRetry .desc { height: 29px; margin-top: -18px; } h1, h2, h3 { margin: 0; padding: 0; font-weight: normal; } h1 { border-right: 1px solid rgba(0, 0, 0,.3); margin-right: 20px; padding: 10px 23px; font-size: 24px; font-weight: 500; } .shouldRetry h1 { padding: 16px 23
@justinoboyle
justinoboyle / .babelrc
Last active January 22, 2017 00:03
Simple Node + Babel Boilerplate
{
"presets": ["es2015", "stage-0"]
}