摘要:
express http://www.expressjs.com.cn/ Express 是一个基于 Node.js 平台的极简、灵活的 web 应用开发框架,它提供一系列强大的特性,帮助你创建各种 Web 和移动设备应用。 http://www.expressjs.com.cn/starter/h
阅读全文
posted @ 2018-08-30 23:31
lightsong
阅读(739)
推荐(0)
摘要:
引子 简单的程序,不许要考虑通信问题,在一个进程中函数调用即可满足程序功能的分治工作, 但是当程序规模达到一定程序之后, 就必须将程序划分为独立的逻辑体, 逻辑体之间需要进行通信。 本文列举程序通信方式,从微观到宏观。 事件 通过事件,可以将单线程的程序,做好逻辑切分的情况下,产生通信过程,同时保持
阅读全文
posted @ 2018-08-28 23:54
lightsong
阅读(441)
推荐(0)
摘要:
Mongoose https://mongoosejs.com/ Mongoose Mongoose Elegant MongoDB object modeling for Node.js Let's face it, writing MongoDB validation, casting and
阅读全文
posted @ 2018-08-24 00:21
lightsong
阅读(502)
推荐(0)
摘要:
MongoDB https://www.mongodb.com/ MongoDB AtlasDatabase as a Service The best way to deploy, operate, and scale MongoDB in the cloud. Available on AWS,
阅读全文
posted @ 2018-08-22 23:42
lightsong
阅读(3904)
推荐(0)
摘要:
微信小程序 https://developers.weixin.qq.com/miniprogram/introduction/index.html?t=18082114 微信小程序是一种全新的连接用户与服务的方式,它可以在微信内被便捷地获取和传播,同时具有出色的使用体验。 概览 为了帮助开发者简单
阅读全文
posted @ 2018-08-21 23:28
lightsong
阅读(1988)
推荐(0)
摘要:
概念 https://www.softwaretestinghelp.com/what-is-end-to-end-testing/ What is “End to End Testing”? Term “End to End testing” is defined as a testing met
阅读全文
posted @ 2018-08-20 22:32
lightsong
阅读(1012)
推荐(0)
摘要:
设计原则解读。 设计原则是对设计模式的约束性要求,属于设计中基本的四项特征,不符合此四项特征的设计,不具有生命力。 设计模式也是在此四项设计原则上的具体化实例化衍生物。 Martin原文: http://www.cvc.uab.es/shared/teach/a21291/temes/object_
阅读全文
posted @ 2018-08-18 23:05
lightsong
阅读(483)
推荐(0)
摘要:
Karma https://baike.baidu.com/item/%E7%BE%AF%E7%A3%A8/7618552?fromtitle=Karma&fromid=878453 1,意译作“业”。业;行动;命运。一个人生命中的自然与必然事件,由前世的作为所决定。含有善恶、苦乐果报之意味,亦即与
阅读全文
posted @ 2018-08-18 11:42
lightsong
阅读(557)
推荐(0)
摘要:
目的 当前端开发过程中,需要输出来填充页面时候,或者后台交互时候,需要后台准备假数据服务器。 这个时候,使用mysql等后台工具,则工作量太大。 工具引入 mockjs -- 模拟随机数据 http://mockjs.com/0.1/ Mock.js 是一款模拟数据生成器,旨在帮助前端攻城师独立于后
阅读全文
posted @ 2018-08-14 23:03
lightsong
阅读(496)
推荐(0)
摘要:
Mocha https://mochajs.org/#installation Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous t
阅读全文
posted @ 2018-08-09 23:19
lightsong
阅读(407)
推荐(0)
摘要:
NightWatch http://nightwatchjs.org/ Nightwatch.js Browser automated testing done easy. Write End-to-End tests in Node.js quickly and effortlessly that
阅读全文
posted @ 2018-08-08 00:10
lightsong
阅读(476)
推荐(0)
摘要:
常规写法 https://cn.bing.com/search?q=js+fibonacci+sequence&pc=MOZI&form=MOZSBR 生成器 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Glob
阅读全文
posted @ 2018-08-05 00:38
lightsong
阅读(473)
推荐(0)
摘要:
Material Design是什么? https://www.zhihu.com/topic/20005114/top-answers 我们挑战自我,为用户创造了崭新的视觉设计语言。与此同时,新的设计语言除了遵循经典设计定则,还汲取了最新的科技,秉承了创新的设计理念。这就是原质化设计(Materi
阅读全文
posted @ 2018-08-05 00:24
lightsong
阅读(2116)
推荐(0)
摘要:
Jasmine https://www.npmjs.com/package/jasmine The Jasmine Module The jasmine module is a package of helper code for developing Jasmine projects for No
阅读全文
posted @ 2018-08-03 23:32
lightsong
阅读(412)
推荐(0)
摘要:
Postman https://www.getpostman.com/ Postman Makes API Development Simple. Developers use Postman to buildmodern software for the API-first world. Post
阅读全文
posted @ 2018-08-03 06:40
lightsong
阅读(369)
推荐(0)
摘要:
需求 Jenkins日志打印内容很长,或者并发编译导致,日志内容不容易查看。 对于具体业务失败, 开发者希望看到具体业务自身的日志内容。 解法 tee 命令能够保证, shell命令执行的内容,即往控制台输出,又往文件输出,满足了第一个要求,业务日志单独输出。 https://blog.csdn.n
阅读全文
posted @ 2018-08-02 06:37
lightsong
阅读(797)
推荐(0)
摘要:
AngularJS DI(依赖注入) http://www.cnblogs.com/whitewolf/archive/2012/09/11/2680659.html 回到angularjs:在框架中为我们提供了angular.injector(modules)DI注入注射器。但是在我们使用注入的时
阅读全文
posted @ 2018-07-30 23:08
lightsong
阅读(428)
推荐(0)
摘要:
v-charts https://v-charts.js.org/#/ ELEMENT力作: 在使用 echarts 生成图表时,经常需要做繁琐的数据类型转化、修改复杂的配置项,v-charts 的出现正是为了解决这个痛点。基于 Vue2.0 和 echarts 封装的 v-charts 图表组件,
阅读全文
posted @ 2018-07-29 21:03
lightsong
阅读(3141)
推荐(0)
摘要:
介绍 http://cmder.net/ Portable console emulator for Windows Cmder is a software package created out of pure frustration over the absence of nice consol
阅读全文
posted @ 2018-07-15 23:13
lightsong
阅读(401)
推荐(0)
摘要:
模块概述 https://kb.cnblogs.com/page/98352/ Nginx模块工作原理概述 (Nginx本身支持多种模块,如HTTP模块、EVENT模块和MAIL模块,本文只讨论HTTP模块) Nginx本身做的工作实际很少,当它接到一个HTTP请求时,它仅仅是通过查找配置文件将此次
阅读全文
posted @ 2018-06-18 01:23
lightsong
阅读(286)
推荐(0)
摘要:
Flask http://flask.pocoo.org/docs/1.0/ Welcome to Flask Welcome to Flask’s documentation. Get started with Installation and then get an overview with
阅读全文
posted @ 2018-05-26 09:47
lightsong
阅读(289)
推荐(0)
摘要:
mysql http://www.cnblogs.com/zhangzhu/archive/2013/07/04/3172486.html 1、连接到本机上的MYSQL。首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root -p,回车后提示你输密码.注意用户名前可
阅读全文
posted @ 2018-05-11 23:55
lightsong
阅读(558)
推荐(0)
摘要:
Database https://en.wikipedia.org/wiki/Database A database is an organized collection of data.[1] A relational database, more restrictively, is a coll
阅读全文
posted @ 2018-05-04 00:02
lightsong
阅读(1093)
推荐(0)
摘要:
参考 : https://www.jianshu.com/p/6c8d2730d088https://docs.scrapy.org/en/latest/topics/item-pipeline.html#writing-your-own-item-pipelineimport scrapyimport requestsimport osclass MeinvSpider(scrapy.Spide...
阅读全文
posted @ 2018-04-07 21:00
lightsong
阅读(195)
推荐(0)
摘要:
Scrapyhttps://docs.scrapy.org/en/latest/intro/overview.htmlScrapy is an application framework for crawling web sites and extracting structured data which can be used for a wide range of useful applica...
阅读全文
posted @ 2018-04-07 10:36
lightsong
阅读(216)
推荐(0)
摘要:
load https://www.sourcefield.nl/post/jenkins-pipeline-tutorial/ load from git Loading a script from another Git repository This requires the Pipeline
阅读全文
posted @ 2018-04-05 23:44
lightsong
阅读(823)
推荐(0)
摘要:
build step https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#build-build-a-job 一个任务的执行触发,另外一个任务的执行,以代码的形式。 build: Build a job Triggers a new
阅读全文
posted @ 2018-04-05 23:40
lightsong
阅读(384)
推荐(0)
摘要:
桥接模式 https://www.w3cschool.cn/shejimoshi/bridge-pattern.html 桥接(Bridge)是用于把抽象化与实现化解耦,使得二者可以独立变化。这种类型的设计模式属于结构型模式,它通过提供抽象化和实现化之间的桥接结构,来实现二者的解耦。 意图:将抽象部
阅读全文
posted @ 2018-04-05 23:34
lightsong
阅读(2096)
推荐(0)
摘要:
Iterator Pattern http://groovy-lang.org/design-patterns.html#_flyweight_pattern 迭代器模式,允许顺序访问 聚集对象中的中元素, 而不用关心起内部是如何实现的。 groovy有自己的语言内置的闭包操作, 例如 each T
阅读全文
posted @ 2018-04-05 22:59
lightsong
阅读(298)
推荐(0)
摘要:
Flyweight Pattern 享元模式, 将对象的相同属性, 以节省内存为目的,存储为一份公共对象, 所有对象共用此分对象。 The Flyweight Pattern is a pattern for greatly reducing memory requirements by not r
阅读全文
posted @ 2018-04-05 21:59
lightsong
阅读(211)
推荐(0)
摘要:
http://groovy-lang.org/design-patterns.html#_chain_of_responsibility_pattern 装饰器模式, 起到美化原始对象的作用。 一个被装饰的对象, 可以被用在原始对象出现的任何地方。 装饰器对象,并不修改任何原始对象的源码。 The
阅读全文
posted @ 2018-04-05 21:49
lightsong
阅读(504)
推荐(0)
摘要:
Composite Pattern http://groovy-lang.org/design-patterns.html#_chain_of_responsibility_pattern 组合模式,允许你将多个对象作为一组对象对待。这些对象具有层次结构,并具有相同的 方法, 有叶子节点和组合节点。
阅读全文
posted @ 2018-04-05 21:41
lightsong
阅读(198)
推荐(0)
摘要:
Chain of Responsibility Pattern http://groovy-lang.org/design-patterns.html#_chain_of_responsibility_pattern 责任链模式, 将一类实现相同接口的对象,组织到一个列表中, 列表的执行中第一个对象
阅读全文
posted @ 2018-04-05 21:18
lightsong
阅读(224)
推荐(0)
摘要:
Adapter Pattern http://groovy-lang.org/design-patterns.html#_adapter_pattern 适配器模式,对象存在一个接口, 此接口在此对象中不能被另外一类对象使用, 提供对象的适配接口,将此接口做包装,适配为另外一类接口。 这类模式也叫包
阅读全文
posted @ 2018-04-05 21:11
lightsong
阅读(172)
推荐(0)
摘要:
Bouncer Pattern http://groovy-lang.org/design-patterns.html#_bouncer_pattern 保镖模式主要负责对函数的输入参数的合法性检查, 如果遇到非法输出,则停止函数后续执行。 groovy提供了 assert 机制, 语言级别内置功能
阅读全文
posted @ 2018-04-05 21:03
lightsong
阅读(258)
推荐(0)
摘要:
Null Object Pattern http://groovy-lang.org/design-patterns.html#_loan_my_resource_pattern 对于一些场景获得的对象为 null, 然后我们的使用的场景, 对null对象调用正常对象的方法, 导致报错。 因为nul
阅读全文
posted @ 2018-04-05 20:57
lightsong
阅读(318)
推荐(0)
摘要:
借贷模式 http://groovy-lang.org/design-patterns.html#_loan_my_resource_pattern The Loan my Resource pattern ensures that a resource is deterministically d
阅读全文
posted @ 2018-04-05 20:53
lightsong
阅读(156)
推荐(0)
摘要:
抽象工厂 https://blog.csdn.net/wyxhd2008/article/details/5597975 首先来看看这两者的定义区别: 工厂模式:定义一个用于创建对象的借口,让子类决定实例化哪一个类 抽象工厂模式:为创建一组相关或相互依赖的对象提供一个接口,而且无需指定他们的具体类
阅读全文
posted @ 2018-03-27 01:57
lightsong
阅读(296)
推荐(0)
摘要:
策略模式 https://en.wikipedia.org/wiki/Strategy_pattern In computer programming, the strategy pattern (also known as the policy pattern) is a behavioral s
阅读全文
posted @ 2018-03-27 01:47
lightsong
阅读(424)
推荐(0)
摘要:
Proxy https://en.m.wikipedia.org/wiki/Proxy 代理人 与 被代理人 是 一对一的关系。 A proxy is an agent or substitute authorized to act for another person or a document
阅读全文
posted @ 2018-03-27 01:21
lightsong
阅读(650)
推荐(0)