摘要: 'alert' or 'console' was used before it was defined. How to resolve?add two lines:/*jslint browser: true *//*jslint browser: true, devel: true */xxxxx... 阅读全文
posted @ 2015-07-15 12:36 wxwcase 阅读(108) 评论(0) 推荐(0) 编辑
摘要: The Command Pattern:encapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests... 阅读全文
posted @ 2015-07-09 04:13 wxwcase 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1.StringBufferis synchronized,StringBuilderis not.2. See performance comparison. 阅读全文
posted @ 2015-06-26 03:14 wxwcase 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Count prime numbers not exceeding n(n>0)Pseudocode:Input: an integer n > 1 Let A be an array of Boolean values, indexed by integers 2 to n,initially a... 阅读全文
posted @ 2015-06-11 03:33 wxwcase 阅读(172) 评论(0) 推荐(0) 编辑
摘要: What is pagePages are basically a virtual blockPages have fixed size, while block doesn't(dependent on device)What is blockA block is the smallest uni... 阅读全文
posted @ 2015-05-29 23:12 wxwcase 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Gregorian CalendarGMT and UTCGMTGMT is a time zone officially used in some European and African countries.UTCUTC is not a time zone, but a time standa... 阅读全文
posted @ 2015-05-26 23:20 wxwcase 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Greatest Common Divisor, gcd(a, b)If b|a thengcd(a, b) = b.If a = bt + r, for integers t and r, then gcd(a, b) = gcd(b, r).Indeed, every common diviso... 阅读全文
posted @ 2014-11-17 23:38 wxwcase 阅读(124) 评论(0) 推荐(0) 编辑
摘要: How to make a snippet:url:http://www.millwardesque.com/speed-development-using-keyboard-triggered-snippets-sublime-text-2/How to use "CTRL+e" to go to... 阅读全文
posted @ 2014-09-07 00:05 wxwcase 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Case-insensitive matching:https://blogs.oracle.com/xuemingshen/entry/case_insensitive_matching_in_java(?i) means: for ASCII case-insensitive matching:... 阅读全文
posted @ 2014-07-12 11:15 wxwcase 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Fixing fgets() for input:http://c-for-dummies.com/blog/?p=24installing gcc on mac:http://www-scf.usc.edu/~csci104/installation/gccmac.htmlssssssssss 阅读全文
posted @ 2014-07-03 04:09 wxwcase 阅读(128) 评论(0) 推荐(0) 编辑