Stay Hungry,Stay Foolish!

摘要: 类创建实例一般方式 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 阅读(584) 评论(0) 推荐(0)
摘要: https://www.w3cschool.cn/iqmrhf/dotvpozt.html YAML是一个数据序列化语言,被设计成人类直接可写可读的。 它是JSON的严格超集,增加了语法显著换行符和缩进,就像Python。但和Python不一样, YAML根本不容许文字制表符。 http://www 阅读全文
posted @ 2018-03-20 23:40 lightsong 阅读(635) 评论(0) 推荐(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 阅读(516) 评论(0) 推荐(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 阅读(246) 评论(0) 推荐(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 阅读(924) 评论(0) 推荐(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 阅读(227) 评论(0) 推荐(0)
摘要: shell 测试条件命令 http://blog.csdn.net/yangruibao/article/details/7427503 test 和 [ 命令 虽然 Linux 和 UNIX 的每个版本中都包含 test 命令,但该命令有一个更常用的别名 — 左方括号:[。test 及其别名通常都 阅读全文
posted @ 2018-03-19 22:21 lightsong 阅读(519) 评论(0) 推荐(0)
摘要: Metaprogramming https://en.wikipedia.org/wiki/Metaprogramming 元编程, 是一种编程技术, 制造的计算机程序,具有这种能力, 对待程序为他们的数据。 针对程语言的编程技术。 Metaprogramming is a programming 阅读全文
posted @ 2018-03-01 23:54 lightsong 阅读(280) 评论(0) 推荐(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 阅读(2008) 评论(0) 推荐(1)
摘要: State management https://en.wikipedia.org/wiki/State_management UI控件的状态管理, 例如按钮的灰化、只读、显示隐藏等。 特殊地一个控件的状态依赖其它控件的状态。 补充:对于控件的依赖不仅仅来自于其它的控件, 也可能来自于后台数据的状态 阅读全文
posted @ 2018-02-26 00:07 lightsong 阅读(525) 评论(0) 推荐(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 阅读(226) 评论(0) 推荐(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 阅读(1772) 评论(0) 推荐(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 阅读(239) 评论(0) 推荐(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 阅读(259) 评论(0) 推荐(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 阅读(2440) 评论(0) 推荐(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 阅读(402) 评论(0) 推荐(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 阅读(1459) 评论(0) 推荐(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 阅读(1467) 评论(0) 推荐(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 阅读(2046) 评论(0) 推荐(1)
摘要: PMD An extensible cross-language static code analyzer. https://github.com/pmd/pmd 跨语言静态代码分析工具。可以查找通用的编码错误,例如 未使用的变量、空catch块、非必须的对象创建、等等。 另外,它也包括CPD工具, 阅读全文
posted @ 2017-10-11 23:13 lightsong 阅读(293) 评论(0) 推荐(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 阅读(1441) 评论(0) 推荐(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 阅读(265) 评论(0) 推荐(0)
摘要: Prolog https://en.wikipedia.org/wiki/Prolog Prolog is a general-purpose logic programming language associated with artificial intelligence and computa 阅读全文
posted @ 2017-09-17 22:08 lightsong 阅读(628) 评论(0) 推荐(0)
摘要: angularjs路由 https://angular.io/guide/router 通过URL解释, 来定位客户端生成的浏览器端视图。 你可绑定路由到页面的链接上, 当用户点击链接, 可以浏览到相应的应用视图。 The browser is a familiar model of applica 阅读全文
posted @ 2017-08-21 22:47 lightsong 阅读(839) 评论(0) 推荐(0)
摘要: lodash https://lodash.com/docs#now https://lodash.com/ A modern JavaScript utility library delivering modularity, performance & extras. Why Lodash? Lo 阅读全文
posted @ 2017-07-09 22:12 lightsong 阅读(823) 评论(0) 推荐(0)
摘要: git图解:代码区域总结 https://zhuanlan.zhihu.com/p/20175919 git跟传统的代码管理器(如:svn)不同, 主要区别在于git多了个本地仓库以及缓存区,所以即使无法联网也一样能提交代码。术语解释: 工作区间: 即我们创建的工程文件, 在编辑器可直观显示; 缓存 阅读全文
posted @ 2017-07-09 14:19 lightsong 阅读(304) 评论(0) 推荐(0)
摘要: infinite scroll 类似一些网站, 例如京东搜索商品, 浏览到最后一页,自动加载新的商品。 一则可以加快首页响应速度, 二则减轻带宽和服务器荷载。 这么多商品信息一次性返回给客户端也是不可行的。 An infinite scrolling plugin for jQuery https: 阅读全文
posted @ 2017-06-12 23:50 lightsong 阅读(588) 评论(0) 推荐(0)
摘要: 中文 https://zhidao.baidu.com/question/353530989.html 举个简单的例子,当你有一个日IP过千的网站,而你的网站首页几百年没有更改了,这个时候你想启用新的网页,而你有害怕新的页面用户不一定就非常喜欢,那么这个时候你就需要进行A/B测试了。测试的方法是将老 阅读全文
posted @ 2017-06-06 23:30 lightsong 阅读(240) 评论(0) 推荐(0)
摘要: Jenkins https://jenkins.io/index.html The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying a 阅读全文
posted @ 2017-05-19 22:03 lightsong 阅读(651) 评论(0) 推荐(0)
摘要: Docker https://www.docker.com/ 消除应用的依赖矩阵。 消除硬件依赖 和 软件依赖。 Escape the app dependency matrix Eliminate the “it works on my machine” problem once and for 阅读全文
posted @ 2017-05-03 00:31 lightsong 阅读(579) 评论(0) 推荐(0)
摘要: 加载方式 形象图像化方法,见 http://www.growingwiththeweb.com/2014/02/async-vs-defer-attributes.html 1、 script标签, 无 async defer, 则script文件下载和执行的过程, 会阻塞后面html标签的解析,进 阅读全文
posted @ 2017-05-01 22:23 lightsong 阅读(489) 评论(0) 推荐(0)
摘要: Pre-shared key https://en.wikipedia.org/wiki/Pre-shared_key In cryptography, a pre-shared key (PSK) is a shared secret which was previously shared bet 阅读全文
posted @ 2017-04-19 23:35 lightsong 阅读(1358) 评论(0) 推荐(0)
摘要: 持续集成 https://en.wikipedia.org/wiki/Continuous_integration 为什么要持续? 持续集成, 可以避免集成地狱(由于工作的源码 和 库中的源码的差异导致), 提倡提前集成,并且经常集成。 在集成到主分支之前, 在CI服务器上做一次完整的构建 和 运行 阅读全文
posted @ 2017-04-03 08:50 lightsong 阅读(1165) 评论(0) 推荐(0)
摘要: Fetch作用? https://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API/Using_Fetch Fetch API 提供了一个 JavaScript接口,用于访问和操纵HTTP管道的部分,例如请求和响应。它还提供了一个全局 fetch( 阅读全文
posted @ 2017-03-12 23:08 lightsong 阅读(933) 评论(0) 推荐(0)
摘要: Content Security Policy https://content-security-policy.com/ The new Content-Security-Policy HTTP response header helps you reduce XSS risks on modern 阅读全文
posted @ 2017-02-26 17:31 lightsong 阅读(2173) 评论(0) 推荐(0)
摘要: vivalidi https://vivaldi.com/ A million ways to customize everything The world is a colorful place because we are all different and unique. We at Viva 阅读全文
posted @ 2017-02-19 23:17 lightsong 阅读(1766) 评论(0) 推荐(0)
摘要: 异步操作知识 在js世界中, 异步操作非常流行, nodejs就是特点基于异步非阻塞。 js语言支持的异步语法包括, Promise async await generator yield。 这些语法需要使用者了解非常清楚, 往往很困难。 下面介绍一个异步操作的超级库,可以实现很多异步操作和流程控制 阅读全文
posted @ 2017-02-15 23:09 lightsong 阅读(1158) 评论(0) 推荐(0)
摘要: Polymer是什么? Polymer英文为 n.聚合物;多聚体 网络高分子;聚合体;高分子聚合物 n.聚合物;多聚体 网络高分子;聚合体;高分子聚合物 n.聚合物;多聚体 网络高分子;聚合体;高分子聚合物 应用在Web组件场景, 表达的是, 一个一个小的Web组件,可以通过此框架聚合为一个 整个页 阅读全文
posted @ 2017-02-15 00:07 lightsong 阅读(604) 评论(0) 推荐(0)
摘要: 目的 在windows环境下, 整理代码,代码中含有 .svn 文件夹, 此文件夹在所有受控目录下都存在, 需要统一删除。 但是对windows的shell不熟悉,想用linux rm来删除, 如何实现? 方法 1、找到运行linux shell的工具, cygwin限制为安装目录。 git工具可以 阅读全文
posted @ 2017-02-14 23:00 lightsong 阅读(696) 评论(0) 推荐(0)
摘要: 1、提取字符串中以.ddd结尾的ddd值 result=$(echo "chip86.500" | grep -Eo '\.[0-9]{1,}' | grep -Eo '[0-9]{1,}') echo $result 2、获取脚本文件的入参 para=$1 srcfile="srcfile" ec 阅读全文
posted @ 2017-02-14 22:53 lightsong 阅读(163) 评论(0) 推荐(0)
千山鸟飞绝,万径人踪灭