This file contains 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
news.ycombinator.com##body:style(color: #CCCCCC !important; background-color: #1A1A1A !important; ) | |
news.ycombinator.com##table:style(background-color: #2B2B2B !important; ) | |
news.ycombinator.com##input:style(background-color: #DFDFDF !important; ) | |
news.ycombinator.com##table, tr, td, .pagetop, .score:style(color: #CCCCCC !important; ) | |
news.ycombinator.com##td:style(border: 1px solid #2B2B2B !important; background-color: #2B2B2B !important; ) | |
news.ycombinator.com##b:style(color: inherit !important; ) | |
news.ycombinator.com##a, .c00:style(color: #eee !important; ) | |
news.ycombinator.com##.c00 a:style(color: rgb(49, 140, 212) !important; ) | |
news.ycombinator.com##.comhead, .subtext:style(color: #828282 !important; ) | |
news.ycombinator.com##.comhead > a, .subtext > a:style(color: orange !important; ) |
This file contains 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
const isValidSongContent = (req, res, next) => { | |
const rules = [ | |
{ | |
name: "songTitle", | |
validation: (value) => value.trim().length > 0, | |
error: "Title content must be at least one character long.", | |
}, | |
{ | |
name: "songArtist", | |
validation: (value) => value.trim().length > 0, |
This file contains 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
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-blockid { | |
visibility: hidden; | |
} | |
.cm-blockid::first-letter | |
{ | |
visibility: visible; | |
font-weight: 800; | |
} |
This file contains 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
<%* | |
const IDX = Object.freeze({"depth":0, "text":1, "parent":2, "size":3, "children": 4, "objectId":5}); | |
//check if an editor is the active view | |
const editor = this.app.workspace.activeLeaf?.view?.editor; | |
if(!editor) return; | |
//initialize the tree with the title of the document as the first element | |
let tree = [[0,this.app.workspace.activeLeaf?.view?.getDisplayText(),-1,0,[],0]]; | |
const linecount = editor.lineCount(); |
Instal sof-firmware
as described in Arch Linux Wiki:
sudo pacman -S sof-firmware
Configure PulseAudio to load Alsa modules with the correct device and channel settings, by adding these two lines to /etc/pulse/default.pa
:
This file contains 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
const colors = [ | |
{ | |
color: 'red', | |
value: '#f00', | |
}, | |
{ | |
color: 'green', | |
value: '#0f0', | |
}, | |
{ |
Design Systems 101 Materials & Supplies
The intention for this course’s materials is to be as cost-free and opt-in as possible. You’ll need the ability to design user interfaces and write code, but your choice of hardware and software is up to you.
Expressive Design Systems By Yesenia Perez-Cruz
%title: Command Line Productivity %author: @onlurking %date: 2020-07-24
-> # Terminal <-
a.k.a. terminal emulator.
It's a program that opens a window and lets you interact with the shell. There are a bunch of
NewerOlder