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, |
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-blockid { | |
visibility: hidden; | |
} | |
.cm-blockid::first-letter | |
{ | |
visibility: visible; | |
font-weight: 800; | |
} |
<%* | |
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
:
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
By Phillip G. Armour
Communications of the ACM, October 2000, Vol. 43 No. 10, Pages 17-20
10.1145/352183.352194
In my first column (Aug. 2000, p. 19), I argued that software is not a product, but rather a medium for the storage of knowledge. In fact, it is the fifth such medium that has existed since the beginning of time. The other knowledge storage media being, in historical order: DNA, brains, hardware, and books. The reason software has become the storage medium of choice is that knowledge in software has been made active. It has escaped the confinement and volatility of knowledge in brains; it avoids the passivity of knowledge in books; it has the flexibility and speed of change missing from knowledge in DNA or hardware.
If software is not a product, then what is the product of our efforts to produce software? It is the knowledge contained in the software. It's rather easy to produce software. It's much more difficult to produce software that works, because we ha