#!/bin/bash# Program to output a go source file
with user informationCURRENT_TIME=$(date +"%x %r %Z")cat <<
EOF/* Author:$USER CreatedAt:$CURRENT_TIME...
分类:
其他好文 时间:
2014-05-27 17:49:29
阅读次数:
283
vim在win下遇到汉字乱码早就知晓,本以为通过如下设置即可解决乱码问题 set
encoding=utf-8 set fileencoding=utf-8,chinese
这样设置是可以解决源码文件中的中文乱码问题但是菜单栏此时就变成了乱码, 肿么办? 网上查一解决方案 ,果断可行,摘录如下: s...
话不多说,拿来主义,直接上代码!PS:打印最短路径我还不晓得怎么加,如有哪位大神知道,还请mark一下! 1
/*********************************************************************** 2 *
File: Fibonacci...
分类:
其他好文 时间:
2014-05-26 20:10:56
阅读次数:
568
Google File System中文版Google Bigtable中文版Google
MapReduce中文版
分类:
其他好文 时间:
2014-05-26 19:48:38
阅读次数:
184
常见的NSString和NSMutableString方法:NSString方法:[plain]view
plaincopy+(id)stringWithContentsOfFile:pathencoding:encerror:err创建一个新字符串并将其设置为path指定的文件的内容,使用字符编....
分类:
其他好文 时间:
2014-05-26 19:48:09
阅读次数:
316
原题地址:https://oj.leetcode.com/problems/path-sum/题意:Given
a binary tree and a sum, determine if the tree has a root-to-leaf path such that
adding up all...
分类:
编程语言 时间:
2014-05-26 18:37:11
阅读次数:
295
设置注释模板的入口:
Window->Preference->Java->Code Style->Code Template
然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍:文件(Files)注释标签:/*** @Title: ${file_name}*
@Packa...
分类:
编程语言 时间:
2014-05-26 18:20:15
阅读次数:
387
private void installApk(String fileUri) { Intent
intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" + fileUr...
分类:
移动开发 时间:
2014-05-26 17:36:26
阅读次数:
290
如果应用程序使用用户可控制的数据,以危险的方式访问位于应用服务器或其它后端文件系统的文件或目录,就会出现路径遍历。攻击者可以将路径遍历序列放入文件名内,向上回溯,从而访问服务器上的任何文件,路径遍历序列叫“点-点-斜线”(..\)http://***/go.action?file=..\..\etc...
分类:
Web程序 时间:
2014-05-26 17:28:04
阅读次数:
1096
.tar 解包:tar xvf FileName.tar打包:tar cvf FileName.tar
DirName(注:tar是打包,不是压缩!)———————————————.gz解压1:gunzip FileName.gz解压2:gzip -d
FileName.gz压缩:gzip File...
分类:
系统相关 时间:
2014-05-26 16:49:29
阅读次数:
395