This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import proxy from 'http2-proxy'; | |
import type { Plugin, ProxyOptions } from 'vite'; | |
export const pluginHttp2Proxy = (): Plugin => { | |
let routes: Record<string, string | ProxyOptions>; | |
return { | |
name: 'vite-plugin-http2-proxy', | |
config: (config) => { | |
const { server } = config; | |
routes = server?.proxy ?? {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.cse.chalmers.se/edu/year/2010/course/TDA361/grid.pdf | |
function voxel_raycast_min(ray,chunk,aabb){ | |
//.................................................. | |
// Determine if the voxel chunk has an intersection. | |
var tBox = {}; | |
if(!Ray.inAABB(aabb,ray,tBox)){ return null; } | |
//.................................................. | |
var inPos = ray.getPos(tBox.min).nearZero(), // entry point for chunk, Clean up vals near zero. | |
cellSize = chunk.scale, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Node { | |
constructor(name, childNodes) { | |
this.name = name; | |
this.childNodes = childNodes; | |
this.visited = false; | |
} | |
} | |
function *dfs(u) { | |
u.visited = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE accounts( | |
id serial PRIMARY KEY, | |
name VARCHAR(256) NOT NULL | |
); | |
CREATE TABLE entries( | |
id serial PRIMARY KEY, | |
description VARCHAR(1024) NOT NULL, | |
amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0), | |
-- Every entry is a credit to one account... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACTIVE_ATTRIBUTES: 35721 | |
ACTIVE_ATTRIBUTE_MAX_LENGTH: 35722 | |
ACTIVE_TEXTURE: 34016 | |
ACTIVE_UNIFORMS: 35718 | |
ACTIVE_UNIFORM_MAX_LENGTH: 35719 | |
ALIASED_LINE_WIDTH_RANGE: 33902 | |
ALIASED_POINT_SIZE_RANGE: 33901 | |
ALPHA: 6406 | |
ALPHA_BITS: 3413 | |
ALWAYS: 519 |