Skip to content

Instantly share code, notes, and snippets.

View jundaf's full-sized avatar

Feng Junda jundaf

View GitHub Profile
@jundaf
jundaf / svncount.sh
Created July 7, 2014 08:29
Count modified and added lines to SVN by folders.
#!/bin/sh
#set -x
LOG_LIMIT=100
SVN_DIFF="svn diff --no-diff-deleted"
QDATE=$1
if [[ -z "$QDATE" ]]; then
echo "Usage: $(basename $0) QUERY_DATE"
echo "QUERY_DATE is like 2014-06-12"
@jundaf
jundaf / kq.py
Created August 1, 2012 01:22
A script uses requests and BeautifulSoup to login to kq.neusoft.com and punch the clock online.
#!/usr/bin/env python
"""A script uses requests and BeautifulSoup to login to
kq.neusoft.com and punch the clock online.
"""
import sys
import logging
logging.basicConfig(level=logging.ERROR)
import requests
from BeautifulSoup import BeautifulSoup