I hereby claim:
- I am sc1f on github.
- I am sc1f (https://keybase.io/sc1f) on keybase.
- I have a public key ASAeTGMuo7LFaRt41JSsbUBoIbTZIB6CUZHSglRZUZeHYQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| syntax enable | |
| filetype plugin on | |
| filetype indent on | |
| set backspace=eol,start,indent | |
| set whichwrap+=<,>,h,l | |
| set ignorecase | |
| set smartcase |
To push the contents of your dist folder to gh-pages, use the following steps:
git checkout -b pages to create and checkout the new branch.gitignore to remove the ignore for distgit add -A to add all changesgit commit your changesgit subtree push --prefix dist origin pages - this will push the contents of dist to the pages branch, so that it only contains the contents of dist and nothing else from the repository/parent folders. This means that index.html will be at the root of the branch and you can select it to deploy immediately in your repo's options.| %%javascript | |
| // Select all PerspectiveWidget elements that are currently being displayed | |
| const viewers = document.querySelectorAll("perspective-viewer"); | |
| // Toggle the config for each one. This can be made more complex to show and hide specific configs for specific viewers, etc. | |
| for (const viewer of viewers) viewer.toggleConfig() |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | |
| <script src="https://unpkg.com/@finos/perspective/dist/umd/perspective.js"></script> | |
| <script src="https://unpkg.com/@finos/perspective-viewer/dist/umd/perspective-viewer.js"></script> | |
| <script src="https://unpkg.com/@finos/perspective-viewer-datagrid"></script> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Exprtk docs</title> | |
| <link rel="preconnect" href="https://fonts.gstatic.com"> | |
| <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Roboto:wght@400;700&display=swap" rel="stylesheet"> | |
| <style> | |
| body { |
| <!-- | |
| Copyright (c) 2017, the Perspective Authors. | |
| This file is part of the Perspective library, distributed under the terms of | |
| the Apache License 2.0. The full license can be found in the LICENSE file. | |
| --> | |
| <!DOCTYPE html> |
| <!-- | |
| Copyright (c) 2017, the Perspective Authors. | |
| This file is part of the Perspective library, distributed under the terms of | |
| the Apache License 2.0. The full license can be found in the LICENSE file. | |
| --> | |
| <!DOCTYPE html> |
| const worker = perspective.worker(); | |
| worker._detect_transferable = () => { | |
| worker._worker.transferable = false; | |
| return false; | |
| }; | |
| worker._detect_transferable(); | |
| const table = worker.table({ | |
| a: [1, 2, 3, 4] | |
| }); |
| <!-- | |
| Copyright (c) 2017, the Perspective Authors. | |
| This file is part of the Perspective library, distributed under the terms of | |
| the Apache License 2.0. The full license can be found in the LICENSE file. | |
| --> | |
| <!DOCTYPE html> |