This file contains 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
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div id="left"></div> | |
<script type="text/javascript"> | |
var showLeftTime = function (endStr, node) { |
This file contains 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
(function() { | |
var path = require('path'), fs = require('fs'); | |
function walk(uri,filter,tree) { | |
var node = { | |
name : null, | |
children : [], | |
pNode : null, | |
}; | |
This file contains 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
var elem; | |
for ( var i = 0; elems[i]; i++ ) { | |
elem = elems[i]; | |
// ... | |
} |
This file contains 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
(function(GLOBAL) { | |
// Phantom Limb | |
// ------------ | |
// http://viewinglens.com/phantom-limb | |
// https://github.com/brian-c/phantom-limb | |
// [email protected] | |
"use strict"; | |
// Default configuration |
This file contains 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
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import java.util.*; | |
public class JsonHelper { | |
public static Object toJSON(Object object) throws JSONException { | |
if (object instanceof Map) { | |
JSONObject json = new JSONObject(); |
This file contains 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
cd | |
mkdir git-demo-01 | |
cd git-demo-01 | |
git status #查看版本库和所有工作目录树的差异 | |
git init # 初始化版本库 | |
git status #查看初始化后的提示 | |
echo "hello git" > hello #创建文件hello,内容为hello git | |
git add hello #将hello增加到暂存区 | |
git diff #查看暂存区与工作目录树的区别 | |
git status #查看 |
This file contains 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
git config --global user.name "lixiao4" | |
git config --global user.email [email protected] | |
git config --global color.ui true |
This file contains 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
git log #查看提交日志 | |
git branch #查看分支 | |
git branch develop #从当前分支切出development分支 | |
git branch #查看分支 | |
git checkout develop #切换到develop分支 | |
git branch #查看分支 | |
echo "how old are you, git" >> hello | |
git diff | |
git status | |
git add hello |
This file contains 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
if [ ! -n "$1" ] ; then | |
echo "please input svn username as the first parameter" | |
exit 0 | |
fi | |
if [ ! -n "$2" ] ; then | |
echo "please input svn password as the second parameter" | |
exit 0 | |
fi | |
echo "********** yum update **********" |
This file contains 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
set nocompatible | |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
set diffexpr=MyDiff() | |
function MyDiff() | |
let opt = '-a --binary ' | |
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif |
OlderNewer