摘要: Ruby is a true object oriented programming language.Ruby is a server-side scripting language similar to Python and PERL. Ruby can be embedded into HTM 阅读全文
posted @ 2016-12-21 07:32 咖啡中不塌缩的方糖 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Some Git commands: Before dev: Check Branch: git branch Checkout an existing branch : git checkout XXX Get Latest code from remote branch: git pull Ch 阅读全文
posted @ 2016-12-08 15:12 咖啡中不塌缩的方糖 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Client side applications Introduction: It is built to create dynamic and rich web applications. It is built with MYYM pattern. It serves a single purp 阅读全文
posted @ 2016-11-20 12:16 咖啡中不塌缩的方糖 阅读(473) 评论(0) 推荐(0) 编辑
摘要: Promise is use 阅读全文
posted @ 2016-11-18 10:02 咖啡中不塌缩的方糖 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Reduce http requests: Use image map: Cache: Empty Cache & Primed Cache: empty cache is the browser which does not cache any components of the page. Th 阅读全文
posted @ 2016-11-17 14:41 咖啡中不塌缩的方糖 阅读(208) 评论(0) 推荐(0) 编辑
摘要: System design First no limitation Then enroll the real world: Horizontal scaling Vertical Scaling Load balancer: server farm: increase security Big da 阅读全文
posted @ 2016-11-01 07:51 咖啡中不塌缩的方糖 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the 阅读全文
posted @ 2016-10-31 09:59 咖啡中不塌缩的方糖 阅读(148) 评论(0) 推荐(0) 编辑
摘要: public class Heap where T : IComparable { private List elements = new List(); public int GetSize() { return elements.Count; } public ... 阅读全文
posted @ 2016-10-31 03:23 咖啡中不塌缩的方糖 阅读(315) 评论(0) 推荐(0) 编辑
摘要: sum无非两种情况,用hashtable 或者用 2 pointer。 Hashtable的时候多不需要考虑重复问题,但是2 pointer往往要考虑重复问题。解决重复问题的方法为初始时判断,如果不是i=0或者nums[i] != nums[i-1],那就跳过。这样保证第一个值不可能是一样的。同理, 阅读全文
posted @ 2016-10-30 07:36 咖啡中不塌缩的方糖 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Step 1: Who is going to use it. How they are going to use it. Or: Who, What, Where, When, how, Why Step 2: Define Core Objects. Example: Resaturant: T 阅读全文
posted @ 2016-10-28 13:01 咖啡中不塌缩的方糖 阅读(227) 评论(0) 推荐(0) 编辑