Warning
This is a rather old guide and may or may not work with modern versions of Android.
- Boot into TWRP
- Connect device to computer
- Terminal: List devices with
adb devices
javascript:(function(){ | |
document.querySelectorAll(`link[rel="stylesheet"], style`).forEach((element) => element.remove()); | |
document.querySelectorAll(`*`).forEach((element) => element.removeAttribute(`style`)); | |
})(); |
// Modern browsers have support for the CSS clamp function: | |
// https://developer.mozilla.org/en-US/docs/Web/CSS/clamp() | |
// Source: https://css-tricks.com/snippets/css/fluid-typography/ | |
@mixin fluid-type($min-font-size, $max-font-size, $min-vw: $breakpoint-min, $max-vw: $breakpoint-max) { | |
$u1: unit($min-vw); | |
$u2: unit($max-vw); | |
$u3: unit($min-font-size); | |
$u4: unit($max-font-size); |
import { computed, useAttrs } from "vue"; | |
export function useBindAttrs() { | |
const attrs = useAttrs(); | |
const rootAttrs = computed(() => ({ | |
class: attrs.class, | |
style: attrs.style, | |
})); |
How 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 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("") === 0
/** | |
* Copy into dev tools console and hit enter. | |
* It may take a while and the page will be blocked while the script is running. | |
* | |
* Source: | |
* https://twitter.com/ChrisFerdinandi/status/1417947102731190277 | |
* https://twitter.com/ChrisFerdinandi/status/1417947104111104002 | |
*/ | |
let checked = document.querySelectorAll('input:checked') |
/** | |
* Fontsource makes open source fonts available on npm. | |
* https://github.com/fontsource/fontsource | |
*/ | |
@use "@fontsource/font-name/scss/mixins" as font-name; | |
@include font-name.fontFace( | |
$weight: 400, | |
$style: normal, |