This file contains hidden or 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
#!/bin/bash | |
DIRNAME=${1:-.} | |
cd $DIRNAME | |
source ~/.bashrc | |
FILES=$(mktemp) | |
PACKAGES=$(mktemp) | |
find . \ |
This file contains hidden or 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
from pycrc.algorithms import Crc | |
def generate_qr_string(uen, is_uen, company_name, transaction_id, amount, editable, expiry): | |
merchant_values = [ | |
'00' + str(len('SG.PAYNOW')).zfill(2) + 'SG.PAYNOW', | |
'01' + str(len(is_uen)).zfill(2) + is_uen, # 0 for mobile, 2 for UEN | |
'02' + str(len(uen)).zfill(2) + uen, # uen / mobile number | |
'03' + str(len(editable)).zfill(2) + editable, # 1 = editable, 0 = not editable | |
'04' + str(len(expiry)).zfill(2) + expiry, # YYYYMMDD |
This file contains hidden or 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
{ | |
"meta": { | |
"theme": "elegant" | |
}, | |
"basics": { | |
"name": "Tze Ming Phang", | |
"label": "Penultimate Year Information Systems Undergraduate at NUS", | |
"picture": "https://media-exp1.licdn.com/dms/image/C5103AQHz1ldvvKt9bg/profile-displayphoto-shrink_200_200/0/1573826559388?e=1615420800&v=beta&t=W45y67R-2-YR1bRgOoKu8RHm8faessIjEgxaovT9K78", | |
"email": "[email protected]", | |
"phone": "+65 9632 4725", |