querySelector hidden or not hidden
Vanilla javascript: // select hidden document.querySelector('tr[hidden]'); // select not hidden document.querySelector('tr:not([hidden])');
Vanilla javascript: // select hidden document.querySelector('tr[hidden]'); // select not hidden document.querySelector('tr:not([hidden])');
Commit the changes git commit -m "updating message" Stash git stash then merge: git stash pop Discard the local changes git reset --hard or git checkout -t -f remote/branch For spacific file...
function getDonutChart(chartDiv) { let innerRadius = 30; let outerRadius = 44; const arc = d3.arc() .innerRadius(innerRadius) .outerRadius(outerRadius) .cornerRadius(60)...
If day is 0, it will return the last day of last month. function getDays(year, month) { return new Date(year, month, 0).getDate(); }
Syntax The slice() method is a copying method. It does not alter this but instead returns a shallow copy that contains some of the same elements as the ones from the original array. slice() slice(...
document.querySelector('#selectTag').length
The intent of Java when releasing Optional was to use it as a return type The practice of using Optional as a method parameter is even discouraged by some code inspectors. public staic List<...
Function argument list (myFunction(a, ...iterableObj, b)) Array literals ([1, ...iterableObj, '4', 'five', 6]) Object literals ({...obj, key: 'value'}) Replace apply() function myFunction(x, ...
Columns build on the grid’s flexbox architecture. Flexbox means we have options for changing individual columns and modifying groups of columns at the row level. You choose how columns grow, shrink...
List all rules sudo ufw status numbered Remove Rule sudo ufw delete [the number of the rule] Allow all from some port sudo ufw allow [the port]