ruby_learner 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +58 -0
- data/LICENSE.txt +21 -0
- data/README.md +65 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/new_terminal +25 -0
- data/bin/setup +8 -0
- data/docs/happy_ruby/RussOlsen_EloquentRuby_c1.pdf +0 -0
- data/docs/happy_ruby/RussOlsen_EloquentRuby_c5.pdf +0 -0
- data/docs/happy_ruby/TanoshiiRuby_v3_c23.pdf +0 -0
- data/docs/happy_ruby/TanoshiiRuby_v5_c1.pdf +0 -0
- data/docs/happy_ruby/TanoshiiRuby_v5_c2-3.pdf +0 -0
- data/docs/happy_ruby/c2.ipynb +479 -0
- data/docs/happy_ruby/c3_4.ipynb +237 -0
- data/docs/seminar/8-1.org +18 -0
- data/exe/ruby_learner +5 -0
- data/lib/ruby_learner/h.rb +14 -0
- data/lib/ruby_learner/methods.rb +131 -0
- data/lib/ruby_learner/random_h.rb +16 -0
- data/lib/ruby_learner/ruby_learner.rb +43 -0
- data/lib/ruby_learner/sequential_h.rb +15 -0
- data/lib/ruby_learner/typing_practice.rb +21 -0
- data/lib/ruby_learner/version.rb +3 -0
- data/questions/random_check/.rspec +1 -0
- data/questions/random_check/random_h.rb +16 -0
- data/questions/random_check/section_1/.rspec +1 -0
- data/questions/random_check/section_1/lib/answer.rb +15 -0
- data/questions/random_check/section_1/lib/sentence.org +9 -0
- data/questions/random_check/section_1/lib/workplace.rb +5 -0
- data/questions/random_check/section_1/spec/spec_helper.rb +100 -0
- data/questions/random_check/section_1/spec/workplace_spec.rb +10 -0
- data/questions/random_check/section_2/.rspec +1 -0
- data/questions/random_check/section_2/lib/answer.rb +17 -0
- data/questions/random_check/section_2/lib/sentence.org +12 -0
- data/questions/random_check/section_2/lib/workplace.rb +5 -0
- data/questions/random_check/section_2/spec/.rspec +1 -0
- data/questions/random_check/section_2/spec/spec_helper.rb +100 -0
- data/questions/random_check/section_2/spec/workplace_spec.rb +11 -0
- data/questions/sequential_check/section_1/part_1/lib/answer.rb +9 -0
- data/questions/sequential_check/section_1/part_1/lib/sentence.org +9 -0
- data/questions/sequential_check/section_1/part_1/lib/workplace.rb +5 -0
- data/questions/sequential_check/section_1/part_1/spec/spec_helper.rb +100 -0
- data/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb +10 -0
- data/questions/sequential_check/section_1/part_2/lib/answer.rb +16 -0
- data/questions/sequential_check/section_1/part_2/lib/sentence.org +12 -0
- data/questions/sequential_check/section_1/part_2/lib/workplace.rb +5 -0
- data/questions/sequential_check/section_1/part_2/spec/.rspec +1 -0
- data/questions/sequential_check/section_1/part_2/spec/spec_helper.rb +100 -0
- data/questions/sequential_check/section_1/part_2/spec/workplace_spec.rb +11 -0
- data/ruby_learner.gemspec +41 -0
- data/takahashi/docs/README.org +139 -0
- data/takahashi/docs/drill.html +875 -0
- data/takahashi/docs/drill.html~ +877 -0
- data/takahashi/docs/drill.org +446 -0
- data/takahashi/docs/ruby_for_beginner.html +2642 -0
- data/takahashi/docs/ruby_for_beginner.org +1430 -0
- data/takahashi/sample_prog/answer/10_1.rb +5 -0
- data/takahashi/sample_prog/answer/11_1.rb +5 -0
- data/takahashi/sample_prog/answer/11_2.rb +4 -0
- data/takahashi/sample_prog/answer/1_1.rb +1 -0
- data/takahashi/sample_prog/answer/1_2.rb +1 -0
- data/takahashi/sample_prog/answer/1_3.rb +1 -0
- data/takahashi/sample_prog/answer/2_1.rb +5 -0
- data/takahashi/sample_prog/answer/2_2.rb +12 -0
- data/takahashi/sample_prog/answer/3_1.rb +10 -0
- data/takahashi/sample_prog/answer/4_1.rb +7 -0
- data/takahashi/sample_prog/answer/5_1.rb +6 -0
- data/takahashi/sample_prog/answer/5_2.rb +3 -0
- data/takahashi/sample_prog/answer/6_1.rb +3 -0
- data/takahashi/sample_prog/answer/6_2.rb +5 -0
- data/takahashi/sample_prog/answer/6_3.rb +5 -0
- data/takahashi/sample_prog/answer/6_4.rb +7 -0
- data/takahashi/sample_prog/answer/7_1.rb +3 -0
- data/takahashi/sample_prog/answer/7_2.rb +8 -0
- data/takahashi/sample_prog/answer/9_1.rb +3 -0
- data/takahashi/sample_prog/answer/9_2.rb +5 -0
- data/takahashi/sample_prog/answer/9_3.rb +10 -0
- data/takahashi/sample_prog/answer/hello.rb +3 -0
- data/workshop/.rspec +1 -0
- data/workshop/emacs.d/ac-comphist.dat +50 -0
- data/workshop/emacs.d/cp5022x.el +156 -0
- data/workshop/emacs.d/elpa/archives/gnu/archive-contents +1240 -0
- data/workshop/emacs.d/elpa/archives/melpa/archive-contents +2 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-autoloads.el +65 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-config.el +551 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-config.elc +0 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-pkg.el +6 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete.el +2164 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete.elc +0 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ada-mode +72 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/c++-mode +99 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/c-mode +55 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/caml-mode +231 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/clojure-mode +580 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/clojurescript-mode +475 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/coq-mode +278 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/css-mode +874 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/erlang-mode +216 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ess-julia-mode +37 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/go-mode +25 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/haskell-mode +679 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/java-mode +53 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/js-mode +148 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/julia-mode +37 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/lua-mode +21 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/nim-mode +70 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/objc-mode +161 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/octave-mode +46 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/php-mode +6144 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/python-mode +379 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/qml-mode +183 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ruby-mode +181 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/scala-mode +1347 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/scheme-mode +216 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/sclang-mode +1481 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/sh-mode +182 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/swift-mode +87 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/tcl-mode +172 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ts-mode +797 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/tuareg-mode +231 -0
- data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/verilog-mode +313 -0
- data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults-autoloads.el +16 -0
- data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults-pkg.el +2 -0
- data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults.el +90 -0
- data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults.elc +0 -0
- data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode-autoloads.el +26 -0
- data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode-pkg.el +2 -0
- data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode.el +877 -0
- data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode.elc +0 -0
- data/workshop/emacs.d/elpa/haml-mode-readme.txt +8 -0
- data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-light-theme.el +918 -0
- data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-light-theme.elc +0 -0
- data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme-autoloads.el +32 -0
- data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme-pkg.el +8 -0
- data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme.el +912 -0
- data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme.elc +0 -0
- data/workshop/emacs.d/elpa/ox-bibtex-chinese-readme.txt +21 -0
- data/workshop/emacs.d/elpa/popup-20160709.729/popup-autoloads.el +15 -0
- data/workshop/emacs.d/elpa/popup-20160709.729/popup-pkg.el +2 -0
- data/workshop/emacs.d/elpa/popup-20160709.729/popup.el +1432 -0
- data/workshop/emacs.d/elpa/popup-20160709.729/popup.elc +0 -0
- data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode-autoloads.el +33 -0
- data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode-pkg.el +2 -0
- data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode.el +470 -0
- data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode.elc +0 -0
- data/workshop/emacs.d/elpa/yaml-mode-readme.txt +25 -0
- data/workshop/emacs.d/haml-mode-master/.gitignore +1 -0
- data/workshop/emacs.d/haml-mode-master/.mailmap +2 -0
- data/workshop/emacs.d/haml-mode-master/MIT-LICENSE +20 -0
- data/workshop/emacs.d/haml-mode-master/README.md +47 -0
- data/workshop/emacs.d/haml-mode-master/haml-mode.el +887 -0
- data/workshop/emacs.d/iceberg_theme.el +202 -0
- data/workshop/emacs.d/init-open-recentf.el +133 -0
- data/workshop/emacs.d/init.el +229 -0
- data/workshop/emacs.d/inits/line-num.el +264 -0
- data/workshop/emacs.d/install-elisp.el +366 -0
- data/workshop/emacs.d/markdown-mode/markdown-mode.el +5978 -0
- data/workshop/emacs.d/notes +12 -0
- data/workshop/emacs.d/processing-mode/processing-mode.el +275 -0
- data/workshop/emacs.d/recentf +31 -0
- data/workshop/emacs.d/ruby-mode/inf-ruby.el +416 -0
- data/workshop/emacs.d/ruby-mode/rdoc-mode.el +130 -0
- data/workshop/emacs.d/ruby-mode/ruby-electric.el +205 -0
- data/workshop/emacs.d/ruby-mode/ruby-mode.el +1496 -0
- data/workshop/emacs.d/ruby-mode/ruby-style.el +78 -0
- data/workshop/emacs.d/ruby-mode/rubydb2x.el +104 -0
- data/workshop/emacs.d/ruby-mode/rubydb3x.el +115 -0
- data/workshop/emacs.d/ruby_learner_init.el +244 -0
- data/workshop/emacs.d/themes/dracula-theme.el +431 -0
- data/workshop/emacs.d/themes/iceberg-theme.el +205 -0
- data/workshop/emacs.d/themes/my-misterioso-theme.el +109 -0
- data/workshop/emacs.d/themes/my-wombat-theme.el +121 -0
- data/workshop/emacs.d/wiki-mode/wiki.el +976 -0
- data/workshop/emacs_help.org +34 -0
- data/workshop/lib/answer.rb +1 -0
- data/workshop/lib/sentence.org +1 -0
- data/workshop/lib/workplace.rb +1 -0
- data/workshop/restore/empty.rb +0 -0
- data/workshop/spec/spec_helper.rb +100 -0
- data/workshop/spec/workplace_spec.rb +1 -0
- data/workshop/training_data.txt +3 -0
- metadata +343 -0
@@ -0,0 +1,216 @@
|
|
1
|
+
after
|
2
|
+
begin
|
3
|
+
catch
|
4
|
+
case
|
5
|
+
cond
|
6
|
+
end
|
7
|
+
fun
|
8
|
+
if
|
9
|
+
let
|
10
|
+
of
|
11
|
+
query
|
12
|
+
receive
|
13
|
+
try
|
14
|
+
when
|
15
|
+
and
|
16
|
+
andalso
|
17
|
+
band
|
18
|
+
bnot
|
19
|
+
bor
|
20
|
+
bsl
|
21
|
+
bsr
|
22
|
+
bxor
|
23
|
+
div
|
24
|
+
not
|
25
|
+
or
|
26
|
+
orelse
|
27
|
+
rem
|
28
|
+
xor
|
29
|
+
is_atom
|
30
|
+
is_binary
|
31
|
+
is_bitstring
|
32
|
+
is_boolean
|
33
|
+
is_float
|
34
|
+
is_function
|
35
|
+
is_integer
|
36
|
+
is_list
|
37
|
+
is_number
|
38
|
+
is_pid
|
39
|
+
is_port
|
40
|
+
is_record
|
41
|
+
is_reference
|
42
|
+
is_tuple
|
43
|
+
atom
|
44
|
+
binary
|
45
|
+
bitstring
|
46
|
+
boolean
|
47
|
+
function
|
48
|
+
integer
|
49
|
+
list
|
50
|
+
number
|
51
|
+
pid
|
52
|
+
port
|
53
|
+
record
|
54
|
+
reference
|
55
|
+
tuple
|
56
|
+
abs
|
57
|
+
adler32
|
58
|
+
adler32_combine
|
59
|
+
alive
|
60
|
+
apply
|
61
|
+
atom_to_binary
|
62
|
+
atom_to_list
|
63
|
+
binary_to_atom
|
64
|
+
binary_to_existing_atom
|
65
|
+
binary_to_list
|
66
|
+
binary_to_term
|
67
|
+
bit_size
|
68
|
+
bitstring_to_list
|
69
|
+
byte_size
|
70
|
+
check_process_code
|
71
|
+
contact_binary
|
72
|
+
crc32
|
73
|
+
crc32_combine
|
74
|
+
date
|
75
|
+
decode_packet
|
76
|
+
delete_module
|
77
|
+
disconnect_node
|
78
|
+
element
|
79
|
+
erase
|
80
|
+
exit
|
81
|
+
float
|
82
|
+
float_to_list
|
83
|
+
garbage_collect
|
84
|
+
get
|
85
|
+
get_keys
|
86
|
+
group_leader
|
87
|
+
halt
|
88
|
+
hd
|
89
|
+
integer_to_list
|
90
|
+
internal_bif
|
91
|
+
iolist_size
|
92
|
+
iolist_to_binary
|
93
|
+
is_alive
|
94
|
+
is_atom
|
95
|
+
is_binary
|
96
|
+
is_bitstring
|
97
|
+
is_boolean
|
98
|
+
is_float
|
99
|
+
is_function
|
100
|
+
is_integer
|
101
|
+
is_list
|
102
|
+
is_number
|
103
|
+
is_pid
|
104
|
+
is_port
|
105
|
+
is_process_alive
|
106
|
+
is_record
|
107
|
+
is_reference
|
108
|
+
is_tuple
|
109
|
+
length
|
110
|
+
link
|
111
|
+
list_to_atom
|
112
|
+
list_to_binary
|
113
|
+
list_to_bitstring
|
114
|
+
list_to_existing_atom
|
115
|
+
list_to_float
|
116
|
+
list_to_integer
|
117
|
+
list_to_pid
|
118
|
+
list_to_tuple
|
119
|
+
load_module
|
120
|
+
make_ref
|
121
|
+
module_loaded
|
122
|
+
monitor_node
|
123
|
+
node
|
124
|
+
node_link
|
125
|
+
node_unlink
|
126
|
+
nodes
|
127
|
+
notalive
|
128
|
+
now
|
129
|
+
open_port
|
130
|
+
pid_to_list
|
131
|
+
port_close
|
132
|
+
port_command
|
133
|
+
port_connect
|
134
|
+
port_control
|
135
|
+
pre_loaded
|
136
|
+
process_flag
|
137
|
+
process_info
|
138
|
+
processes
|
139
|
+
purge_module
|
140
|
+
put
|
141
|
+
register
|
142
|
+
registered
|
143
|
+
round
|
144
|
+
self
|
145
|
+
setelement
|
146
|
+
size
|
147
|
+
spawn
|
148
|
+
spawn_link
|
149
|
+
spawn_monitor
|
150
|
+
spawn_opt
|
151
|
+
split_binary
|
152
|
+
statistics
|
153
|
+
term_to_binary
|
154
|
+
time
|
155
|
+
throw
|
156
|
+
tl
|
157
|
+
trunc
|
158
|
+
tuple_size
|
159
|
+
tuple_to_list
|
160
|
+
unlink
|
161
|
+
unregister
|
162
|
+
whereis
|
163
|
+
append_element
|
164
|
+
bump_reductions
|
165
|
+
cancel_timer
|
166
|
+
demonitor
|
167
|
+
display
|
168
|
+
fun_info
|
169
|
+
fun_to_list
|
170
|
+
function_exported
|
171
|
+
get_cookie
|
172
|
+
get_stacktrace
|
173
|
+
hash
|
174
|
+
integer_to_list
|
175
|
+
is_builtin
|
176
|
+
list_to_integer
|
177
|
+
loaded
|
178
|
+
localtime
|
179
|
+
localtime_to_universaltime
|
180
|
+
make_tuple
|
181
|
+
max
|
182
|
+
md5
|
183
|
+
md5_final
|
184
|
+
md5_init
|
185
|
+
md5_update
|
186
|
+
memory
|
187
|
+
min
|
188
|
+
monitor
|
189
|
+
monitor_node
|
190
|
+
phash
|
191
|
+
phash2
|
192
|
+
port_call
|
193
|
+
port_info
|
194
|
+
port_to_list
|
195
|
+
ports
|
196
|
+
process_display
|
197
|
+
read_timer
|
198
|
+
ref_to_list
|
199
|
+
resume_process
|
200
|
+
send
|
201
|
+
send_after
|
202
|
+
send_nosuspend
|
203
|
+
set_cookie
|
204
|
+
start_timer
|
205
|
+
suspend_process
|
206
|
+
system_flag
|
207
|
+
system_info
|
208
|
+
system_monitor
|
209
|
+
system_profile
|
210
|
+
trace
|
211
|
+
trace_delivered
|
212
|
+
trace_info
|
213
|
+
trace_pattern
|
214
|
+
universaltime
|
215
|
+
universaltime_to_localtime
|
216
|
+
yield
|
@@ -0,0 +1,37 @@
|
|
1
|
+
abstract
|
2
|
+
break
|
3
|
+
case
|
4
|
+
catch
|
5
|
+
const
|
6
|
+
continue
|
7
|
+
do
|
8
|
+
else
|
9
|
+
elseif
|
10
|
+
end
|
11
|
+
eval
|
12
|
+
export
|
13
|
+
false
|
14
|
+
finally
|
15
|
+
for
|
16
|
+
function
|
17
|
+
global
|
18
|
+
if
|
19
|
+
ifelse
|
20
|
+
immutable
|
21
|
+
import
|
22
|
+
importall
|
23
|
+
in
|
24
|
+
let
|
25
|
+
macro
|
26
|
+
module
|
27
|
+
otherwise
|
28
|
+
quote
|
29
|
+
return
|
30
|
+
switch
|
31
|
+
throw
|
32
|
+
true
|
33
|
+
try
|
34
|
+
type
|
35
|
+
typealias
|
36
|
+
using
|
37
|
+
while
|