Eclipse内置版本
操作 | 英文 | 键位偏好 |
---|---|---|
上 | Line up | alt+k |
下 | Line down | alt+j |
左 | Previous column | ctrl+k |
右 | Next column | ctrl+j |
/* | |
* IniSettings.cpp | |
* | |
* Created on: 2017年12月25日下午2:55:07 | |
* Author: lixingcong | |
*/ | |
//#include "StdAfx.h" | |
#include "IniSettings.h" | |
#include <iostream> |
<?php | |
// https://stackoverflow.com/questions/1545432/what-is-the-easiest-way-to-use-the-head-command-of-http-in-php | |
$dst_url='http://qq.com/'; | |
// create a new cURL resource | |
$ch = curl_init(); | |
// set URL and other appropriate options |
✔ [/home/ubuntu/nginx_html/] | |
$ tree | |
. | |
├── homepage.php | |
├── home.php | |
├── index.html | |
└── xxoo | |
├── back.php | |
└── backup.php |
// use C source code, not macro | |
void debug_printf(char *fmt,...){ | |
#ifdef _DEBUG | |
va_list ap; | |
va_start(ap,fmt); // #include <stdarg.h> | |
vprintf(fmt,ap); | |
va_end(ap); | |
#endif | |
} |
/* | |
* FileReadWrite.cpp | |
* | |
* Created on: 2017年7月28日上午11:10:36 | |
* Author: lixingcong | |
*/ | |
#include "FileReadWrite.h" | |
#include <iostream> |
# Usage: | |
# AStyle.exe --options=style.conf demo.cpp | |
# Language: C/C++ | |
# base style | |
--style=k&r | |
#--style=allman | |
# max length of a line |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
usage: | |
find /var/www/downloads > /tmp/1.txt | |
python this_script.py /tmp/1.txt | |
""" | |
import urllib | |
import sys |
#include "stdio.h" | |
#include "stdlib.h" | |
#include "string.h" | |
#define is_char_num(c) ((c>='0')&&(c<='9')) | |
/* | |
* brief: 从字符串取出数字 | |
* 注意str字符串结束符要有NULL,否则指针越界 | |
* param: str 字符串指针 |