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
| import os | |
| import time | |
| import string | |
| import pickle | |
| from operator import itemgetter | |
| from nltk.corpus import stopwords as sw | |
| from nltk.corpus import wordnet as wn | |
| from nltk import wordpunct_tokenize |
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
| กระบี่,กบ,KBI | |
| กรุงเทพมหานคร,กทม,BKK | |
| กาญจนบุรี,กจ,KRI | |
| กาฬสินธุ์,กส,KSN | |
| กำแพงเพชร,กพ,KPT | |
| ขอนแก่น,ขก,KKN | |
| จันทบุรี,จบ,CTI | |
| ฉะเชิงเทรา,ฉช,CCO | |
| ชลบุรี,ชบ,CBI | |
| ชัยนาท,ชน,CNT |
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
| hudson.model.Hudson.instance.getView('<VIEW>').items.each() { | |
| println it.fullDisplayName | |
| } |
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
| import Image | |
| im = Image.open('image.jpg') | |
| # using Image.ADAPTIVE to avoid dithering | |
| out = im.convert('P', palette=Image.ADAPTIVE, colors=5) |
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
| backlog = 2048 | |
| daemon = False | |
| debug = True | |
| workers = 3 | |
| logfile = "/usr/local/www/lolnet.org/reader/reader.gunicorn.log" | |
| loglevel = "info" | |
| bind = "unix:/usr/local/www/lolnet.org/reader/reader.gunicorn.sock" |
NewerOlder