上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页

2018年4月25日

openshift 配置 bitbucket 的webhook

摘要: 参考 https://docs.openshift.org/latest/dev_guide/builds/triggering_builds.html 阅读全文

posted @ 2018-04-25 18:43 Lemo_wd 阅读(335) 评论(0) 推荐(0)

2018年4月12日

关于 ubuntu 下 防火墙 ufw的使用

摘要: ufw 是 iptables 的一个语法糖。详细介绍 阅读全文

posted @ 2018-04-12 15:54 Lemo_wd 阅读(153) 评论(0) 推荐(0)

2018年3月26日

Java8 中的 default

摘要: 之前的版本里 interface 中的方法必须是抽象方法,不能有方法体。现在可以添加 interface 内方法,只需要在方法的前面加一个 default 关键字,表示属于接口内部默认存在的方法。 如果两个接口包括的默认方法同名,当一个 class 同时实现这两个接口,并调用他们共同的 defaul 阅读全文

posted @ 2018-03-26 13:48 Lemo_wd 阅读(283) 评论(0) 推荐(0)

2018年3月24日

mvc、mvp与 mvvm 区别

摘要: 原文 阅读全文

posted @ 2018-03-24 20:52 Lemo_wd 阅读(118) 评论(0) 推荐(0)

unicode 字符集 与 utf-8 编码

摘要: 字符集 Unicode 是一个很大的集合,可以容纳100多万个符号。每个符号的编号都不一样,比如,U+0639表示阿拉伯字母Ain,U+0041表示英语的大写字母A,U+4E25表示汉字严。具体的符号编号对应表,可以查询unicode.org,或者专门的汉字对应表。 字符编码 有了字符集,人们就可以 阅读全文

posted @ 2018-03-24 04:28 Lemo_wd 阅读(369) 评论(0) 推荐(0)

2018年3月20日

java 中的 Comparable 和 Comparator 与 Iterable 和 Iterator

摘要: Comparable 和 Comparator 1、Comparable<T> 比较的是当前值与另一个值。 public interface Comparable<T> { public int compareTo(T o); } 举例: Date dt = new Date(); // 默认计算从 阅读全文

posted @ 2018-03-20 22:25 Lemo_wd 阅读(385) 评论(0) 推荐(0)

2018年3月8日

Java 中的泛型

摘要: 一、泛型的定义与作用 泛型,又叫 参数多态,在c++里又叫模板。是指声明与定义函数或变量时不指定其具体的类型,而把这部分类型作为参数使用,使得该定义对各种具体类型都适用。通常意义的多态是将这里不特定的类型参数替换成父类型,将具体类型的实现替换成子类型。故而泛型可看作一种特殊的多态(概念角度)。 泛型 阅读全文

posted @ 2018-03-08 16:24 Lemo_wd 阅读(227) 评论(0) 推荐(0)

2018年3月2日

rails 杂记 - model 中的exists?

摘要: 1. exists? 用法 有一段代码 参考 这里的 exitsts?(column => self[column]) 类似于 .find_by_user_id(current_user.id) 整段代码的意思是如果随机码与已知用户的随机码重复则重新再随机,直到不再重复。 阅读全文

posted @ 2018-03-02 22:55 Lemo_wd 阅读(239) 评论(0) 推荐(0)

rails 杂记 - render and layout

摘要: 官方文档:http://guides.rubyonrails.org/layouts_and_rendering.html 渲染 view 渲染 html.rb 与相应的 action controller 或者渲染 aciton 渲染另一个不同的 controller 或者更明确地写作 渲染一个特 阅读全文

posted @ 2018-03-02 15:12 Lemo_wd 阅读(433) 评论(0) 推荐(0)

rails 杂记 - erb 中的 form_helper

摘要: 原文 1. form_tag 1) 基础 Form 生成 html 2) 指定 url与 method 生成 html 3) 指定 controller 与 action 4)几个 tag check_box_tag radio_button_tag 2. form_for 1)如果设置了 reso 阅读全文

posted @ 2018-03-02 12:43 Lemo_wd 阅读(287) 评论(0) 推荐(0)

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页

导航