repo_id
stringlengths
21
96
file_path
stringlengths
31
155
content
stringlengths
1
92.9M
__index_level_0__
int64
0
0
rapidsai_public_repos/node/modules/sql
rapidsai_public_repos/node/modules/sql/src/json_plan.ts
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/sql
rapidsai_public_repos/node/modules/sql/src/addon.cpp
// Copyright (c) 2021-2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/sql
rapidsai_public_repos/node/modules/sql/src/addon.ts
// Copyright (c) 2021-2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/sql/src
rapidsai_public_repos/node/modules/sql/src/cluster/remote.ts
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/sql/src
rapidsai_public_repos/node/modules/sql/src/cluster/worker.ts
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/sql/src
rapidsai_public_repos/node/modules/sql/src/cluster/local.ts
// Copyright (c) 2021-2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/sql
rapidsai_public_repos/node/modules/sql/test/sql-cluster-io-tests.ts
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/sql
rapidsai_public_repos/node/modules/sql/test/tsconfig.json
{ "extends": "../tsconfig.json", "include": [ "../src/**/*.ts", "../test/**/*.ts" ], "compilerOptions": { "target": "esnext", "module": "commonjs", "allowJs": true, "importHelpers": false, "noEmitHelpers": false, "noEmitOnError": false, ...
0
rapidsai_public_repos/node/modules/sql
rapidsai_public_repos/node/modules/sql/test/sql-context-io-tests.ts
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/sql
rapidsai_public_repos/node/modules/sql/test/sql-context-tests.ts
// Copyright (c) 2021-2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/sql
rapidsai_public_repos/node/modules/sql/test/sql-cluster-tests.ts
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules
rapidsai_public_repos/node/modules/demo/README.md
# Node RAPIDS Demos ### A collection of demos, templates, and applications showcasing the features and uses for Node RAPIDS. <br/> ## Starting Demos In a properly configured env or docker container, most demos can be selected from a list and started with: ```bash yarn demo ``` Or directly with: ```bash yarn demo mod...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/graph/package.json
{ "private": true, "name": "@rapidsai/demo-graph", "main": "index.js", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modu...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/graph/index.js
#!/usr/bin/env node // Copyright (c) 2020-2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/graph/README.md
# Simple Graph Demo A simple graph visualization powered by cuGraph and deck.gl, using a glfw instance. While running, you can select parameters by using the up/down arrow keys or 1-9 and adjust by using left/right arrow keys. Pan and zoom with a mouse. ## Featured Dependencies - @rapidsai/cudf - @rapidsai/cuspatial -...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/graph/Graph Demo.ipynb
var graphDemoWindow = require('@rapidsai/demo-graph'); graphDemoWindow.open({ _title: 'Graph Demo', width: 1024, height: 768, layoutParams: { scalingRatio: 5, autoCenter: false, } })
0
rapidsai_public_repos/node/modules/demo/graph
rapidsai_public_repos/node/modules/demo/graph/src/loader.js
// Copyright (c) 2021-2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/demo/graph
rapidsai_public_repos/node/modules/demo/graph/src/app.jsx
// Copyright (c) 2020-2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/api-server/package.json
{ "private": true, "name": "@rapidsai/demo-api-server", "main": "index.js", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Thomson Comer <thomcom@gmail.com>" ], "bin": "index.js", "description": "A fastify-based web server that pr...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/api-server/index.js
#!/usr/bin/env node // Copyright (c) 2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/api-server/README.md
# Fastify HTTP Server Demo This project is a Fastify-based node http server that allows commands and data to be sent to and from the NVIDIA GPUs installed on the host machine. Essentially, the node-rapids system is provided as a backend to any HTTP client. At this time only limited functionality is available to load ...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/api-server/app.js
'use strict' const path = require('path') const AutoLoad = require('@fastify/autoload') module.exports = async function(fastify, opts) { // Place here your custom code! // Do not touch the following lines // This loads all plugins defined in plugins // those should be support plugins that are reused /...
0
rapidsai_public_repos/node/modules/demo/api-server
rapidsai_public_repos/node/modules/demo/api-server/util/schema.js
// Copyright (c) 2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/api-server
rapidsai_public_repos/node/modules/demo/api-server/util/gpu_cache.js
// Copyright (c) 2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/api-server
rapidsai_public_repos/node/modules/demo/api-server/routes/README.md
# Routes Folder Routes define routes within your application. Fastify provides an easy path to a microservice architecture, in the future you might want to independently deploy some of those. In this folder you should define all the routes that define the endpoints of your web application. Each service is a [Fastify ...
0
rapidsai_public_repos/node/modules/demo/api-server
rapidsai_public_repos/node/modules/demo/api-server/routes/root.js
// Copyright (c) 2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/api-server/routes
rapidsai_public_repos/node/modules/demo/api-server/routes/graphology/index.js
// Copyright (c) 2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/api-server
rapidsai_public_repos/node/modules/demo/api-server/plugins/README.md
# Plugins Folder Plugins define behavior that is common to all the routes in your application. Authentication, caching, templates, and all the other cross cutting concerns should be handled by plugins placed in this folder. Files in this folder are typically defined through the [`fastify-plugin`](https://github.com/f...
0
rapidsai_public_repos/node/modules/demo/api-server
rapidsai_public_repos/node/modules/demo/api-server/plugins/support.js
'use strict' const fp = require('fastify-plugin') // the use of fastify-plugin is required to be able // to export the decorators to the outer scope module.exports = fp(async function (fastify, opts) { fastify.decorate('someSupport', function () { return 'hugs' }) })
0
rapidsai_public_repos/node/modules/demo/api-server
rapidsai_public_repos/node/modules/demo/api-server/plugins/sensible.js
'use strict' const fp = require('fastify-plugin') /** * This plugins adds some utilities to handle http errors * * @see https://github.com/fastify/fastify-sensible */ module.exports = fp(async function (fastify, opts) { fastify.register(require('@fastify/sensible'), { errorHandler: false }) })
0
rapidsai_public_repos/node/modules/demo/api-server
rapidsai_public_repos/node/modules/demo/api-server/test/fixtures.js
// Copyright (c) 2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/api-server
rapidsai_public_repos/node/modules/demo/api-server/test/helper.js
'use strict' // This file contains code that we reuse // between our tests. const { build: buildApplication } = require('fastify-cli/helper') const path = require('path') const AppPath = path.join(__dirname, '..', 'app.js') // Fill in this config with all the configurations // needed for testing the application func...
0
rapidsai_public_repos/node/modules/demo/api-server/test
rapidsai_public_repos/node/modules/demo/api-server/test/routes/root.test.js
// Copyright (c) 2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/api-server/test
rapidsai_public_repos/node/modules/demo/api-server/test/routes/graphology.test.js
// Copyright (c) 2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/api-server/test
rapidsai_public_repos/node/modules/demo/api-server/test/plugins/gpu_cache.test.js
// Copyright (c) 2022, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/luma/package.json
{ "private": true, "name": "@rapidsai/demo-luma.gl-lessons", "main": "index.js", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experiment...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/luma/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/luma/README.md
## Luma.gl Lessons Demo Running [Luma.gl](https://luma.gl/) lessons in a glfw instance, based on [webGL lessons](https://github.com/tparisi/webgl-lessons). Lessons 01 - 16 availble. ## Featured Dependencies - @rapidsai/jsdom - @rapidsai/glfw Example of starting lesson 01: ```bash yarn start 01` ```
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/07/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-07", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@loaders.gl/images": "3.2.9", "@luma.gl/...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/07/app.js
import GL from '@luma.gl/constants'; import {Matrix4} from 'math.gl'; import { AnimationLoop } from '@luma.gl/engine'; import { Texture2D } from '@luma.gl/webgl'; import { setParameters, CubeGeometry } from '@luma.gl/core'; import { ModelNode } from '@luma.gl/experimental'; export const INFO_HTML = ` <p> <a href="ht...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/06/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-06", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@loaders.gl/images": "3.2.9", "@luma.gl/...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/06/app.js
import GL from '@luma.gl/constants'; import {Matrix4} from 'math.gl'; import { AnimationLoop, CubeGeometry } from '@luma.gl/engine'; import { Texture2D, loadImage } from '@luma.gl/webgl'; import { setParameters } from '@luma.gl/core'; import { ModelNode } from '@luma.gl/experimental'; const INFO_HTML = ` <p> <a href...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/05/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-05", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@luma.gl/constants": "8.5.16", "@luma.gl...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/05/app.js
import GL from '@luma.gl/constants'; import {Matrix4} from 'math.gl'; import { AnimationLoop, Model, CubeGeometry } from '@luma.gl/engine'; import { Texture2D } from '@luma.gl/webgl'; import { setParameters } from '@luma.gl/core'; const INFO_HTML = ` <p> <a href="http://learningwebgl.com/blog/?p=507" target="_blank"...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/14/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-14", "description": "The classic WebGL Lesson 14 ported to luma.gl.", "contributors": [ "Xintong Xia <xintong@uber.com>" ], "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webp...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/14/Teapot.json
{ "positions" : [5.929688,4.125,0,5.387188,4.125,2.7475,5.2971,4.494141,2.70917,5.832031,4.494141,0,5.401602,4.617188,2.753633,5.945313,4.617188,0,5.614209,4.494141,2.844092,6.175781,4.494141,0,5.848437,4.125,2.94375,6.429688,4.125,0,3.899688,4.125,4.97,3.830352,4.494141,4.900664,3.910782,4.617188,4.981094,4.074414...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/14/app.js
import GL from '@luma.gl/constants'; import { AnimationLoop, Geometry, Texture2D, setParameters } from '@luma.gl/core'; import {Matrix4, radians} from 'math.gl'; import { ModelNode } from '@luma.gl/experimental'; import { loadFile } from '@luma.gl/webgl'; const INFO_HTML = ` <p> <a href="http://learningwebgl...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/08/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-08", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@loaders.gl/images": "3.2.9", "@luma.gl/...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/08/app.js
/* eslint-disable max-statements, array-bracket-spacing, no-multi-spaces */ import GL from '@luma.gl/constants'; import {Matrix4} from 'math.gl'; import { Texture2D } from '@luma.gl/webgl'; import { AnimationLoop, setParameters, CubeGeometry } from '@luma.gl/core'; import { ModelNode } from '@luma.gl/experimental'; co...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/12/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-12", "description": "The classic WebGL Lesson 12 ported to luma.gl.", "contributors": [ "Jian Huang <jianh@uber.com>" ], "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/12/app.js
import GL from '@luma.gl/constants'; import { AnimationLoop, Texture2D, setParameters, Model, SphereGeometry, CubeGeometry } from '@luma.gl/core'; import {Vector3, Matrix4, radians} from 'math.gl'; /* eslint-disable complexity */ const VERTEX_SHADER = `\ attribute vec3 positions; attribute vec3 normals; at...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/10/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-10", "description": "The classic WebGL Lesson 10 ported to luma.gl.", "contributors": [ "Jian Huang <jianh@uber.com>" ], "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/10/world.js
import {Program, Geometry} from '@luma.gl/core'; import { ModelNode } from '@luma.gl/experimental'; const VERTEX_SHADER = `\ attribute vec3 positions; attribute vec2 texCoords; uniform mat4 uMVMatrix; uniform mat4 uPMatrix; varying vec2 vTextureCoord; void main(void) { gl_Position = uPMatrix * uMVMatrix * vec4(po...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/10/world.txt
NUMPOLLIES 36 // Floor 1 -3.0 0.0 -3.0 0.0 6.0 -3.0 0.0 3.0 0.0 0.0 3.0 0.0 3.0 6.0 0.0 -3.0 0.0 -3.0 0.0 6.0 3.0 0.0 -3.0 6.0 6.0 3.0 0.0 3.0 6.0 0.0 // Ceiling 1 -3.0 1.0 -3.0 0.0 6.0 -3.0 1.0 3.0 0.0 0.0 3.0 1.0 3.0 6.0 0.0 -3.0 1.0 -3.0 0.0 6.0 3.0 1.0 -3.0 6.0 6.0 3.0 1.0 3.0 6.0 0.0 /...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/10/app.js
import GL from '@luma.gl/constants'; import {AnimationLoop, Texture2D, loadFile, setParameters} from '@luma.gl/core'; import {Matrix4, radians} from 'math.gl'; import {loadWorldGeometry, World} from './world'; import {EventManager} from 'mjolnir.js'; /* eslint-disable complexity */ /* Cave texture from: http://textu...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/15/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-15", "description": "The classic WebGL Lesson 15 ported to luma.gl.", "contributors": [ "Xintong Xia <xintong@uber.com>" ], "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webp...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/15/app.js
import GL from '@luma.gl/constants'; import {AnimationLoop, Texture2D, setParameters, Model, SphereGeometry} from '@luma.gl/core'; import {Matrix4} from 'math.gl'; const EARTH_UNIFORMS = { uUseColorMap: true, uUseSpecularMap: true, uShowSpecularHighlights: true, uUseLighting: true }; const LIGHT_UNIFORMS = { ...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/02/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-02", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@luma.gl/core": "8.5.16", "math.gl": "3....
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/02/app.js
import {AnimationLoop, setParameters} from '@luma.gl/core'; import {Program, VertexArray, Buffer} from '@luma.gl/webgl'; import {Matrix4} from 'math.gl'; const INFO_HTML = ` <p> <a href="http://learningwebgl.com/blog/?p=134" target="_blank"> Adding Color </a> <p> The classic WebGL Lessons in luma.gl `; const ...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/04/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-04", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@luma.gl/constants": "8.5.16", "@luma.gl...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/04/app.js
import GL from '@luma.gl/constants'; import {Matrix4} from 'math.gl'; import { setParameters } from '@luma.gl/core'; import { AnimationLoop, Model, Geometry, CubeGeometry } from '@luma.gl/engine'; const INFO_HTML = ` <p> <a href="http://learningwebgl.com/blog/?p=370" target="_blank"> Some Real 3D Objects </a> ...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/13/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-13", "description": "The classic WebGL Lesson 13 ported to luma.gl.", "contributors": [ "Jian Huang <jianh@uber.com>" ], "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/13/app.js
import GL from '@luma.gl/constants'; import { AnimationLoop, Texture2D, setParameters, Model, SphereGeometry, CubeGeometry } from '@luma.gl/core'; import {Matrix4, radians} from 'math.gl'; const INFO_HTML = ` <p> <a href="http://learningwebgl.com/blog/?p=1523" target="_blank"> Per-fragment lighting and...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/11/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-11", "description": "The classic WebGL Lesson 11 ported to luma.gl.", "contributors": [ "Jian Huang <jianh@uber.com>" ], "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/11/app.js
import GL from '@luma.gl/constants'; import {AnimationLoop, setParameters, Texture2D, Model, SphereGeometry} from '@luma.gl/core'; import {Vector3, Matrix4} from 'math.gl'; import {EventManager} from 'mjolnir.js'; /* eslint-disable complexity */ const INFO_HTML = ` <p> <a href="http://learningwebgl.com/blog/?p=1253"...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/01/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-01", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@luma.gl/core": "8.5.16", "math.gl": "3....
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/01/app.js
import {AnimationLoop, setParameters} from '@luma.gl/core'; import {Program, VertexArray, Buffer} from '@luma.gl/webgl'; import {Matrix4} from 'math.gl'; const INFO_HTML = ` <p> <a href="http://learningwebgl.com/blog/?p=28" target="_blank"> A Triangle and a Square </a> <p> The classic WebGL Lessons in luma.gl ...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/16/WebGLExport.py
#!BPY """ Name: 'WebGL JavaScript (.js)' Blender: 244 Group: 'Export' Tooltip: 'WebGL JavaScript' """ # -------------------------------------------------------------------------- # ***** BEGIN GPL LICENSE BLOCK ***** # # Copyright (C) 2010 Dennis Ippel # # This program is free software; you can redistribute it and/or...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/16/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-16", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@loaders.gl/images": "3.2.9", "@luma.gl/...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/16/macbook.json
{"vertices":[0.132473,-0.019556,0.061144,-0.223287,-0.019556,0.061144,-0.223287,-0.019556,0.074144,0.132473,-0.019556,0.074144,-0.223287,-0.019556,0.061144,-0.224575,-0.019715,0.061144,-0.224575,-0.019715,0.074144,-0.223287,-0.019556,0.061144,-0.224575,-0.019715,0.074144,-0.223287,-0.019556,0.074144,-0.224575,-0.019715...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/16/app.js
// TODO: Remaining issues // 1. Specular highlights don not match with example: // verify light position relative to moon/cube // 2. Fix positioning (translations) of moon and cube. // 3. Match laptopScreen uniforms with the example. // 4. Match zNear/zFar values with example on all cases. // 5. Verify lookAt matrix...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/09/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-09", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@loaders.gl/images": "3.2.9", "@luma.gl/...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/09/star.js
import { Program, Geometry } from '@luma.gl/core'; import { ModelNode } from '@luma.gl/experimental'; const VERTEX_SHADER = `\ attribute vec3 positions; attribute vec2 texCoords; uniform mat4 uMVMatrix; uniform mat4 uPMatrix; varying vec2 vTextureCoord; void main(void) { gl_Position = uPMatrix * uMVMatrix * vec4(...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/09/app.js
import GL from '@luma.gl/constants'; import {AnimationLoop, Texture2D, setParameters} from '@luma.gl/core'; import {Matrix4} from 'math.gl'; import {Star} from './star'; const INFO_HTML = ` <p> <a href="http://learningwebgl.com/blog/?p=1008" target="_blank"> Improving the code structure with lots of moving objec...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/03/package.json
{ "version": "0.0.1", "private": true, "name": "@rapidsai/demo-luma.gl-lessons-03", "scripts": { "start": "webpack-dev-server --progress --hot --open -d", "start-local": "webpack-dev-server --env.local --progress --hot --open -d" }, "dependencies": { "@loaders.gl/images": "3.2.9", "@luma.gl/...
0
rapidsai_public_repos/node/modules/demo/luma/lessons
rapidsai_public_repos/node/modules/demo/luma/lessons/03/app.js
/* eslint-disable array-bracket-spacing, no-multi-spaces */ import GL from '@luma.gl/constants'; import {ModelNode} from '@luma.gl/experimental'; import {AnimationLoop, setParameters, Geometry} from '@luma.gl/core'; import {Matrix4} from 'math.gl'; const INFO_HTML = ` <p> <a href="http://learningwebgl.com/blog/?p=23...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/.vscode/launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "compounds": [ { "name": "Debug Demo (TS and C++)", "conf...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/ipc/README.md
# Inter Process Communication (IPC) - Depricated Early demo showing how to use IPC handles from Python with Node.js.
0
rapidsai_public_repos/node/modules/demo/ipc
rapidsai_public_repos/node/modules/demo/ipc/graph/package.json
{ "private": true, "name": "@rapidsai/demo-ipc-graph", "main": "index.js", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-...
0
rapidsai_public_repos/node/modules/demo/ipc
rapidsai_public_repos/node/modules/demo/ipc/graph/index.js
#!/usr/bin/env node // Copyright (c) 2020-2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
0
rapidsai_public_repos/node/modules/demo/ipc
rapidsai_public_repos/node/modules/demo/ipc/graph/fa2.py
# Copyright (c) 2020-2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
0
rapidsai_public_repos/node/modules/demo/ipc/graph
rapidsai_public_repos/node/modules/demo/ipc/graph/python/test_data.py
# Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
rapidsai_public_repos/node/modules/demo/ipc/graph
rapidsai_public_repos/node/modules/demo/ipc/graph/python/convert_matrix.py
# Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
rapidsai_public_repos/node/modules/demo/ipc/graph
rapidsai_public_repos/node/modules/demo/ipc/graph/python/callback.py
# Copyright (c) 2020-2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
0
rapidsai_public_repos/node/modules/demo/ipc/graph
rapidsai_public_repos/node/modules/demo/ipc/graph/python/graph_components.py
# Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
rapidsai_public_repos/node/modules/demo/ipc/graph
rapidsai_public_repos/node/modules/demo/ipc/graph/src/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/ipc/graph
rapidsai_public_repos/node/modules/demo/ipc/graph/src/loader.js
// Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/ipc/graph
rapidsai_public_repos/node/modules/demo/ipc/graph/src/app.jsx
// Copyright (c) 2020-2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/demo/ipc
rapidsai_public_repos/node/modules/demo/ipc/umap/package.json
{ "private": true, "name": "@rapidsai/demo-ipc-umap", "main": "index.js", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-m...
0
rapidsai_public_repos/node/modules/demo/ipc
rapidsai_public_repos/node/modules/demo/ipc/umap/index.js
#!/usr/bin/env node // Copyright (c) 2020-2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
0
rapidsai_public_repos/node/modules/demo/ipc
rapidsai_public_repos/node/modules/demo/ipc/umap/umap.py
import os import cupy import ctypes import numba import numpy as np import zmq import traceback from cudf.core.buffer import Buffer from cudf.core.index import RangeIndex from cudf.core.column import CategoricalColumn from cuml.internals import GraphBasedDimRedCallback # GPU UMAP import cudf from cuml.manifold.umap i...
0
rapidsai_public_repos/node/modules/demo/ipc
rapidsai_public_repos/node/modules/demo/ipc/umap/README.md
```shell $ docker run --rm -it \ --network=host -w /rapids/notebooks \ -v "$PWD/umap.py:/rapids/notebooks/umap.py" \ rapidsai/rapidsai-dev-nightly:21.08-cuda11.2-devel-ubuntu20.04-py3.8 \# python umap.py ```
0
rapidsai_public_repos/node/modules/demo/ipc
rapidsai_public_repos/node/modules/demo/ipc/umap/app.js
// Copyright (c) 2020-2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/demo/ipc/umap
rapidsai_public_repos/node/modules/demo/ipc/umap/layers/arrow-graph-layer.js
// Copyright (c) 2020-2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/demo/ipc/umap
rapidsai_public_repos/node/modules/demo/ipc/umap/layers/utils.js
// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
0
rapidsai_public_repos/node/modules/demo/ipc/umap/layers
rapidsai_public_repos/node/modules/demo/ipc/umap/layers/edge/bezier-curve-layer.js
// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
0
rapidsai_public_repos/node/modules/demo/ipc/umap/layers
rapidsai_public_repos/node/modules/demo/ipc/umap/layers/edge/edge-positions-vertex.glsl.js
// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
0
rapidsai_public_repos/node/modules/demo/ipc/umap/layers
rapidsai_public_repos/node/modules/demo/ipc/umap/layers/edge/bezier-curve-layer-vertex.glsl.js
// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
0
rapidsai_public_repos/node/modules/demo/ipc/umap/layers
rapidsai_public_repos/node/modules/demo/ipc/umap/layers/edge/README.md
# Bezier Curve Layer This layer renders qudratic bezier curves. Right now it accepts only one control point. import BezierCurveLayer from './bezier-curve-layer'; Inherits from all [Base Layer](/docs/layers/base-layer.md) properties. ##### `getSourcePosition` (Function, optional) - Default: `d => d.sourcePositi...
0
rapidsai_public_repos/node/modules/demo/ipc/umap/layers
rapidsai_public_repos/node/modules/demo/ipc/umap/layers/edge/bezier-curve-layer-fragment.glsl.js
// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
0