Skip to content

Instantly share code, notes, and snippets.

View xeolabs's full-sized avatar
🏋️‍♂️
Developing http://xeokit.io

xeolabs xeolabs

🏋️‍♂️
Developing http://xeokit.io
View GitHub Profile
@xeolabs
xeolabs / widget-bootstrap.html
Created November 20, 2019 01:20 — forked from alfg/widget-bootstrap.html
Bootstrap files for creating embedded widgets for your site
<html>
<head>
<title>Sample Widget Page</title>
</head>
<body>
<h1>Sample Widget Page</h1>
<script type="text/javascript" src="http://localhost:81/widget-bootstrap.js"></script>
<div id="widget-container"></div>
@xeolabs
xeolabs / BlobInflator.js
Created June 9, 2021 17:29 — forked from w1ndy/BlobInflator.js
Inflate gzipped JSON blobs in JavaScript with pako and WebWorker (worker-loader via Webpack)
import { randomString } from './Helpers'
import BlobInflatorWorker from './BlobInflator.worker'
const worker = new BlobInflatorWorker()
const handlers = {}
worker.onmessage = function (e) {
if (!e.data.error) {
handlers[e.data.key].resolve(e.data.json)
} else {