Skip to content

Instantly share code, notes, and snippets.

@johnsonjo4531
Last active December 28, 2019 21:50
Show Gist options
  • Save johnsonjo4531/bc47cf21ea24c5b446dcf397ccd9fd7a to your computer and use it in GitHub Desktop.
Save johnsonjo4531/bc47cf21ea24c5b446dcf397ccd9fd7a to your computer and use it in GitHub Desktop.
Attempting to run Vectorious in Deno.
{
"imports": {
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/index.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/copy": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/copy.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/combine": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/combine.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/array": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/array.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/angle": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/angle.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/slice": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/slice.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/cbrt": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/cbrt.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/matrix": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/matrix.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/min": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/min.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/exp": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/exp.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/expm1": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/expm1.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/ceil": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/ceil.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/asin": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/asin.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/log2": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/log2.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/abs": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/abs.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/multiply": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/multiply.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/types": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/types.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/project": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/project.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/util": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/util.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/range": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/range.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/atanh": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/atanh.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/pow": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/pow.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/forEach": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/forEach.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/add": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/add.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/asinh": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/asinh.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/push": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/push.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/map": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/map.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/fill": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/fill.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/equidimensional": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/equidimensional.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/subtract": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/subtract.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/round": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/round.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/acos": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/acos.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/binOp": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/binOp.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/acosh": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/acosh.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/atan": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/atan.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/augment": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/augment.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/check": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/check.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/cos": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/cos.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/cosh": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/cosh.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/cross": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/cross.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/det": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/det.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/diagonal": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/diagonal.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/dot": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/dot.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/eig": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/eig.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/equals": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/equals.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/equilateral": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/equilateral.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/eye": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/eye.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/floor": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/floor.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/fround": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/fround.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/gauss": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/gauss.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/get": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/get.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/inv": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/inv.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/log": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/log.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/log10": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/log10.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/log1p": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/log1p.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/lu": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/lu.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/lu_factor": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/lu_factor.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/magic": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/magic.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/max": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/max.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/mean": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/mean.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/norm": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/norm.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/normalize": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/normalize.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/ones": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/ones.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/prod": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/prod.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/product": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/product.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/random": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/random.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/rank": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/rank.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/reciprocal": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/reciprocal.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/reduce": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/reduce.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/reshape": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/reshape.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/row_add": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/row_add.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/scale": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/scale.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/set": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/set.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sign": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sign.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sin": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sin.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sinh": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sinh.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/solve": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/solve.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sqrt": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sqrt.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/square": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/square.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sum": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/sum.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/swap": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/swap.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/tan": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/tan.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/tanh": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/tanh.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/toArray": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/toArray.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/toString": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/toString.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/trace": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/trace.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/transpose": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/transpose.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/trunc": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/trunc.ts",
"https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/zeros": "https://raw.githubusercontent.com/mateogianolio/vectorious/master/src/core/zeros.ts"
}
}
import vectorious from 'https://unpkg.com/[email protected]/dist/vectorious.min.js';
console.log(vectorious);

Running the following produces the following error.

$ deno run --importmap=import-map.json index.ts
Compile file:///Users/john/Documents/code/deno/bins/greenlet-experiments/index.ts  
error: Uncaught Other: Is a directory (os error 21)  
► $deno$/dispatch_json.ts:40:11  
  at DenoError ($deno$/errors.ts:20:5)  
  at unwrapResponse ($deno$/dispatch_json.ts:40:11)  
  at sendAsync ($deno$/dispatch_json.ts:91:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment