- Ubuntu 21.04
- Intel Core 2 Duo T6400
- 4 GB DDR2 RAM
- 500 GB SATA1 HDD
This video by ThePrimeagen sent me on a fun archaeology trip.
The case to solve: Why is the following statement true? why is an empty string parsed as a number in JS?
Number("") === 0How to reset everything Docker when stuff is seriously broken.
Source: https://stackoverflow.com/a/72296103/9208523
sudo systemctl stop docker
sudo rm -rf /var/lib/docker
sudo systemctl start docker
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
| import { computed, useAttrs } from "vue"; | |
| export function useBindAttrs() { | |
| const attrs = useAttrs(); | |
| const rootAttrs = computed(() => ({ | |
| class: attrs.class, | |
| style: attrs.style, | |
| })); |
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
| javascript:(function(){ | |
| document.querySelectorAll(`link[rel="stylesheet"], style`).forEach((element) => element.remove()); | |
| document.querySelectorAll(`*`).forEach((element) => element.removeAttribute(`style`)); | |
| })(); |
OlderNewer