Skip to content

Instantly share code, notes, and snippets.

* 937d61b (HEAD -> master, origin/master, origin/HEAD, github/master) Make :Acks handle custom delimiters and options (11 days ago) <Greg Hurrell>
* c6694c0 Merge branch 'pull/19' (12 days ago) <Greg Hurrell>
|\
| * c03cd0d (pull/19) doc: Make handler limitations more explicit (12 days ago) <Greg Hurrell>
| * 013acf1 Remove unnecessary whitespace change (12 days ago) <Greg Hurrell>
| * 7950cce doc: Avoid unwanted syntax highlighting (13 days ago) <Greg Hurrell>
| * cc52164 doc: Correct g:FerretLLHandler default (13 days ago) <Greg Hurrell>
| * bf5236d Only lookup handler settings when needed (13 days ago) <Greg Hurrell>
| * f0a7ca0 doc: Update HISTORY section (13 days ago) <Greg Hurrell>
| * b2e2b08 doc: Apply grammar tweak (13 days ago) <Greg Hurrell>
$ yak-layout layout-stats
Qwerty layout stats:
--------------------
Finger utilization:
-------------------
Left Ring Finger: 369,490 (10.49%) |----o |
Left Middle Finger: 427,167 (12.13%) |----o |
Left Index Finger: 686,492 (19.50%) |-------o |
$ yak-layout corpus-stats
Corpus length: 7,198,132 bytes
Unigrams by frequency (top 68 of 68):
-------------------------------------
e: 319,790 (11.37%)
t: 233,143 (8.29%)
r: 176,189 (6.26%)
a: 170,065 (6.05%)
n: 169,157 (6.01%)
$ yak-layout optimize colemak -c 10
Optimizing Colemak:
Starting fitness: 239,576.58
Iteration 0:
⎋ F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 ⌽
` 1 2 3 4 5 6 7 8 9 0 - = ⌫
⇥ q w f p g j l u y ; [ ] \
⇪ a r s x d h n e i o ' ↩
⇧ z t c v b k m , . / ⇧
f ⌃ ⌥ ⌘ ␣ ⌘ ⌥ ← ↑ ↓ →

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

diff --git a/ruby/command-t/controller.rb b/ruby/command-t/controller.rb
index 747d35f..908a743 100644
--- a/ruby/command-t/controller.rb
+++ b/ruby/command-t/controller.rb
@@ -242,6 +242,7 @@ def show
@prompt.focus
register_for_key_presses
set_up_autocmds
+ @active_finder.initial_buffer = @initial_buffer
clear # clears prompt and lists matches
$ make clean
$ ruby extconf.rb
checking for float.h... yes
checking for ruby.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for fcntl.h... yes
checking for sys/errno.h... yes
checking for sys/socket.h... yes
checking for ruby/st.h... yes
# HG changeset patch
# User Greg Hurrell <[email protected]>
# Date 1398722963 25200
# Mon Apr 28 15:09:23 2014 -0700
# Branch stable
# Node ID 0636a785b24d45923b50d694ba2937cddd4d3af5
# Parent bcfd44abad933390b1b21d7ffcd107fca0023dd2
help: clarify distinction among `contains`/`file`/`filelog`
For a Mercurial new-comer, the distinction between `contains(x)`, `file(x)`, and
Checking ruby_style/home/greg/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/overcommit-0.2.1/lib/overcommit/plugins/pre_commit/ruby_style.rb:23:in `run_check': undefined method `modified_lines' for nil:NilClass (NoMethodError)
from /home/greg/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/singleton.rb:99:in `partition'
from /home/greg/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/singleton.rb:99:in `each'
from /home/greg/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/overcommit-0.2.1/lib/overcommit/plugins/pre_commit/ruby_style.rb:18:in `lines'
from /home/greg/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/overcommit-0.2.1/lib/overcommit/plugins/pre_commit/ruby_style.rb:18:in `each'
from /home/greg/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/overcommit-0.2.1/lib/overcommit/plugins/pre_commit/ruby_style.rb:18:in `partition'
from /home/greg/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/overcommit-0.2.1/lib/
#!/usr/bin/env ruby
# Show how many lines people are "responsible" for, according to `git-blame`.
# optionally take a pathspec to use as a filter
pathspec = ARGV.any? ? "-- #{ARGV.join(' ')}" : ''
# grab all the files in the source tree, filtered by the pathspec
files = `git ls-tree -r HEAD #{pathspec}`.split("\n").map do |line|
metadata, path = line.split("\t")
end