Skip to content

Instantly share code, notes, and snippets.

View royss7's full-sized avatar
🎯
Focusing

yyliu royss7

🎯
Focusing
  • AMAT
  • hangzhou, China
View GitHub Profile
@chenshuo
chenshuo / query_freq.cc
Created November 3, 2012 22:59
Sort queries by their frequencies.
// answer to http://weibo.com/1915548291/z2UtyzuvQ
// see also http://www.cnblogs.com/baiyanhuang/archive/2012/11/11/2764914.html
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <fstream>
#include <iostream>
@hongjiang
hongjiang / vpn.sh
Last active October 27, 2015 10:21
mac vpn connection script
#!/bin/bash
PROG_NAME=$0
ACTION=$1
usage() {
echo "Usage: $PROG_NAME {list|ping|optimal|conn|close|status}"
exit 1
}