(ruby-core:18872の翻訳)
Title: [RIP] Guy Decoux.
こんにちわ。
2008年7月のはじめにGuy Decouxが亡くなりました。 彼の死をみなさんに伝えるのは悲しいことです。53歳でした。
(ruby-core:18872の翻訳)
Title: [RIP] Guy Decoux.
こんにちわ。
2008年7月のはじめにGuy Decouxが亡くなりました。 彼の死をみなさんに伝えるのは悲しいことです。53歳でした。
Why Should I Care (For Developers)
"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."
| var net = require('net'), | |
| hpack = require('./hpack'); | |
| var FRAME_HEADER_LEN = 9; | |
| function createSettingsFrame(ack) { | |
| var flag = ack ? 0x1 : 0x0; | |
| var frameHeader = new Buffer(FRAME_HEADER_LEN); | |
| frameHeader.writeUInt32BE(0x0, 0); |
が分離していて、それがコード上の構造で表現されているのがよいと思います。 分離すると、どこかで結合しないといけないのでマッピングが発生します。 そこは互いのインターフェイスをどう解釈するかという表現なので明示的になっているほうがよいと思います。
| ActiveSupport.on_load :active_record do | |
| module ActiveRecord::ConnectionAdapters | |
| class AbstractMysqlAdapter | |
| def create_table_with_innodb_row_format(table_name, options = {}) | |
| table_options = options.merge(:options => 'ENGINE=InnoDB ROW_FORMAT=DYNAMIC') | |
| create_table_without_innodb_row_format(table_name, table_options) do |td| | |
| yield td if block_given? | |
| end | |
| end | |
| alias_method_chain :create_table, :innodb_row_format |
NOTE: This guide has moved to https://github.com/bpierre/switch-to-vim-for-good
This guide is coming from an email I used to send to newcomers to Vim. It is not intended to be a complete guide, it is about how I switched myself.
My decision to switch to Vim has been made a long time ago. Coming from TextMate 1, I wanted to learn an editor that is Open Source (so I don’t lose my time learning a tool that can be killed), cross platform (so I can use it everywhere), and powerful enough (so I won’t regret TextMate). For these reasons, Vim has always been the editor I wanted to learn, but it took me several years before I did it in a way that works for me. I tried to switch progressively, using the Janus Vim distribution for a few months, then got back to using TextMate 2 for a time, waiting for the next attempt… here is what finally worked for me.
Original gist with comments: https://gist.github.com/bpierre/0a0025d348b6001394e0
| class OpenClass | |
| module InternalMethods | |
| refine OpenClass do | |
| def foo | |
| :foo | |
| end | |
| end | |
| end | |
| using InternalMethods | |
| def bar |
| =begin | |
| ## エラトステネスのふるい とは | |
| エラトステネスのふるいは、x^(1/2) 以下の素数が既知のとき、 | |
| x^(1/2) 以上 x 以下の素数を決定するには、x 以下の整数で | |
| x^(1/2) 以下の素数の倍数を全て取り除けばよいというものです | |
| ## なぜ組み込みのエラトステネスのふるい は早いのか |
| // ==UserScript== | |
| // @name WIP Pull Request Unhighlignter | |
| // @author sinsoku | |
| // @version 0.4 | |
| // @match https://github.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; |
Why Uber Engineering Switched from Postgres to MySQL - Uber Engineering Blog のまとめ
Posgresqlだと