Skip to content

Instantly share code, notes, and snippets.

View callmewhy's full-sized avatar
🐒

Haiyang Wang callmewhy

🐒
  • Singapore
View GitHub Profile
### Keybase proof
I hereby claim:
* I am callmewhy on github.
* I am callmewhy (https://keybase.io/callmewhy) on keybase.
* I have a public key whose fingerprint is C950 F8F1 8796 771C 8703 6E8E BDFD 2BBE B500 1F06
To claim this, I am signing this object:
@callmewhy
callmewhy / advanced-phabricator-workboard.js
Last active May 19, 2017 08:25
make Phabricator great again
// ==UserScript==
// @name Phabricator
// @namespace http://advance.ai/
// @version 0.1
// @description make phabricator great again
// @author callmewhy
// @match https://go.advance.ai/project/view/*
// @require https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
@callmewhy
callmewhy / test_pep8.py
Last active September 22, 2016 15:27 — forked from swenson/test_pep8.py
Test for running PEP8 against all Python files. Useful to hook up to nose and as part of your CI.I modify PEP8 in two ways by default: don't enforce 4-spacing (I prefer 2-spacing), and use 100 for the default line length, because we don't use 80-column punch cards anymore.Licensed under CC0 (public domain): do what you want. http://creativecommo…
import os
import os.path
import unittest
import pep8
ignore_patterns = ('.git',)
def ignore(check_dir):
for pattern in ignore_patterns:
@callmewhy
callmewhy / defer.py
Last active May 27, 2016 06:50 — forked from cliffxuan/defer.py
wxPython non blocking gui with long running task and timeout
import threading
import Queue
import wx
def run(function,
args=None,
timeout=None,
finish_function=None,
@callmewhy
callmewhy / 000001-上证指数-2000-2015.csv
Created March 17, 2016 07:03
000001-上证指数 2000年~2015年每日数据
date open high close low volume amount
2000-01-04 1368.693 1407.518 1406.371 1361.214 903402300 5801550000
2000-01-05 1407.829 1433.78 1409.682 1398.323 1057998400 8653075000
2000-01-06 1406.036 1463.955 1463.942 1400.253 1348051500 10238351000
2000-01-07 1477.154 1522.825 1516.604 1477.154 3451569900 22007478000
2000-01-10 1531.712 1546.723 1545.112 1506.404 3125353900 20929425000
2000-01-11 1547.678 1547.708 1479.781 1468.757 2192455400 17011469000
2000-01-12 1473.761 1489.28 1438.02 1434.996 1522286900 13360337000
2000-01-13 1437.453 1444.066 1424.442 1418.814 861291200 7797784000
2000-01-14 1426.224 1433.474 1408.848 1401.706 744701200 6558970000
@callmewhy
callmewhy / NSNotificationCenterChecker
Last active August 29, 2015 14:21
check NSNotificationCenter with python
import os
def check_file(file_path):
file = open(file_path, "r")
haveNotification = False
haveRemoveNotification = False
lines = file.readlines()
for line in lines:
@callmewhy
callmewhy / .zshrc
Last active May 15, 2017 17:02
why's .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@callmewhy
callmewhy / zshrc
Last active August 29, 2015 14:10
my configuration for zsh
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="why"
# Uncomment the following line to use case-sensitive completion.
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions - WHY</title>
</head>
<body>
<outline text="cool" title="cool">
<outline htmlUrl="http://kedebug.com/" title="kedebug" xmlUrl="http://kedebug.com/atom.xml" type="rss" text="kedebug"/>
<outline htmlUrl="http://lucida.me/" title="Lucida" xmlUrl="http://lucida.me/atom.xml" type="rss" text="Lucida"/>
<outline htmlUrl="http://www.alloyteam.com" title="Web前端 腾讯AlloyTeam Blog | 愿景: 成为地球卓越的Web团队!" xmlUrl="http://www.alloyteam.com/feed/" type="rss" text="Web前端 腾讯AlloyTeam Blog | 愿景: 成为地球卓越的Web团队!"/>