Skip to content

Instantly share code, notes, and snippets.

View romgrk's full-sized avatar
♥️
hey

Rom Grk romgrk

♥️
hey
View GitHub Profile
@romgrk
romgrk / gist:2c7f97363b1f5d580857bd560c7c1dfc
Created September 19, 2024 22:42
rg 'theme\.' $(fd . packages/x-data-grid*)
packages/x-data-grid-pro/src/hooks/features/columnReorder/useGridColumnReorder.tsx: (theme.direction === 'rtl'
packages/x-data-grid-pro/src/hooks/features/columnReorder/useGridColumnReorder.tsx: (theme.direction === 'rtl'
packages/x-data-grid-pro/src/hooks/features/columnReorder/useGridColumnReorder.tsx: [apiRef, logger, theme.direction],
packages/x-data-grid-pro/src/components/GridColumnMenuPinningItem.tsx: if (theme.direction === 'rtl') {
packages/x-data-grid-premium/src/components/GridGroupingColumnFooterCell.tsx: `calc(var(--DataGrid-cellOffsetMultiplier) * ${theme.spacing(props.rowNode.depth)})`;
packages/x-data-grid-pro/src/components/GridDetailPanel.tsx: backgroundColor: (theme.vars || theme).palette.background.default,
packages/x-data-grid-premium/src/components/GridAggregationHeader.tsx: fontSize: theme.typography.caption.fontSize,
packages/x-data-grid-premium/src/components/GridAggregationHeader.tsx: lineHeight: theme.typography.caption.fontSize,
packages/x-data-gri
@romgrk
romgrk / potato
Created September 12, 2024 23:37
f0VMRgIBAQAAAAAAAAAAAAIA8wABAAAAABAQAAAAAABAAAAAAAAAAJgxAAAAAAAAAAAAAEAAOAAE
AEAACAAGAAEAAAAEAAAAABAAAAAAAAAAABAAAAAAAAAAEAAAAAAAABAAAAAAAAAAEAAAAAAAAAAQ
AAAAAAAAAQAAAAcAAAAAIAAAAAAAAAAQEAAAAAAAABAQAAAAAAB0AAAAAAAAAHQAAAAAAAAAABAA
AAAAAABR5XRkBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAMAAHAEAAAAByEAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwAAAAAAAAAvAAAAAAAAAAEAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
const encoder = new TextEncoder()
// bufferLength must be a multiple of 4 to satisfy Int32Array constraints
let bufferLength = 2 * 1024
let buffer = new ArrayBuffer(bufferLength)
let uint8View = new Uint8Array(buffer)
let int32View = new Int32Array(buffer)
export function murmur2(str) {
if (str.length > bufferLength) {
import * as React from 'react';
import { flushSync } from 'react-dom';
import {
Button,
Container,
Checkbox,
Switch,
Box,
Paper,
TextField,
// See 2nd file in this gist for strings dataset
import b from 'benny';
import MurmurWasm from '/home/romgrk/src/emotion/packages/hash-rust/index'
import strings from './emotionStrings'
const inputs = [
'background-color:red;',
'background-color:red;color:white;border-radius:24px;font-size:12px;font-family:"Roboto";',
import * as React from 'react';
import { flushSync } from 'react-dom';
import {
Button,
Container,
Checkbox,
Switch,
Box,
Paper,
TextField,
import b from 'benny';
import { input, theme } from './data'
function slowMatch(objects: typeof input) {
const variants = theme.variants
const result = []
for (let i = 0; i < objects.length; i++) {
const props = objects[i] as any
impl eframe::App for MyApp {
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
if self.captures.is_none() {
self.captures = Some(take_screenshot());
}
egui::CentralPanel::default().show(ctx, |ui| {
egui::ScrollArea::both().show(ui, |ui| {
if let Some(captures) = &self.captures {
captures.iter().for_each(|capture| {
import * as React from 'react';
import { flushSync } from 'react-dom';
import {
Button,
Container,
Checkbox,
Switch,
Box,
Paper,
TextField,
import * as React from 'react';
import { flushSync } from 'react-dom';
import {
Button,
Container,
Checkbox,
Switch,
Box,
Paper,
TextField,