摘要:
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
阅读(1089)
推荐(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
阅读(193)
推荐(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
阅读(214)
推荐(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
阅读(822)
推荐(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
阅读(379)
推荐(0)
摘要:
桥接模式 https://www.w3cschool.cn/shejimoshi/bridge-pattern.html 桥接(Bridge)是用于把抽象化与实现化解耦,使得二者可以独立变化。这种类型的设计模式属于结构型模式,它通过提供抽象化和实现化之间的桥接结构,来实现二者的解耦。 意图:将抽象部
阅读全文
posted @ 2018-04-05 23:34
lightsong
阅读(2092)
推荐(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
阅读(209)
推荐(0)
摘要:
http://groovy-lang.org/design-patterns.html#_chain_of_responsibility_pattern 装饰器模式, 起到美化原始对象的作用。 一个被装饰的对象, 可以被用在原始对象出现的任何地方。 装饰器对象,并不修改任何原始对象的源码。 The
阅读全文
posted @ 2018-04-05 21:49
lightsong
阅读(496)
推荐(0)
摘要:
Composite Pattern http://groovy-lang.org/design-patterns.html#_chain_of_responsibility_pattern 组合模式,允许你将多个对象作为一组对象对待。这些对象具有层次结构,并具有相同的 方法, 有叶子节点和组合节点。
阅读全文
posted @ 2018-04-05 21:41
lightsong
阅读(192)
推荐(0)
摘要:
Chain of Responsibility Pattern http://groovy-lang.org/design-patterns.html#_chain_of_responsibility_pattern 责任链模式, 将一类实现相同接口的对象,组织到一个列表中, 列表的执行中第一个对象
阅读全文
posted @ 2018-04-05 21:18
lightsong
阅读(222)
推荐(0)
摘要:
Adapter Pattern http://groovy-lang.org/design-patterns.html#_adapter_pattern 适配器模式,对象存在一个接口, 此接口在此对象中不能被另外一类对象使用, 提供对象的适配接口,将此接口做包装,适配为另外一类接口。 这类模式也叫包
阅读全文
posted @ 2018-04-05 21:11
lightsong
阅读(169)
推荐(0)
摘要:
Bouncer Pattern http://groovy-lang.org/design-patterns.html#_bouncer_pattern 保镖模式主要负责对函数的输入参数的合法性检查, 如果遇到非法输出,则停止函数后续执行。 groovy提供了 assert 机制, 语言级别内置功能
阅读全文
posted @ 2018-04-05 21:03
lightsong
阅读(250)
推荐(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
阅读(315)
推荐(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
阅读(155)
推荐(0)
摘要:
抽象工厂 https://blog.csdn.net/wyxhd2008/article/details/5597975 首先来看看这两者的定义区别: 工厂模式:定义一个用于创建对象的借口,让子类决定实例化哪一个类 抽象工厂模式:为创建一组相关或相互依赖的对象提供一个接口,而且无需指定他们的具体类
阅读全文
posted @ 2018-03-27 01:57
lightsong
阅读(293)
推荐(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
阅读(420)
推荐(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
阅读(620)
推荐(0)
摘要:
类创建实例一般方式 http://groovy-lang.org/objectorientation.html#_class class Person { String name Integer age def increaseAge(Integer years) { this.age += yea
阅读全文
posted @ 2018-03-27 00:26
lightsong
阅读(582)
推荐(0)
摘要:
https://www.w3cschool.cn/iqmrhf/dotvpozt.html YAML是一个数据序列化语言,被设计成人类直接可写可读的。 它是JSON的严格超集,增加了语法显著换行符和缩进,就像Python。但和Python不一样, YAML根本不容许文字制表符。 http://www
阅读全文
posted @ 2018-03-20 23:40
lightsong
阅读(633)
推荐(0)
摘要:
rest api http://www.cnblogs.com/zhangpengshou/archive/2012/07/09/2583096.html Rest模式get,put,post,delete含义与区别(转) 解释代码 POST /uri 创建 DELETE /uri/xxx 删除 P
阅读全文
posted @ 2018-03-19 23:08
lightsong
阅读(515)
推荐(0)
摘要:
Continuous Design https://www.martinfowler.com/ieeeSoftware/continuousDesign.pdf T he rising popularity of refactoring, tools such as JUnit, and agile
阅读全文
posted @ 2018-03-19 23:04
lightsong
阅读(245)
推荐(0)
摘要:
什么是 Globing? https://www.techopedia.com/definition/14392/globbing Definition - What does Globbing mean? Globbing is the process of using wildcard char
阅读全文
posted @ 2018-03-19 22:55
lightsong
阅读(923)
推荐(0)
摘要:
http://groovy-lang.org/structure.html 3.2. Script class A script is always compiled into a class. The Groovy compiler will compile the class for you,
阅读全文
posted @ 2018-03-19 22:23
lightsong
阅读(225)
推荐(0)
摘要:
shell 测试条件命令 http://blog.csdn.net/yangruibao/article/details/7427503 test 和 [ 命令 虽然 Linux 和 UNIX 的每个版本中都包含 test 命令,但该命令有一个更常用的别名 — 左方括号:[。test 及其别名通常都
阅读全文
posted @ 2018-03-19 22:21
lightsong
阅读(516)
推荐(0)
摘要:
Metaprogramming https://en.wikipedia.org/wiki/Metaprogramming 元编程, 是一种编程技术, 制造的计算机程序,具有这种能力, 对待程序为他们的数据。 针对程语言的编程技术。 Metaprogramming is a programming
阅读全文
posted @ 2018-03-01 23:54
lightsong
阅读(270)
推荐(0)
摘要:
Jenkinsfile开发语言 -- Groovy http://www.groovy-lang.org/ A multi-faceted language for the Java platform Apache Groovy is a powerful, optionally typed and
阅读全文
posted @ 2018-03-01 22:54
lightsong
阅读(2001)
推荐(1)
摘要:
State management https://en.wikipedia.org/wiki/State_management UI控件的状态管理, 例如按钮的灰化、只读、显示隐藏等。 特殊地一个控件的状态依赖其它控件的状态。 补充:对于控件的依赖不仅仅来自于其它的控件, 也可能来自于后台数据的状态
阅读全文
posted @ 2018-02-26 00:07
lightsong
阅读(517)
推荐(0)
摘要:
git rebase http://blog.csdn.net/hudashi/article/details/7664631 git merge git reset http://www.cnblogs.com/qianqiannian/p/6010238.html 1. 文件从暂存区回退到工作区
阅读全文
posted @ 2018-02-25 23:12
lightsong
阅读(225)
推荐(0)
摘要:
Jenkinsfile https://jenkins.io/doc/book/pipeline/jenkinsfile/ Jenkins Pipeline is a suite of plugins that supports implementing and integrating contin
阅读全文
posted @ 2018-02-10 17:41
lightsong
阅读(1770)
推荐(0)
摘要:
基本概念 https://linux.cn/article-7418-1.html#3_8880 用户管理 文件权限设置 -添加用户账户08% -理解 /etc/passwd 中的内容12% -理解 /etc/group 中的内容17% -修改用户信息20% -锁定和解锁账户31% -删除用户账户3
阅读全文
posted @ 2018-01-23 23:07
lightsong
阅读(237)
推荐(0)
摘要:
JQuery Rest https://github.com/jpillora/jquery.rest/ Summary A jQuery plugin for easy consumption of RESTful APIs Downloads Development Version Produc
阅读全文
posted @ 2018-01-07 23:27
lightsong
阅读(258)
推荐(0)
摘要:
JSViews https://github.com/BorisMoore/jsviews JsViews: next-generation MVVM and MVP framework - bringing templates to life The power of MVVM, the flex
阅读全文
posted @ 2018-01-07 23:21
lightsong
阅读(2435)
推荐(0)
摘要:
MobX https://mobx.js.org/ https://github.com/mobxjs/mobx MobX is a battle tested library that makes state management simple and scalable by transparen
阅读全文
posted @ 2018-01-07 22:42
lightsong
阅读(395)
推荐(0)
摘要:
Luadoc http://keplerproject.github.io/luadoc/ Overview LuaDoc is a documentation generator tool for Lua source code. It parses the declarations and do
阅读全文
posted @ 2017-11-10 00:15
lightsong
阅读(1454)
推荐(0)
摘要:
容易混淆的两兄弟 Slash https://en.wikipedia.org/wiki/Slash Slash (punctuation), the "/" punctuation character, also used in computing BackSlash https://en.wik
阅读全文
posted @ 2017-10-25 21:49
lightsong
阅读(1448)
推荐(0)
摘要:
FFI概念 https://segmentfault.com/t/ffi/info FFI即Foreign Function Interface,外部函数调用接口,是一个语言提供的使用其他语言现有库(以及其他组件)的接口。典型的例子包括C++的extern “C”、Java的JNI、.Net的P/I
阅读全文
posted @ 2017-10-14 23:51
lightsong
阅读(2028)
推荐(1)
摘要:
PMD An extensible cross-language static code analyzer. https://github.com/pmd/pmd 跨语言静态代码分析工具。可以查找通用的编码错误,例如 未使用的变量、空catch块、非必须的对象创建、等等。 另外,它也包括CPD工具,
阅读全文
posted @ 2017-10-11 23:13
lightsong
阅读(291)
推荐(0)
摘要:
jQuery two way bindings https://github.com/petersirka/jquery.bindings 这是一个简单的jQuery双向绑定库。 此插件将HTML元素和模型连接起来。 对web开发是一个小型的威力巨大的加农炮。 Simple jQuery two w
阅读全文
posted @ 2017-09-27 23:24
lightsong
阅读(1435)
推荐(0)
摘要:
partial.js client-side routing https://github.com/petersirka/partial.js-clientside Framework supports the HTML 5 History API, for older browsers (IE8+
阅读全文
posted @ 2017-09-27 23:01
lightsong
阅读(262)
推荐(0)