Skip to content

Instantly share code, notes, and snippets.

View alexbnlee's full-sized avatar
🎯
Focusing

Alex Li alexbnlee

🎯
Focusing
View GitHub Profile
@alexbnlee
alexbnlee / uk-bounding-box.geojson
Last active November 14, 2019 09:24
Longitude and latitude bounding box around the UK
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexbnlee
alexbnlee / usa-bounding-box.geojson
Created November 14, 2019 09:02
Longitude and latitude bounding box around USA
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexbnlee
alexbnlee / aus-bounding-box.geojson
Created November 14, 2019 08:57
Longitude and latitude bounding box around AUS
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
article = '''
Asian shares skidded on Tuesday after a rout in tech stocks put Wall Street to the sword, while a
sharp drop in oil prices and political risks in Europe pushed the dollar to 16-month highs as investors dumped
riskier assets. MSCI’s broadest index of Asia-Pacific shares outside Japan dropped 1.7 percent to a 1-1/2
week trough, with Australian shares sinking 1.6 percent. Japan’s Nikkei dived 3.1 percent led by losses in
electric machinery makers and suppliers of Apple’s iphone parts. Sterling fell to $1.286 after three straight
sessions of losses took it to the lowest since Nov.1 as there were still considerable unresolved issues with the
European Union over Brexit, British Prime Minister Theresa May said on Monday.'''
import nltk
article = '''
Asian shares skidded on Tuesday after a rout in tech stocks put Wall Street to the sword, while a
sharp drop in oil prices and political risks in Europe pushed the dollar to 16-month highs as investors dumped
riskier assets. MSCI’s broadest index of Asia-Pacific shares outside Japan dropped 1.7 percent to a 1-1/2
week trough, with Australian shares sinking 1.6 percent. Japan’s Nikkei dived 3.1 percent led by losses in
electric machinery makers and suppliers of Apple’s iphone parts. Sterling fell to $1.286 after three straight
sessions of losses took it to the lowest since Nov.1 as there were still considerable unresolved issues with the
European Union over Brexit, British Prime Minister Theresa May said on Monday.'''
import nltk
article = '''
Asian shares skidded on Tuesday after a rout in tech stocks put Wall Street to the sword, while a
sharp drop in oil prices and political risks in Europe pushed the dollar to 16-month highs as investors dumped
riskier assets. MSCI’s broadest index of Asia-Pacific shares outside Japan dropped 1.7 percent to a 1-1/2
week trough, with Australian shares sinking 1.6 percent. Japan’s Nikkei dived 3.1 percent led by losses in
electric machinery makers and suppliers of Apple’s iphone parts. Sterling fell to $1.286 after three straight
sessions of losses took it to the lowest since Nov.1 as there were still considerable unresolved issues with the
European Union over Brexit, British Prime Minister Theresa May said on Monday.'''
import nltk
@alexbnlee
alexbnlee / config-highlight.def
Last active July 13, 2018 07:14
Dark highlighting theme for Python IDLE based on SublimeText's Monokai color scheme and I changed a little
# Place this file inside your ~/python/idlelib/config-highlight.def
# Adapted from SublimeText's Monokai and I changed a little
[IDLE Monokai-Alex]
comment-foreground = #797979
console-foreground = #00FFFF
error-foreground = #FF80FF
hilite-background = #C0C0C0
string-foreground = #FFFF00
stderr-background = #2E2E2E