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
function dateFromQlikNumber(n) { | |
var d = new Date(Math.round((n - 25569) * 86400000)); | |
// since date was created in UTC shift it to the local timezone | |
d.setTime(d.getTime() + d.getTimezoneOffset() * 60000); | |
return d; | |
} |
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
# starting simple HTTP server with Python in background | |
screen -d -m python -m SimpleHTTPServer 7777 | |
# killing process running with screen in background | |
kill -9 `top -n 1 | pgrep screen` |