Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pipech
pipech / Dockerfile
Created November 30, 2018 09:39
ERPNext Docker Debian - Without easy install
FROM debian:9.6-slim
ENV systemUser=frappe \
# locale
LANGUAGE=English \
LC_ALL=en_US.UTF-8 \
LC_CTYPE=en_US.UTF-8 \
LANG=en_US.UTF-8 \
# package version
nodejsVersion=8
@pipech
pipech / check_tax_id.py
Created August 1, 2018 15:39
ตรวจสอบ เลข บัตรประจำตัวประชาชน python
def check_tax_id(id):
if len(id) != 13:
return False
# ขั้นตอนที่ 1 - เอาเลข 12 หลักมา แยกเป็น list
# หลักที่ 13 ใช้ตรวจสอบผลลัพธ์
list_id = list(id)
sum = 0