自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 webx ajax 请求

$(document).ready(function(){$("button").click(function(){$.ajax({ url:'Register2.json', type:'post', data:{'name':'test1', 'city':'test2'}, success:function(data){ alert(data);

2015-05-26 00:38:48 521

转载 脚本替换

#!/bin/bashfunction print_log{ echo "[$(date +'%Y-%m-%d:%H:%M:%S')]: $@" >&2 return 0}if [ $# -ne 2 ]then echo "Usage: sh $0 blockid_file snapshot_xml" exit 1fiblockid_file=$

2014-06-05 15:35:53 486

转载 linux多线程 --信号量

#include #include "Configure.h"#include "Utils.h"#include #include using namespace std;#define SIZE 1024char buffer[SIZE];sem_t sem;void *Process(void *args){ sem_wait(&sem); while(

2014-06-03 15:12:18 376

转载 linux多线程 -- 互斥量

#include #include "Configure.h"#include "Utils.h"#include using namespace std;queue product;pthread_mutex_t mutex;void *Produce(void *args){ int i; for(i = 0; i < 10; i++){ p

2014-06-03 14:49:00 366

转载 Linux读取一行文本的方法

#define _GNU_SOURCE#include #include intmain(void){ FILE * fp; char * line = NULL; size_t len = 0; ssize_t read; fp = fopen("/etc/motd", "r

2014-05-28 15:45:26 1315

转载 bash 递归遍历文件夹

#!/bin/shlist_dir(){for file in $1/*doif [ -d $file ]then echo $filelist_dir $fileelif [ -f $file ]thenecho $filefidone}if [ $# = 0 ]thenecho at least 1 arguments

2014-05-27 21:25:41 566

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除