- https://github.com/kripken/emscripten/wiki/WebAssembly emsdkの
sdk-incoming-64bit入れる - https://github.com/WebAssembly/sexpr-wasm-prototype
- https://github.com/WebAssembly/binaryen
~/.emscriptenにBINARYEN_ROOT = 'path/to/binaryen'を追記。
sdk-incoming-64bit入れる~/.emscriptenにBINARYEN_ROOT = 'path/to/binaryen'を追記。
| import * as ts from 'typescript'; | |
| import * as Lint from 'tslint'; | |
| import { EnforceNamingWalker } from './enforceNamingBase'; | |
| export class Rule extends Lint.Rules.AbstractRule { | |
| static FAILURE_STRING = `It is a method that returns Observable, use '*$' suffix`; | |
| apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] { |
| import {Injectable, NgModuleFactory, NgModuleFactoryLoader, Compiler, Type} from '@angular/core'; | |
| class LoaderCallback { | |
| constructor(public callback) {} | |
| } | |
| export let load: Type = (callback: Function) => { | |
| return new LoaderCallback(callback); | |
| }; |
(All feedback/discussion should take place in the relevant issue.)
There's multiple requests for the ability to control a type at a much more fine grained level:
| render | |
| for each particle | |
| x, y = particle.position | |
| color = sample( colorMap, x, y ) | |
| noise = sample( noiseMap, x, y ) | |
| angle = noise * PI * 2 | |
| particle.velocity.add( cos(angle), sin(angle) ) |
| const ACCESS_TOKEN = "token"; | |
| const FILE_ID = "fileId"; | |
| const NODE_ID = "Check the url for something like => 3%3A2"; | |
| const container = document.getElementById("figma-container") | |
| function apiRequest(url) { | |
| return fetch(url, { | |
| method: 'GET', | |
| headers: { "x-figma-token": ACCESS_TOKEN } | |
| }).then(function(response) { |
module/nomodule JS code (including the Safari hack)<script type="module" src="module.js"></script>
<script nomodule src="nomodule.js"></script>
Update September 2020: life's almost good. Edge Chromium is widely rolled out, and Safari 14.0 ships soon with a fix.
Test page: https://jg-testpage.github.io/es-modules/module-nomodule/
| (module | |
| (func $addTwo (param i32 i32) (result i32) | |
| (i32.add | |
| (get_local 0) | |
| (get_local 1))) | |
| (export "addTwo" (func $addTwo))) |