One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
# coding=utf-8 | |
import traceback | |
import sys | |
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
logger = logging.getLogger('test') |
# coding: utf-8 | |
import os | |
import sys | |
import logging | |
logging.basicConfig(format="%(asctime)s|%(process)d|%(thread)d|%(name)s|%(levelname)s|%(message)s", level=logging.INFO) | |
def opened_info(path): |
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"time" |
GCC := gcc | |
GXX := g++ | |
project_path := $(shell pwd) | |
BIN := | |
C_SRC := | |
CXX_SRC := | |
CFLAGS := |
import ( | |
"os" | |
"github.com/satori/go.uuid" | |
"github.com/williamsandrew/go-xchg" | |
"golang.org/x/sys/unix" | |
) | |
func UniqueRename(oldpath, newpath_dir, newpath_prefix string) (newpath string, err error) { |
import ( | |
"os" | |
"github.com/satori/go.uuid" | |
) | |
func UniqueFile(dir, prefix string, flags int, perm os.FileMode) (f *os.File, err error) { | |
unique_file_prefix := dir + "/" + prefix | |
flags |= os.O_EXCL | os.O_CREATE |
#! /usr/bin/python | |
#coding:utf-8 | |
import time | |
import sys | |
import getopt | |
import os | |
def PrintHelpAndExit() : | |
print "Usage: %s -f path -p pid -t time" % (sys.argv[0]) |
#!/bin/bash | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=. |
struct MeteringIterator: public std::iterator<std::output_iterator_tag, void, void, void, void> { | |
public: | |
MeteringIterator(size_t *times_ptr) noexcept : | |
times(times_ptr) { | |
*times = 0; | |
} | |
template <typename T> | |
MeteringIterator& operator= (T &&elem) noexcept { | |
++*times; |