Skip to content

Instantly share code, notes, and snippets.

View spidezad's full-sized avatar

Tan Kok Hua spidezad

  • Seagate Technology
View GitHub Profile
@spidezad
spidezad / gist:dffb1cecf1e550d73b6d
Created November 30, 2014 14:41
Kill a program in windows
os.system("TASKKILL /F /IM xxx.exe")
@spidezad
spidezad / GIT commands help
Last active December 14, 2015 04:48
GIT commands links
http://www.siteground.com/tutorials/git/commands.htm
@spidezad
spidezad / GUI automation for windows
Created March 2, 2013 14:35
GUI automation for windows
http://code.google.com/p/swapy/
@spidezad
spidezad / Counting Sort.ipynb
Created November 15, 2018 06:02
Counting Sort Algo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spidezad
spidezad / get_html_links.py
Created November 25, 2018 15:26
Get all html links with Requests and BeautifulSoup
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.
CMD + SHIFT + .
@spidezad
spidezad / gist:66d8b0080710b36312a1d23fb95436e9
Created April 15, 2019 07:59
Pandas encountered questions
Why does Seaborn keep drawing non-existing range value on the x-axis?
https://stackoverflow.com/questions/45264089/why-does-seaborn-keep-drawing-non-existing-range-value-on-the-x-axis
There is problem range column is categorical, so categories are not removed by design like in another operations.
You need Series.cat.remove_unused_categories:
@spidezad
spidezad / basic_import.py
Created April 15, 2019 13:08
basic working import for data
import os, sys, datetime, re, math
import pandas as pd
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt