This file contains hidden or 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
// Go to "Add Timesheet" and copy-paste this on your browser console. Sit back and have a Cup<T> ;) | |
const timeout = time => new Promise(res => setTimeout(res, time)); | |
const triggerChange = el => el.dispatchEvent(new Event("change")); | |
const DELAY = 2 * 1000; | |
const WEEKDAYS = { | |
SUNDAY: 0, | |
MONDAY: 1, |
This file contains hidden or 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
data:image/gif;base64,R0lGODlhTwEaAfZAAD4OJp6GUs6OTqiogr7CdnZGNt7Ohqp+Xq5GFqKiiHIWFrZmNsaaZp6eiO7SdqhWMZIuJuq6alYmGoJiXuaeYrqubm4aIqI2FlY6QrKWYs5qMnomGpZuTuKCOopaQoI+OrxWL24yLq52StamWraGPuqSSpZiPopONoIeIZZCHrZILY4qFu6qVs52Qk4OFqpeRqKKZqhGLXZORpZ2XsrKerKKVlYqLraiXs62cubGZvLefqI6Jk4SJqiohq+uhrGygLq+dp2ahcbEfqeegLa2fsK9f66ufraucpKSjpqair6+epaWjKKei8izc5qWibCme6+ifry2haKbhMKudrm6fMrGeqiif6qugKqierKqdbuqeqSac5aSjI6OjraqhbaoebyyicO2htPFhq+oic7ChtnKhbCfYuDCZq6egqeiisq+huLSgpqRgJyWfdm+bbuug+7cfsq2fqaejKqba8KygubKdtW5a96+auDGeKKWd7CaeNrCeubWgM6iXt62bgAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBwBAACwAAAAATwEaAQAH/4ACgiQtAoSCiImDLQeMIo+QjykfJycPL5iRjy2HioIjFKChJCYPHh6Ypx8hrK0brpSssZaZtZiXMQ+5likxJ5O9H8G6l7aSr5QcqZWnB87PGTXSGQzV1DfT2dU4DNzWATPg2dOEIoWLHenqIAgrvS+FFBEU3gGQnyMR8/oROPXP4QICfBRQhEBIzxBqSuhMQMMajCI6UygwoLJMCyNZnDFBmcePDwwV6uRJUKOTEh/VqjQJF8ZN5sxFLDmiWo0XzCqxsiChp42fyGS1WjWL1ssFSG3l8rVU2NJiLw/gfJXiRcJTzaIxnGatKzZt23CE+iYOxjiHEQup7SCA7boU7v/enRtL4lHdutXGiqVAbWtFSOEMCvbLMOM9lA9jOgJsEeQMq5AhZXq8kYPFyFYZLTpXEu1JlbdYUsplDK |
This file contains hidden or 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
Use in shell-scripts | |
The env utility is often used as the interpreter on the first line of interpreted scripts, as described in execve(2). | |
Note that the ‘#!’ (first line) of an interpreted script is parsed differently on Darwin than it is on many other common systems. The first line will be split into | |
separate arguments based on any whitespace (space or ⟨tab⟩ characters) found in the line. So, if a script named /usr/local/bin/someport has a first line of: | |
#!/usr/local/bin/php -n -q -dsafe_mode=0 | |
then the /usr/local/bin/php program will be started with the arguments of: |
PROMPT:
You are inside the early prototype source code for Remix v3's `@remix-run/dom` package, which ditches React but still has a JSX-based custom approach to creating full-stack apps. I'm only interested in the client-side story. Can you dig through the source code and answer the following questions:
1. Does the new Remix use a VDOM? How is it different from React's VDOM?
2. When a component using `@remix-run/dom` component calls `this.update()`, what happens?