-
visual studio code – how to insert current date time in vscode? – Stack Overflow
“Insert Date String extension.
Usage
To insert current date and/or time at the cursor position you can:
Press ⇧+⌘+I (OS X) or Ctrl+Shift+I (Windows and Linux”
-
node.js – Wait for mongodb to be ready before starting pm2 process on reboot – Stack Overflow
“the solution I finally found was to have pm2 also start mongodb.”
pré: servicectl disable mongodb-
#!/bin/bash sudo mongod
-
pm2 start ~/mongod.sh pm2 start npm
-
pm2 save pm2 unstartup pm2 startup
-
Mês: fevereiro 2019
Update (weekly)
-
“Displays an element as an inline-level block container. The element itself is formatted as an inline element, but you can apply height and width values”
Update (weekly)
-
node.js – Renewing/Refreshing Express Session – Stack Overflow
“saveUninitialized: true,
resave: true,
maxAge: 20000” -
node.js – Mongoose aggregation sort dynamically – Stack Overflow
“var sortOperator = { “$sort”: { } },
groupOperator = {
“$group”: {
“_id”: “$workplace”,
“avgTemperature”: { “$avg”: “$temperature” },
“avgNoise”: { “$avg”: “$noise” }
}
},
sort = “avgTemperature”; // <– dynamic querysortOperator["$sort"][sort] = 1; // <– create sort operator using bracket notation
Measurement.aggregate([ groupOperator, sortOperator ])
.exec(callback);
" -
openoffice – Open Office Calc: Convert a date to timestamp – Super User
“=(C2 – DATEVALUE(“1/1/1970″))*86400”
Update (weekly)
-
UbuntuTime – Community Help Wiki
“sudo dpkg-reconfigure tzdata
Follow the directions in the terminal.
The timezone info is saved in /etc/timezone “ -
”
$( function() {
$( document ).tooltip();
} );” -
angularjs – jQuery-UI – “Cannot read property ‘step’ of undefined” – Stack Overflow
“Based on the error message it looks like you’re using jQuery Slim (from at each (jquery-3.1.1.slim.js:368)). Slim removes some functions required in jQuery UI apparently. To fix this, use the full version of jQuery.”
-
html – Date input not working in firefox – Stack Overflow
”
if (!Modernizr.inputtypes.date) {
$(‘input[type=date]’).datepicker({
dateFormat : ‘yy-mm-dd’
}
);
}” -
[SOLVED] Left click moves scroll bar to where you click
“to have [Settings] as the first line and gtk-primary-button-warps-slider=false on a subsequent line by itself. This works in most gtk3 applications but is said not to work in some. Alternatively, right-click instead of left-clicking works in all applications. And, if you want legacy scrolling system-wide, sudo edit /etc/gtk-3.0/settings.ini.”
-
javascript – How to force JS to do math instead of putting two strings together – Stack Overflow
“to convert it to an int change the line to:
dots = parseInt(document.getElementById(“txt”)”