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
// Cleaned up version of script from https://www.tunemymusic.com/ | |
// to transfer from Google Play Music to Spotify | |
// with the ability to break at some point since | |
// I was going through the entire songs list | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)) | |
} | |
function demo() { |
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
Array.from(document.querySelectorAll('.emoji_row')).reduce((a, b) => a.concat({img: b.querySelector('.emoji-wrapper').dataset.original, name: b.querySelector('[headers="custom_emoji_name"]').innerText.replace(/:/g, '')}), []) |
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
#!/usr/bin/env bash | |
# | |
# This script replaces "ro.debuggable=1" with "ro.debuggable=0" in the | |
# default.prop file in a ROM's boot.img and gives you the patched boot.img. | |
# | |
# Prerequisites: | |
# - A UNIX system (with `unzip`) | |
# - These tools added to your PATH: | |
# - Android dev tools (adb/fastboot) | |
# - Various tools in "bootimg_tools_7.8.13.zip" from https://goo.gl/48Sszu |
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
ldpi = 75% | |
mdpi = 100% | |
hdpi = 150% | |
xhdpi = 200% | |
xxhdpi = 300% | |
xxxhdpi = 400% |
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
1. ID, e.g. #headerClass | |
2. Class e.g. .promoType | |
3. Type e.g. div | |
4. Adjacent sibling, e.g. h2 + p | |
5. Child, e.g. li > ul | |
6. Descendant, e.g. ul a | |
7. Universal, i.e. * | |
8. Attribute, e.g. [type="text"] | |
9. Pseudo-classes/-elements, e.g. a:hover |