Skip to content

Instantly share code, notes, and snippets.

View romgrk's full-sized avatar
♥️
hey

Rom Grk romgrk

♥️
hey
View GitHub Profile
node:internal/modules/customization_hooks:276
throw new ERR_INVALID_RETURN_PROPERTY_VALUE(
^
TypeError [ERR_INVALID_RETURN_PROPERTY_VALUE]: Expected a string, an ArrayBuffer, or a TypedArray to be returned for the "source" from the "load" hook but got undefined.
at validateLoad (node:internal/modules/customization_hooks:276:11)
at nextStep (node:internal/modules/customization_hooks:190:14)
at load (file:///project/workspace/tests/node-ignore-css.mjs:8:12)
at nextStep (node:internal/modules/customization_hooks:185:26)
at loadWithHooks (node:internal/modules/customization_hooks:348:18)
@romgrk
romgrk / gist:b406759560aae882fa14755a9317559f
Created August 5, 2025 12:58
yarn-virtualizer-install-log
$ yarn -v
4.9.2
$ node -v
v22.18.0
$ npm -v
10.9.3
$ yarn add @mui/x-data-grid
➤ YN0000: · Yarn 4.9.2
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @mui/x-data-grid@npm:8.9.2, @babel/runtime@npm:7.28.2, @mui/types@npm:7.4.5, @mui/utils@npm:7.3.0, @mui/x-internals@npm:8.9.2, @mui/x-virtualizer@npm:0.1.0, @types/prop-types@npm:15.7.15, clsx@npm:2.1.1, and 8 more.
import * as React from 'react';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import { NoSsr, CssBaseline } from '@mui/material';
import '@mui/x-data-grid/themeAugmentation';
const theme = createTheme({
palette: {
mode: 'dark',
background: {
default: '#262626',
warning: [email protected]: ToolExecError: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/home/romgrk/.local/share/nvim/lazy/vim-clap/target/release/build/onig_sys-e45f8b494a440f8d/out" "-I" "oniguruma/src" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/home/romgrk/.local/share/nvim/lazy/vim-clap/target/release/build/onig_sys-e45f8b494a440f8d/out/c77b18e714869709-st.o" "-c" "oniguruma/src/st.c" with args cc did not execute successfully (status code exit status: 1).
error: failed to run custom build command for `onig_sys v69.8.1`
Caused by:
process didn't exit successfully: `/home/romgrk/.local/share/nvim/lazy/vim-clap/target/release/build/onig_sys-5a942f407f355d7e/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=RUSTONIG_DYNAMIC_LIBONIG
cargo:rerun-if-env-changed=RUSTONIG_STATIC_LIBONIG
cargo:rerun-if-env-changed=RUSTONIG_SYSTEM_LIBONIG
OUT_DIR = Some(/home/romgrk/.local/share/nvim/lazy/vim-clap/target/release/buil
@romgrk
romgrk / page.tsx
Created May 21, 2025 22:37
base-ui test case
'use client';
import * as React from 'react';
import { Flex } from '@joy-ui/react';
import { useRenderElement } from '@base-ui-components/react';
import './page.css';
import './perf-test.css'
diff --color -bur mui-master/Accordion/AccordionContext.js mui-new/Accordion/AccordionContext.js
--- mui-master/Accordion/AccordionContext.js 2025-05-15 04:27:00.978150724 -0400
+++ mui-new/Accordion/AccordionContext.js 2025-05-15 04:23:53.077302969 -0400
@@ -12,7 +12,5 @@
* @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
*/
const AccordionContext = /*#__PURE__*/React.createContext({});
-if (process.env.NODE_ENV !== 'production') {
- AccordionContext.displayName = 'AccordionContext';
-}
/*
* BorrowMap: (possibly) zero-copy mutable data structure in a react context
* =========================================================================
*
* The idea behind this concept is that we can have a mutable container in a
* React-linked store but ONLY IF we never share a reference to the mutable
* container itself. All the reads must be contained inside selectors. As long
* as no one has a second reference to the mutable container, then we are sure
* that no one is able to read/write it without us knowing.
*
@romgrk
romgrk / gist:e22d00073999daaa403fb0979ecec964
Created January 2, 2025 23:52
dig +trace lolawho.com
$ dig +trace lolawho.com   refactor-agnostic-button-props
; <<>> DiG 9.20.4 <<>> +trace lolawho.com
;; global options: +cmd
. 241826 IN NS a.root-servers.net.
. 241826 IN NS b.root-servers.net.
. 241826 IN NS c.root-servers.net.
. 241826 IN NS d.root-servers.net.
. 241826 IN NS e.root-servers.net.
. 241826 IN NS f.root-servers.net.
const focusedVirtualCellSelector = createSelectorMemoizedV8(
gridRenderContextSelector,
gridFocusCellSelector,
currentRowsSelector,
visibleColumnsSelector,
(currentRenderContext, focusedCell, currentRows, visibleColumns) => {
if (!focusedCell) {
function wrapSx(Component) {
const newComponent = (props) => {
const { sx, ...rest } = props
rest.className = useSx(sx)
return Component(rest)
}
newComponent.displayName = Component.displayName ?? Component.name
return newComponent