雅虎香港 搜尋

搜尋結果

  1. FormCore is a minimal pure functional language based on self dependent types. It is, essentially, the simplest language capable of theorem proving via inductive reasoning. Its syntax is simple:

  2. How a space “feels” impacts how we interact with others at school, work, in the doctors office or at home. At Fōmcore we believe in creating spaces that are a catalyst for connection, learning, and creativity! Discover the solutions Fōmcore has to offer for these industries and beyond! EXPLORE INDUSTRIES.

    • 缘起
    • 但请注意
    • 附录

    在 知人,我们的系统里有很多依赖用户定义的表单,比如不同的公司会在员工档案中添加额外的项目,审批流程的表单内容,则完全交给用户自行设计,字段的数据类型也多种多样,如简单的文本字段、数字字段、开关字段,复杂的有聚合字段(如地址字段含省市区)、数据引用字段、嵌套字段(如报销清单)等,其丰富程度并不亚于同样适用 Rails 技术开发的产品 —— 金数据。 前一段时间,我负责了重构这个模块,在这过程中,我发现了一种方法使得我在一天不到的时间内就完成了原型的开发。并且我相信这也是一个很有趣、很有普遍需求(主要是企业系统)的功能,所以,我通过实现一个非常简单的 Gem,来介绍这个思路。 这个 Gem 包含了两部分: 1. FormCore,一个 Rails Engine 提供了动态表单系统的核心逻辑 2...

    你不必直接使用 Form Core,它主要展示了一种手法。 我将在后文介绍思路,实际上,我并未完成这个 Gem,我的个人能力有限,有一些做法我仍未找到最好的方式,并且接下来我要把精力用到组织本年的 RubyConf China 上(9.16 - 17,杭州),在这种情况下与其闭门造车,不妨在此期间公开出来听取社区朋友们的想法。我也有意把随附的 Dummy app 打造成一个生产级标准的项目,作为笔记。 此外,随着代码的推进,我也会不时更新这篇文章。

    ActiveRecord::Attributes#attribute

    文档在此 继承 ActiveRecord::Base 的模型,都可以享受到,作用是显式的声明字段,强大的是,他支持默认值,并且这个默认值可以是一个 proc。 举例,设置默认值的时候可以 attribute :published_at, :datetime, default: -> { Time.now }这样做 另外你需要在模型中的数据类型和数据库中的不一致的时候,也可以考虑使用它

    enum 的 i18n

    enum 字段是 Rails 5 的新功能,但遗憾的是,官方没有提供枚举字段的 i18n 方法,坛友 @zmbacker 的 enum_help 是个不错的方案,但是,没有考虑 fallback,在 STI 的时候,就会遇到一点问题,我的方案参考 lib/enum_translate.rb 这么用: 不过稍微啰嗦了一点(眼尖的估计能看出来这是魔改自哪里的代码了...)

  3. Soft, durable, light-weight, and weather resistant is what you can expect from Fōmcore’s new outdoor-friendly furniture. Produced using marine grade nylon thread and vinyl with UV and fade resistant protection, you can enjoy the same Fōmcore quality and craftsmanship backed with a 3-year warranty. VIEW COLLECTION.

    • formcore1
    • formcore2
    • formcore3
    • formcore4
    • formcore5
  4. Features. Front-end and back-end are separated, exposing a fine set of form-related API; Forms are inheritable, so that the end user does not need to build every form from scratch; Multiple inheritance is supported, meaning that one form can inherit from multiple parent forms;

  5. Ottoman and Benches. The Ottoman and Bench Series takes flexible seating to the next level. With a lightweight, solid foam structure, it's easy to create exactly what you need. Whether you are looking to create a personal space or collaborative environment, you can do it quickly and efficiently with pieces from the Ottoman and Bench Series.

  6. en.wikipedia.org › wiki › FoamcoreFoamcore - Wikipedia

    Foamcore, foam board, or paper-faced foam board is a lightweight and easily cut material used for mounting of photographic prints, as backing for picture framing, for making scale models, and in painting. It consists of a board of polystyrene foam clad with an outer facing of paper on either side, typically white clay-coated paper or brown ...