Skip to content

Instantly share code, notes, and snippets.

View khuyentran1401's full-sized avatar
🏠
Working from home

Khuyen Tran khuyentran1401

🏠
Working from home
View GitHub Profile
@khuyentran1401
khuyentran1401 / web-scrapping-indeed-with-beautifulsoup.ipynb
Last active December 12, 2019 22:45
Web scrapping Indeed with BeautifulSoup
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@khuyentran1401
khuyentran1401 / web-scrapping-indeed-with-beautifulsoup.ipynb
Last active December 16, 2019 22:30
Web scrapping Indeed with BeautifulSoup
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@khuyentran1401
khuyentran1401 / solve-a-project-selection-problem-with-mip.ipynb
Created December 23, 2019 15:54
Solve a project selection problem with MIP.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
pip install mip==1.4.2
from mip.model import *
"""* c[i] is the return of each stock
* a[t][i] is the investment of each stock for year t
* b[t] is the total investment limit each year
with i = 0, 1, 2, 3, 4;
> t = 0, 1, 2
@khuyentran1401
khuyentran1401 / scheduling-problem-with-mip.ipynb
Created December 24, 2019 17:49
Scheduling problem with MIP.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Find the publish date
article.publish_date
article.parse()
text = article.text
article.top_image
# Find the publish date
article.publish_date
article.parse()
text = article.text
article.top_image
import nltk
nltk.download()
from nltk.tokenize import RegexpTokenizer
tokenizer = RegexpTokenizer(r'\w+')
text = tokenizer.tokenize(text)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.