Ctrl キーは、Emacs 的なキーバインド。
Windows キーは、オリジナルの Windows での Ctrl キーのように振舞う。
Windows キーと Ctrl キーを区別するために、 Ctrl キーについては mod0 という新しいモディファイアとして扱うようにして、 emacsedit.nodoka ファイルを修正して、C- となっている部分をすべて M0- に置き換えた。
| SELECT系SQLでできることとかActiveRecordでできること | |
| # people | |
| * name : 名前(文字列) | |
| * age : 年齢(整数) | |
| | id | name | age | | |
| | 1 | John | 18 | | |
| | 2 | Ben | 27 | |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| [diff] | |
| tool = Kaleidoscope | |
| [difftool] | |
| prompt = false | |
| [difftool "Kaleidoscope"] | |
| cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\" | |
| [merge] | |
| tool = Kaleidoscope | |
| keepBackup = false | |
| [mergetool] |
| require 'rails_helper' | |
| RSpec.describe TodosController, :type => :controller do | |
| describe "GET #index" do | |
| #describe "POST #create" do | |
| #describe "GET #show" do | |
| #describe "PATCH #update" do (or PUT #update) | |
| #describe "DELETE #destroy" do | |
| #describe "GET #new" do |
| gulp = require 'gulp' | |
| plumber = require 'gulp-plumber' | |
| coffee = require 'gulp-coffee' | |
| coffee_react = require 'gulp-cjsx' | |
| watchify = require 'gulp-watchify' | |
| rename = require 'gulp-rename' | |
| uglify = require 'gulp-uglify' | |
| sourcemaps = require 'gulp-sourcemaps' | |
| buffer = require 'vinyl-buffer' |
I've taken the benchmarks from Matthew Rothenberg's phoenix-showdown, updated Phoenix to 0.13.1 and ran the tests on the most powerful machines available at Rackspace.
| Framework | Throughput (req/s) | Latency (ms) | Consistency (σ ms) |
|---|
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))