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 main | |
import ( | |
"io" | |
"log" | |
"os" | |
"time" | |
) | |
func main() { |
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 main | |
import ( | |
"path/filepath" | |
"os" | |
"fmt" | |
) | |
func main() { | |
dir, err := filepath.Abs(filepath.Dir(os.Args[0])) |
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
# 解析命令行参数 | |
class ArgParser: | |
def __init__(self, args, mod): | |
self.args = args | |
self.mod = mod | |
self.tokens = [] | |
self.__parse_mode__() | |
# 解析mod参数 |
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" | |
} |
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
# 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
# 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
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
__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
__author__ = 'wanghongfei' | |
# -*- coding:utf8 -*- | |
import Tkinter | |
WIDTH = 300 | |
HEIGHT = 200 | |
# centralize window | |
def center_window(root, w, h): |
NewerOlder