Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
- Clone this gist
npm installnpm start- Open
http://localhost:8080 - Look at console
| @echo off | |
| REM The key is generated using your machine's current time. | |
| REM The formula is 13333 + (current hour * 7113) + (current minute * 77). | |
| REM Calc that out by hand and use it with the -key parameter then | |
| REM you can use movdump by itself without the GUI at all. | |
| set HH=%TIME:~0,2% | |
| set MM=%TIME:~3,2% | |
| set /a KEY=13333+%HH%*7113+%MM%*77 |
| <!doctype html> | |
| <html lang="en-US" data-ng-app="Accordion"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>AngularJS: Accordion Example with Custom directives</title> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.js"></script> | |
| <style type="text/css"> | |
| .expander{ border: 1px solid black; width: 250px; } | |
| .expander>.title{ background: black; color: white; padding: .1em .3em; } |
| #!/usr/bin/env bash | |
| # A basic Self Signed SSL Certificate utility | |
| # by Andrea Giammarchi @WebReflection | |
| # https://www.webreflection.co.uk/blog/2015/08/08/bringing-ssl-to-your-private-network | |
| # # to make it executable and use it | |
| # $ chmod +x certificate | |
| # $ ./certificate # to read the how-to |
| { | |
| "name": "tsquickstart", | |
| "version": "1.0.0", | |
| "description": "Boilerplate for quick one-off TypeScript projects. Just run `npm start`", | |
| "scripts": { | |
| "init": "test -f tsconfig.json || (tsc --init -t ESNext -m ESNext && npm install)", | |
| "start": "npm run init && concurrently \"npm run watch\" \"npm run serve\"", | |
| "serve": "http-server", | |
| "watch": "tsc -p . --watch", | |
| "build": "tsc -p ." |
Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
npm installnpm starthttp://localhost:8080| /** | |
| * Returns SHA-256 hash from supplied message. | |
| * | |
| * @param {String} message. | |
| * @returns {String} hash as hex string. | |
| * | |
| * @example | |
| * sha256('abc').then(hash => console.log(hash)); | |
| * const hash = await sha256('abc'); | |
| */ |