Skip to content

Instantly share code, notes, and snippets.

View andygebert's full-sized avatar

Andy andygebert

  • eMotions media solutions gmbh
  • Zurich, Switzerland
View GitHub Profile
@chengkiang
chengkiang / paynow.js
Last active May 7, 2024 08:39
SG PayNow QR Code Generator Sample
String.prototype.padLeft = function (n, str) {
if (n < String(this).length) {
return this.toString();
}
else {
return Array(n - String(this).length + 1).join(str || '0') + this;
}
}
function crc16(s) {