Skip to content

Instantly share code, notes, and snippets.

View NP-chaonay's full-sized avatar
🎆
HNY 2025 and been RICKROLL

Nuttapong Punpipat NP-chaonay

🎆
HNY 2025 and been RICKROLL
View GitHub Profile
@NP-chaonay
NP-chaonay / ThaiLotteryChecker.py
Last active June 9, 2020 14:24
Thailand government lottery's prize result retriever in Python.
#!/usr/bin/env python3
# Name : Thailand Government Lottery's Prize Checker Program
# Description : Checking Thailand government lottery's prize by the processing of host server and get the data for processing using this program.
# Author : Nuttapong Punpipat (NP-chaonay)
# License : MIT License
# Language : Thai
# Version / Last Programmed : V.1.0 12/03/20 16:30 (UTC)
import http.client,sys
try:
@NP-chaonay
NP-chaonay / pymusicnote.py
Last active September 8, 2020 14:47
(~66% completed) Musical Notation implementation on Pythons as standalone module.
### [NOTICE:CODE_MOVING] This module will be merged into package "np_chaonay".
# This Gist will be deleted after 1 month of "np_chaonay.pymusicnote" release,
# AND after 1 years of this annoucement's publishing.
# However, this Gist is continue receiving updates, then it will be stopped
# after "np_chaonay.pymusicnote" is released.
"""
Musical Notation implementation on Pythons.
Constant :
@NP-chaonay
NP-chaonay / user_oom.py
Last active April 24, 2020 16:33
My simple implementation of Out-of-memory mechanism for Linux.
#!/usr/bin/python3
import glob,os,time,sys
import pandas as pd
# Program parameters
CHECKING_DELAY_TIME=20
LOW_MEM_ENSURE_DELAY_TIME=10
SIGTERM_DELAY_TIME=20
SYS_UNDERLOADING_DELAY_TIME=10
LOW_MEM_THRESHOLD_KIB=100000
@NP-chaonay
NP-chaonay / MusicalCompositionFeaturesClassification-Part1
Last active May 16, 2020 09:02
My 1st beginning DS/ML experiment with the music.
############################################################################
# Muscial Composition Features Classification - Part 1 #
############################################################################
###### General Notice ######
+ Author : Nuttapong Punpipat (NP-chaonay)
+ Updated On : 2020_05_16 16:03 (UTC)
+ General Updating Frequency : Weekly
+ Code Snippet Completeness : about 30%
+ Stability : <Beta