Loading

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 39 下一页
摘要: 阅读全文
posted @ 2012-04-01 10:00 .net's 阅读(266) 评论(0) 推荐(0)
摘要: IEnumerable<Employee> empJson = from emp in employees where emp.Department == "IT Department" select emp; DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(IEnumerable<Employee>)); MemoryStream ms = new MemoryStream(); ser.WriteObject(ms, empJson); string j 阅读全文
posted @ 2012-03-31 14:31 .net's 阅读(323) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-03-31 10:46 .net's 阅读(423) 评论(0) 推荐(0)
摘要: Ever been working on a project for a while, then go work on something else, then come back after a few weeks? Sure you have.Ever come back and somebody deleted your nice nginx config file you had in there for your local dev server? Ever wonder where the hell it went? Well wonder no more!I had this h 阅读全文
posted @ 2012-03-30 16:55 .net's 阅读(703) 评论(0) 推荐(0)
摘要: 首先去官方下载p4merge工具1.http://www.perforce.com/downloads/complete_list2.Browse by Platform>选择相应平台系统下载后安装3.安装完毕后,在安装根目录下会有一个p4merge(.exe)的文件Windows配置:在Git配置中如下配置(请自己写明p4merge路径):.gitconfig代码[diff] tool = p4m [difftool "p4m"] cmd = cmd = \"/cygdrive/d/development/Perforce/p4merge.exe\&quo 阅读全文
posted @ 2012-03-30 11:33 .net's 阅读(1923) 评论(0) 推荐(0)
摘要: Open the .gitconfig file under the directory "c:\Users\[UserName]\.gitconfig",append the following words:[mergetool "p4merge"] cmd = "p4merge.exe" "$BASE" "$LOCAL" "$REMOTE" "$MERGED" keepTemporaries = false trustExitCode = false 阅读全文
posted @ 2012-03-29 21:24 .net's 阅读(411) 评论(0) 推荐(0)
摘要: 1, creat one file located in "C:\Users\[UserName]\" folder, named it as "difftool.sh".and in the file, write the following words:#!/bin/shp4merge "$2" "$5"2, open git bash window,type the following command words:$ git config --global diff.external "c:/use 阅读全文
posted @ 2012-03-29 21:16 .net's 阅读(381) 评论(0) 推荐(0)
摘要: There are two ways to access a property of an object:Using square bracket notation, for example hero['occupation']Using the dot notation, for example hero.occupation 阅读全文
posted @ 2012-03-28 20:46 .net's 阅读(311) 评论(0) 推荐(0)
摘要: JavaScript uses arrays to represent indexed arrays and objects to represent associative arrays. If you want a hash in JavaScript, you use an object. 阅读全文
posted @ 2012-03-28 20:44 .net's 阅读(351) 评论(0) 推荐(0)
摘要: Functions are Data This is an important concept that we'll need later on—functions in JavaScript are actually data. This means that the following two ways to define a function are exactly the same:function f(){return 1;}var f = function(){return 1;}Callback Functions Because a function is just l 阅读全文
posted @ 2012-03-27 17:04 .net's 阅读(543) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 39 下一页