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
[ | |
{ | |
"label": "(UTC-12:00) Etc/GMT+12", | |
"rails_timezone": "International Date Line West", | |
"tzinfo_identifier": "Etc/GMT+12" | |
}, | |
{ | |
"label": "(UTC-11:00) Pacific/Pago_Pago", | |
"rails_timezone": "American Samoa", | |
"tzinfo_identifier": "Pacific/Pago_Pago" |
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 { | |
useCallback, | |
useState, | |
} from "react"; | |
import { | |
Button, | |
Checkbox, | |
Collapsible, | |
Icon, | |
Modal, |
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
setTimeout(() => console.log(1), 100) | |
setTimeout(() => console.log(2), 0) | |
Promise.resolve(42).then(() => { | |
console.log(3); | |
setTimeout(() => console.log(4), 50); | |
}) | |
.then(() => Promise.reject(new Error(22))) | |
.then(() => console.log(5)) | |
.catch((e) => console.log(6, e.message)) |
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 *foo(x) { | |
while (x < 4) { | |
x += yield x; | |
} | |
return x; | |
} | |
var bar = foo(3); | |
console.log( bar.next(1) ); | |
console.log( bar.next(1) ); | |
console.log( bar.next(1) ); |
NewerOlder