cssclass |
---|
cornell-note |
The Cornell Note-taking System is a popular and effective method for organizing and summarizing information during lectures, readings, or any other form of learning.
These are modern “Emulated Devices” (a.k.a. responsive dimensions) for Chrome DevTools’ Mobile Device Viewport Mode.
They are specifically Apple devices, subtracting for recent Safari UI (as in window.innerWidth
/Height
), and cleverly sorted with some dark-arts unicode shenanigans. (This glitchy, unloved portion of the tools sorts lexicographically, because of course it would.) Ergonomics!
Nest Hub Max? Come on. I dropped a bunch of devices that were older and/or close to these dimensions. It obviously doesn’t cover everything (sorry Android/Chrome), but offers a decent spread/increments for common 2023/2024 viewports.
var printBacktrace = function () { | |
Java.perform(function() { | |
var JLog = Java.use('android.util.Log'), JException = Java.use('java.lang.Exception'); | |
console.warn("Call Stack:"); | |
console.warn(JLog.getStackTraceString(JException.$new())); | |
}); | |
}; | |
Java.perform(function() { | |
var targetClass = Java.use("at.asitplus.utils.deviceintegrity.DeviceIntegrityCheck"); |
Custom checkboxes for Obsidian! It's like deathau's snippet except updated to work really well in Live Preview mode in Obsidian 1.0.
Simply edit the x
inside checkboxes to >
, ?
, etc. to see styling like below!
Editing | Live Preview | Viewing |
---|---|---|
![]() |
![]() |
![]() |
Installation:
checkbox.css
file on this pagejavascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
## Morning Opertures | |
alias whatsup='service --status-all' | |
alias hello='sudo /etc/init.d/apache2 stop && cd workspace/project && ddev start && ddev launch' | |
alias hi='sudo systemctl stop apache2' | |
alias iad='systemctl is-active docker' | |
alias ports='nmap localhost' | |
alias dns="sudo systemd-resolve --status | grep 'DNS Servers'" | |
alias bye='shutdown -r now' | |
## Usual Instructions |
" plugins | |
call plug#begin('~/.vim/plugged') | |
" themes & ui | |
Plug 'dracula/vim', { 'as': 'dracula' } | |
Plug 'scrooloose/nerdtree', { 'on': [ 'NERDTree', 'NERDTreeFind', 'NERDTreeToggle' ] } | |
Plug 'Xuyuanp/nerdtree-git-plugin', { 'on': [ 'NERDTree', 'NERDTreeFind', 'NERDTreeToggle' ] } | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'mhinz/vim-signify' | |
Plug 'vim-airline/vim-airline' |
Inspired by parmentf/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
// Country list source: https://www.dhl.com/en/country_profile.html#.XwODEJNKjOQ | |
// Country abbreviation source: https://planetarynames.wr.usgs.gov/Abbreviations | |
// Postal code: https://gist.githubusercontent.com/jamesbar2/1c677c22df8f21e869cca7e439fc3f5b/raw/21662445653ac861f8ab81caa8cfaee3185aed15/postal-codes.json | |
// Postal code: https://en.wikipedia.org/wiki/List_of_postal_codes | |
// Country/territory items with no postal code regexes or ranges either do not require postal codes | |
// or there may not be enough information for that country/territory | |
export const COUNTRY_ADDRESS_POSTALS = [{ | |
abbrev: 'AF', |