日時: | 2016-09-21 |
---|---|
作: | @voluntas |
バージョン: | 1.0.1 |
url: | https://voluntas.github.io/ |
2016 年 6 月 24 日に行われる BPStudy の発表資料です
日時: | 2016-09-21 |
---|---|
作: | @voluntas |
バージョン: | 1.0.1 |
url: | https://voluntas.github.io/ |
2016 年 6 月 24 日に行われる BPStudy の発表資料です
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
SPC s c remove highlight | |
**** Files manipulations key bindings | |
Files manipulation commands (start with ~f~): | |
| Key Binding | Description | | |
|-------------+----------------------------------------------------------------| | |
| ~SPC f c~ | copy current file to a different location | | |
| ~SPC f C d~ | convert file from unix to dos encoding | | |
| ~SPC f C u~ | convert file from dos to unix encoding | |
# | |
# 数字 | |
# | |
# 全て数値(全角) | |
/\A[0-9]+\z/ | |
# 全て数値(半角) | |
/\A[0-9]+\z/ |
Relevant Rails PRs
h/t to http://juanitofatas.com/2015/01/31/rails-5-active-record-or/ for some more useful links
Spurred by recent events (https://news.ycombinator.com/item?id=8244700), this is a quick set of jotted-down thoughts about the state of "Semantic" Versioning, and why we should be fighting the good fight against it.
For a long time in the history of software, version numbers indicated the relative progress and change in a given piece of software. A major release (1.x.x) was major, a minor release (x.1.x) was minor, and a patch release was just a small patch. You could evaluate a given piece of software by name + version, and get a feeling for how far away version 2.0.1 was from version 2.8.0.
But Semantic Versioning (henceforth, SemVer), as specified at http://semver.org/, changes this to prioritize a mechanistic understanding of a codebase over a human one. Any "breaking" change to the software must be accompanied with a new major version number. It's alright for robots, but bad for us.
SemVer tries to compress a huge amount of information — the nature of the change, the percentage of users that wil
module ApplicationHelper | |
def render_thumbsup_button(options) | |
options[:url] ||= thumbsup_path | |
options[:method] ||= :put | |
options[:count] ||= 0 | |
# ローカル変数を渡したいときのみ locals が必要 | |
render inline: <<-HAML.strip_heredoc, type: :haml, locals: options | |
.thumbsup | |
= form_tag url, method: method do | |
%button.btn.btn-xs |