FubarUI.xyz
UI form using ad-hoc components (which are client components)
Date Picker
Auto Complete
Accordian
Exercitation in fugiat est ut ad ea cupidatat ut in cupidatat occaecat ut occaecat consequat est minim minim esse tempor laborum consequat esse adipisicing eu reprehenderit enim.
In ad velit in ex nostrud dolore cupidatat consectetur ea in ut nostrud velit in irure cillum tempor laboris sed adipisicing eu esse duis nulla non.
leet code snippets (which are server components)
Ordering some keys
const unordered = {
b: "foo",
c: "bar",
a: "baz",
};
const ordered = Object.keys(unordered)
.sort()
.reduce((obj, key) => {
obj[key] = unordered[key];
return obj;
}, {});
console.log(JSON.stringify(ordered));
Opening a file in rust
use std::fs::File;
let mut file = File::options()
.read(true)
.write(true)
.open("foo.txt")?;
Ordering some keys
const unordered = {
b: "foo",
c: "bar",
a: "baz",
};
const ordered = Object.keys(unordered)
.sort()
.reduce((obj, key) => {
obj[key] = unordered[key];
return obj;
}, {});
console.log(JSON.stringify(ordered));
Opening a file in rust
use std::fs::File;
let mut file = File::options()
.read(true)
.write(true)
.open("foo.txt")?;
Ordering some keys
const unordered = {
b: "foo",
c: "bar",
a: "baz",
};
const ordered = Object.keys(unordered)
.sort()
.reduce((obj, key) => {
obj[key] = unordered[key];
return obj;
}, {});
console.log(JSON.stringify(ordered));
About 200 uniquely generated component definitions (to simulate app bloat)
Hamburger
HamburgerA
HamburgerAA
HamburgerAB
HamburgerAC
HamburgerB
HamburgerBA
HamburgerBB
HamburgerBC
HamburgerC
HamburgerCA
HamburgerCB
HamburgerCC
Salad
SaladA
SaladAA
SaladAB
SaladAC
SaladB
SaladBA
SaladBB
SaladBC
SaladC
SaladCA
SaladCB
SaladCC
BabyCorn
BabyCornA
BabyCornAA
BabyCornAB
BabyCornAC
BabyCornB
BabyCornBA
BabyCornBB
BabyCornBC
BabyCornC
BabyCornCA
BabyCornCB
BabyCornCC
PeanutButter
PeanutButterA
PeanutButterAA
PeanutButterAB
PeanutButterAC
PeanutButterB
PeanutButterBA
PeanutButterBB
PeanutButterBC
PeanutButterC
PeanutButterCA
PeanutButterCB
PeanutButterCC
Watermellon
WatermellonA
WatermellonAA
WatermellonAB
WatermellonAC
WatermellonB
WatermellonBA
WatermellonBB
WatermellonBC
WatermellonC
WatermellonCA
WatermellonCB
WatermellonCC