This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme", | |
"font_face": "Bitstream Vera Sans Mono", | |
//"font_face": "Droid Sans Mono", | |
//"font_face": "Liberation Mono", | |
//"font_face": "DejaVu Sans Mono", | |
"font_size": 11, | |
"font_options": [], | |
// Set to 0 to disable smooth scrolling. Set to a value between 0 and 1 to | |
// scroll slower, or set to larger than 1 to scroll faster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is used to remove ".svn" directory resursively in the current directory | |
# author: Neo Smith | |
# 2014.4.27 | |
del_svn() { | |
for file in `ls -a`; do | |
# ignore . and .. | |
if [ "." == $file -o ".." == $file ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'wanghongfei' | |
# -*- coding:utf8 -*- | |
import Tkinter | |
WIDTH = 300 | |
HEIGHT = 200 | |
# centralize window | |
def center_window(root, w, h): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'wanghongfei' | |
# -*- coding:utf8 -*- | |
import os | |
# 删除指定目录下的所有文件 | |
def del_dir(base_path): | |
file_list = os.listdir(base_path) | |
for name in file_list: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.anzhi.schedule.task; | |
import com.anzhi.schedule.model.PassportModel; | |
import com.taobao.pamirs.schedule.IScheduleTaskDealSingle; | |
import com.taobao.pamirs.schedule.TaskItemDefine; | |
import org.springframework.jdbc.core.JdbcTemplate; | |
import org.springframework.jdbc.core.RowMapper; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding=UTF-8 | |
__author__ = 'whf' | |
import socket | |
import subprocess | |
import sys | |
HOST = '' | |
PORT = 9013 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding=UTF-8 | |
__author__ = 'whf' | |
import socket | |
import subprocess | |
import sys | |
import thread | |
HOST = '' | |
PORT = 9013 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cn.fh.http.component; | |
import cn.fh.http.exception.BaseCheckedException; | |
import cn.fh.http.exception.MethodNotSupportedException; | |
import io.netty.handler.codec.http.FullHttpRequest; | |
import io.netty.handler.codec.http.HttpMethod; | |
import io.netty.handler.codec.http.QueryStringDecoder; | |
import io.netty.handler.codec.http.multipart.Attribute; | |
import io.netty.handler.codec.http.multipart.HttpPostRequestDecoder; | |
import io.netty.handler.codec.http.multipart.InterfaceHttpData; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
log_info() { | |
echo "[INFO] => $1" | |
} | |
log_del() { | |
echo "[DELETE] => $1" | |
} |
OlderNewer