Skip to content

Instantly share code, notes, and snippets.

@ralfbecher
ralfbecher / dateFromQlikNumber.js
Last active March 30, 2019 17:24
JavaScript function to create a Date from QlikView or Qlik Sense numerical Date value
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;
}
@pwittchen
pwittchen / start-stop-server-in-background.sh
Created September 23, 2015 10:42
Starting and stopping simple HTTP server in background on Linux. After starting server and closing terminal, server should keep running
# 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`
@mindspank
mindspank / QMC - Hidden Stream Access Rule
Created October 24, 2014 17:46
Give access to apps and objects that are placed in a hidden stream
Resource filters: App*,App_*
Conditions: ((resource.resourcetype = "App" and resource.stream.name="<Your Stream Name>")) or ((resource.resourcetype = "App.Object" and resource.published ="true"))