Date: January 2025
Author: Research analysis based on llm-greenpt, llm-neuralwatt, and OpenCode codebase
| javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = ""; | |
| /* Optional folder name such as "Clippings/" */ |
The proposal you’re about to read is not just a proposal. We have a working implementation of almost everything we discussed here. We encourage you to checkout and build our branch: our fork, with the relevant branch selected. Building and using the implementation will give you a better understanding of what using it as a developer is like.
Our implementation ended up differing from the proposal on some minor points. As our last action item before making a PR, we’re writing documentation on what we did. While I loathe pointing to tests in lieu of documentation, they will be helpful until we complete writing docs: the unit tests.
This repo also contains a bundled version of npm that has a new command, asset. You can read the documentation for and goals of that comma
| /* | |
| Flexbox CSS helpers from the Polymer team. Extracted from https://github.com/PolymerElements/iron-flex-layout for use as just CSS. | |
| Docs: https://elements.polymer-project.org/guides/flex-layout | |
| @license | |
| Copyright (c) 2017 The Polymer Project Authors. All rights reserved. | |
| This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | |
| The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
| The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt |
| import {expect} from 'chai'; | |
| import App from '../app/components/App'; | |
| import a11yHelper from "./a11yHelper"; | |
| describe('Accessibility', function () { | |
| this.timeout(10000); | |
| it('Has no errors', function () { | |
| let config = {}; |
| import React from 'react'; | |
| const MIN_SCALE = 1; | |
| const MAX_SCALE = 4; | |
| const SETTLE_RANGE = 0.001; | |
| const ADDITIONAL_LIMIT = 0.2; | |
| const DOUBLE_TAP_THRESHOLD = 300; | |
| const ANIMATION_SPEED = 0.04; | |
| const RESET_ANIMATION_SPEED = 0.08; | |
| const INITIAL_X = 0; |
| import React, { Component } from 'react' | |
| import { SubWidgetLink } from './routes' | |
| export default class MyComponentWithALink extends Component { | |
| render() { | |
| const { widget } = this.props | |
| return ( | |
| <div> | |
| ... |
| /** | |
| * Simple userland heapdump generator using v8-profiler | |
| * Usage: require('[path_to]/HeapDump').init('datadir') | |
| * | |
| * @module HeapDump | |
| * @type {exports} | |
| */ | |
| var fs = require('fs'); | |
| var profiler = require('v8-profiler'); |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParent
| export default class SayingHelloComponent { | |
| static ngInject() { | |
| return [] // register your dependencies here (Angular 1 style, with string names) | |
| } | |
| static ddo() { | |
| return { | |
| bind: { | |
| person: '@' | |
| }, | |
| name: 'sayingHello', // component's name |