Skip to content

Instantly share code, notes, and snippets.

View aidenybai's full-sized avatar

Aiden Bai aidenybai

View GitHub Profile
Million.js Individual Contributor License Agreement ("Agreement")
(based on Individual Contributor License Agreement v2.1 by The Apache Software Foundation)
Thank you for your interest in contributing to the open source projects of Million.js. In order to clarify the intellectual property license granted with Contributions from any person or entity, the Company must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Company and its users; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Company. Except for the license granted herein to the Company and recipients of software distributed by the Company, You reserve all right, title, and interest in and to Your Contributions.
Defini

Tags

Problem tags:

  • expensive_operation
  • unstable_reference
  • bad_selector
  • context

Solution tags:

@aidenybai
aidenybai / newoutput.json
Last active January 24, 2024 02:17
anya-v2-output.json
{
"/Users/aidenybai/Projects/aidenybai/anya/demo/src/components/FilterInput/index.jsx": {
"source": "import { TextField } from \"@mui/material\";\n\nfunction FilterInput({ filter, onChange, noteCount }) {\n return (\n <TextField\n className=\"notes-list__input\"\n type=\"search\"\n size=\"small\"\n value={filter}\n onChange={(e) => onChange(e.target.value)}\n placeholder={`Filter ${noteCount} note${noteCount === 1 ? \"\" : \"s\"}`}\n />\n );\n}\nexport default FilterInput;\n",
"_parentLookup": {},
"components": {
"FilterInput": {
"id": "FilterInput",
"start": {
"line": 3,
"column": 0
@aidenybai
aidenybai / README.md
Last active January 25, 2024 01:23
Example of Million Copilot runtime data
{
"/Users/aidenybai/Projects/aidenybai/anya/notes-demo/src/components/FilterInput/index.jsx": {
"components": {
"FilterInput": {
"componentName": "FilterInput",
"loc": [
3,
0,
14,
1
{
"/Users/aidenybai/Projects/aidenybai/anya/notes-demo/src/components/FilterInput/index.jsx": {
"components": {
"FilterInput": {
"componentName": "FilterInput",
"loc": [
3,
0,
14,
1
`src/store/redux/index.js`:
```js
import { configureStore } from "@reduxjs/toolkit";
import { combineReducers } from "redux";
import userReducer from "./userReducer";
import noteMetadataReducer from "./noteMetadataReducer";
const store = configureStore({
reducer: combineReducers({
users: userReducer,
```
original `next.config.js`:
```js
import withBundleAnalyzer from "@next/bundle-analyzer";
// @ts-check
/**
---
title: Million Lint is in public beta
date: FEB 29, 2024
description: We’d love to have your feedback
---
import { Steps, Callout, Tabs, Tab } from 'nextra-theme-docs';
import Image from 'next/image';
<div className="flex flex-col items-center gap-4">
---
title: Million Lint is in public beta
date: FEB 29, 2024
description: We’d love to have your feedback
---
import { Steps, Callout, Tabs, Tab } from 'nextra-theme-docs';
import Image from 'next/image';
<div className="flex flex-col items-center gap-4">