We want to find a perspective camera lookat
direction
World local up
vector:
Camera lookat
vector:
import { LCS, Interned } from './lcs'; | |
export class Histogram<Token> { | |
constructor(before: Token[], after: Token[]) { | |
let prefix = 0; | |
let beforeEnd = before.length; | |
let afterEnd = after.length; | |
// Skip common prefix. |
We want to find a perspective camera lookat
direction
World local up
vector:
Camera lookat
vector:
const std = @import("std"); | |
/// Given an example struct with methods, create a function that produces vtables for similarly shaped structs. | |
/// A vtable contains function pointers to all the struct methods, with the struct type erased. | |
/// All structs should have an init function that takes an allocator as the first parameter and stores it in a field called "allocator". | |
/// At most 2 parameters are supported for methods (in addition to the initial self parameter). | |
pub fn VTableShape(comptime Template: type) type { | |
var fields = @typeInfo(struct { // | |
deinit: *const fn (*anyopaque) void, | |
}).Struct.fields; |
Copyright (c) 2020- Juha Järvi | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | |
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
import { Widget } from '@phosphor/widgets'; | |
import { ElementExt } from '@phosphor/domutils'; | |
export class IframePanel extends Widget { | |
constructor(iframe?: HTMLIFrameElement | null) { | |
super({ node: IframePanel.createNode() }); | |
if(!iframe) iframe = document.createElement('iframe'); | |
this.iframe = iframe; |
{ | |
"private": true, | |
"name": "classy-test", | |
"scripts": { | |
"install": "cd node_modules && git clone https://github.com/charto/classy-mst.git && cd classy-mst && git checkout develop && tsc -d --outdir dist src/index.ts src/classy-mst.ts", | |
"test": "tsc && mocha" | |
}, | |
"license": "MIT", | |
"devDependencies": { | |
"@types/mocha": "^2.2.47", |
This is deprecated and superseded by a proper package:
System.config({ | |
transpiler: false, | |
map: { | |
dstore: 'node_modules/dojo-dstore', | |
css: 'node_modules/systemjs-plugin-css/css.js' | |
}, | |
packages: { | |
'node_modules/dojo/': { |
The example code has been shamelessly copied from peteyy/native-addon-example.
import {hello} from './src/test'; | |
hello(); |