This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { flushSync } from 'react-dom'; | |
import { | |
Button, | |
Container, | |
Checkbox, | |
Switch, | |
Box, | |
Paper, | |
TextField, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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";', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { flushSync } from 'react-dom'; | |
import { | |
Button, | |
Container, | |
Checkbox, | |
Switch, | |
Box, | |
Paper, | |
TextField, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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| { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { flushSync } from 'react-dom'; | |
import { | |
Button, | |
Container, | |
Checkbox, | |
Switch, | |
Box, | |
Paper, | |
TextField, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { flushSync } from 'react-dom'; | |
import { | |
Button, | |
Container, | |
Checkbox, | |
Switch, | |
Box, | |
Paper, | |
TextField, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { ThemeProvider, createTheme } from '@mui/material/styles'; | |
import CssBaseline from '@mui/material/CssBaseline'; | |
const darkTheme = createTheme({ | |
palette: { | |
mode: 'dark', | |
background: { | |
default: '#262626', | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const axios = require('axios'); | |
const jsdom = require('jsdom'); | |
const { JSDOM } = jsdom; | |
const TABLE_SELECTOR = 'table.table-auto' | |
const LINK_NEXT_SELECTOR = 'a[rel="next"]' | |
let page = 1 | |
let data = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reduce(array, callback, initial) { | |
let accumulator = initial | |
for (let i = 0; i < array.length; i++) { | |
let currentValue = array[i] | |
accumulator = callback(accumulator, currentValue) | |
} | |
return accumulator | |
} |