These are custom settings for the VSCode extension Mark Jump
You'll be able to organize your code files in sections and easy jump to either of them :
- MARKS
- TODO / FIX
- NOTE
Just place your sections in comments and respect format below.
# To get file | |
adb pull <PATH/TO/FILE/ON/DEVICE> | |
# To push file | |
adb push <PATH/TO/FILE> <PATH/TO/DESTINATION> | |
# To get wifi MAC address | |
adb shell cat /sys/class/net/wlan0/address | |
# To get IP Address |
These are custom settings for the VSCode extension Mark Jump
You'll be able to organize your code files in sections and easy jump to either of them :
Just place your sections in comments and respect format below.
<div class="canvas"> | |
<div id="totalCounter" class="total-counter"></div> | |
<div id="clap" class="clap-container"> | |
<i class="clap-icon fa fa-hand-paper-o"></i> | |
</div> | |
<div id="clicker" class="click-counter"> | |
<span class="counter"></span> | |
</div> |
<!-- for usage details visit https://bit.ly/31PSv6d --> | |
{{ $font := .Get "font" }} | |
{{ $size := .Get "size" }} | |
{{ $style := .Get "style" | default "normal" }} | |
{{ $weight := .Get "weight" | default "normal" }} | |
<link href="https://fonts.googleapis.com/css?family={{ $font }}" rel="stylesheet" type="text/css"> | |
<div style="font-family:'{{ $font }}'; font-size:{{ $size }}; font-style:{{ $style}}; font-weight:{{ $weight }}"> | |
{{- .Inner -}} | |
</div> |
Open console and run this for 0px
width ads. (ads still working, adjust width size to suite your need)
document.querySelector("body > div.flexrow.app > div:nth-child(2)").setAttribute('style','max-width:0px')
document.querySelector("body > div.flexrow.app > div").setAttribute('style','width:100%')
document.querySelector("body > div.flexrow.app > div > div.flexrow > div.panelblock.mainblock").setAttribute('style','width:100%')
const style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.fixme { min-width:fit-content;overflow:unset; }';
document.querySelector("body > div.flexrow.app > div:nth-child(1) > div.flexrow").appendChild(style)
Netlify CMS comes with several built-in widgets to define the data type and interface for entry fields. This is an overview of additional widgets created by the community. Please feel free to add your custom widget to the list.
widget | description | demo |
---|---|---|
netlify-cms-widget-uuid-v4 | UUID widget to safely link between items | |
@ncwidgets/id | Generate a unique ID for new entries in a folder collection | demo |
@ncwidgets/reorder | custom ordering of a referenced collection | demo |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
const channels = [...document.querySelectorAll("#main-link.channel-link")].map(e => { | |
const [, a, b] = e.href.match("/((?:user)|(?:channel))/(.*)$"); | |
const feed = "https://www.youtube.com/feeds/videos.xml?" + (a === "user" ? "user=" : "channel_id=") + b; | |
const channelName = e.querySelector("yt-formatted-string.ytd-channel-name").innerText; | |
return [feed, channelName]; | |
}); | |
if (channels.length == 0) { | |
alert("Couldn't find any subscriptions"); | |
} else { | |
console.log(channels.map(([feed, _]) => feed).join("\n")); |