自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 random color

Math.floor(Math.random()*16777215).toString(16)  

2016-08-09 15:44:48 90

原创 funny error messages

Baptist explanation: There must be sin in your life. Everyone else opened it fine.Presbyterian explanation: It's not God's will for you to open this link.Word of Faith explanation: You lack t...

2014-12-16 00:43:18 95

原创 Extension methods

public static T As<T>(this object obj) where T : class{ return obj as T;}public static bool Contains(this string source, string toCheck, StringComparison comp){ return source.Ind...

2013-12-20 06:44:29 96

原创 muahaha

(function(){ if (!window.confirm("S.831?")){ alert("seriously?"); arguments.callee(); }})(); 

2013-10-04 05:53:59 90

原创 Browser Specific Hacks

http://css-tricks.com/snippets/css/browser-specific-hacks/

2013-09-20 02:42:23 71

原创 .net patterns & practices

http://pnp.azurewebsites.net/en-us/

2013-07-19 06:31:06 80

原创 placeholder text

Lorem ipsum dolor sit amet consectetur adipiscing elit. Man suscipit risus id dolor sin accumsan pharetra. Proin asrisus non purus adipiscing cursus ut neque. Nullam tampus tempus lacus, amet aliqua...

2013-05-14 15:56:07 74

原创 IDE setting

background: R 204, G 232, B 207font: DejaVu Sans Mono size 12

2012-06-20 16:56:50 145

原创 how to verify an element does NOT exist in Selenium 2

WebElement element = driver.findElements(By.id("block-id"));assertNull(element);    this code snippet will get a NoSuchEleementException, use the following 2 implementations instead 1. make ...

2011-10-26 11:22:49 161

原创 convert Excel 'AB'-like column name to digit number

/*** A-Z 1-26* AA-AZ 27-52* @param column* @return*/public static int getColumn(String column) {char[] columnArray = column.toUpperCase().toCharArray();final int grade = 26;final ...

2011-08-10 17:44:38 82

driving-learning related materials

Recent depressing driving-learning experience made me realize that my manipulative ability is worse than bad, and I begin to get the point why I cannot play pc games as good as my fellas, maybe I just...

2011-07-20 21:33:43 131

原创 noobie killer -- what returns?

a. public static int test() {try {int number = 1/0;return 1;} catch (Exception e) {return 2;} finally {return 3;}} \(^o^)/~    3 b. public static int test() {int nu...

2010-11-10 17:00:29 59

原创 正则表达式中除了.$^{[(|)*+?\外,其他字符与自己匹配

rt

2010-11-10 10:42:04 526

原创 how to generate hashcode

1. Store some constant nonzero value, say 17, in an int variable called result.2. For each significant field f in your object (each field taken into account by theequals method, that is), do the f...

2010-09-27 15:45:10 103

原创 SOA relevant terms

1, WS (web service)2, SOAP (simple object access protocol)3, XSD (xml schema description)4, UDDI (universal description,discovery and integration)5, JMS (java message service)6, MFL (message...

2010-05-11 14:37:57 75

原创 raise myself up

attitude determines altitude !

2010-05-07 16:27:43 168

new inception

move forward single-mindedly

2010-04-26 16:59:30 60

空空如也

空空如也

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

TA关注的人

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