ruby_learner 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +5 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +6 -0
  7. data/Gemfile.lock +58 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +65 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/new_terminal +25 -0
  13. data/bin/setup +8 -0
  14. data/docs/happy_ruby/RussOlsen_EloquentRuby_c1.pdf +0 -0
  15. data/docs/happy_ruby/RussOlsen_EloquentRuby_c5.pdf +0 -0
  16. data/docs/happy_ruby/TanoshiiRuby_v3_c23.pdf +0 -0
  17. data/docs/happy_ruby/TanoshiiRuby_v5_c1.pdf +0 -0
  18. data/docs/happy_ruby/TanoshiiRuby_v5_c2-3.pdf +0 -0
  19. data/docs/happy_ruby/c2.ipynb +479 -0
  20. data/docs/happy_ruby/c3_4.ipynb +237 -0
  21. data/docs/seminar/8-1.org +18 -0
  22. data/exe/ruby_learner +5 -0
  23. data/lib/ruby_learner/h.rb +14 -0
  24. data/lib/ruby_learner/methods.rb +131 -0
  25. data/lib/ruby_learner/random_h.rb +16 -0
  26. data/lib/ruby_learner/ruby_learner.rb +43 -0
  27. data/lib/ruby_learner/sequential_h.rb +15 -0
  28. data/lib/ruby_learner/typing_practice.rb +21 -0
  29. data/lib/ruby_learner/version.rb +3 -0
  30. data/questions/random_check/.rspec +1 -0
  31. data/questions/random_check/random_h.rb +16 -0
  32. data/questions/random_check/section_1/.rspec +1 -0
  33. data/questions/random_check/section_1/lib/answer.rb +15 -0
  34. data/questions/random_check/section_1/lib/sentence.org +9 -0
  35. data/questions/random_check/section_1/lib/workplace.rb +5 -0
  36. data/questions/random_check/section_1/spec/spec_helper.rb +100 -0
  37. data/questions/random_check/section_1/spec/workplace_spec.rb +10 -0
  38. data/questions/random_check/section_2/.rspec +1 -0
  39. data/questions/random_check/section_2/lib/answer.rb +17 -0
  40. data/questions/random_check/section_2/lib/sentence.org +12 -0
  41. data/questions/random_check/section_2/lib/workplace.rb +5 -0
  42. data/questions/random_check/section_2/spec/.rspec +1 -0
  43. data/questions/random_check/section_2/spec/spec_helper.rb +100 -0
  44. data/questions/random_check/section_2/spec/workplace_spec.rb +11 -0
  45. data/questions/sequential_check/section_1/part_1/lib/answer.rb +9 -0
  46. data/questions/sequential_check/section_1/part_1/lib/sentence.org +9 -0
  47. data/questions/sequential_check/section_1/part_1/lib/workplace.rb +5 -0
  48. data/questions/sequential_check/section_1/part_1/spec/spec_helper.rb +100 -0
  49. data/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb +10 -0
  50. data/questions/sequential_check/section_1/part_2/lib/answer.rb +16 -0
  51. data/questions/sequential_check/section_1/part_2/lib/sentence.org +12 -0
  52. data/questions/sequential_check/section_1/part_2/lib/workplace.rb +5 -0
  53. data/questions/sequential_check/section_1/part_2/spec/.rspec +1 -0
  54. data/questions/sequential_check/section_1/part_2/spec/spec_helper.rb +100 -0
  55. data/questions/sequential_check/section_1/part_2/spec/workplace_spec.rb +11 -0
  56. data/ruby_learner.gemspec +41 -0
  57. data/takahashi/docs/README.org +139 -0
  58. data/takahashi/docs/drill.html +875 -0
  59. data/takahashi/docs/drill.html~ +877 -0
  60. data/takahashi/docs/drill.org +446 -0
  61. data/takahashi/docs/ruby_for_beginner.html +2642 -0
  62. data/takahashi/docs/ruby_for_beginner.org +1430 -0
  63. data/takahashi/sample_prog/answer/10_1.rb +5 -0
  64. data/takahashi/sample_prog/answer/11_1.rb +5 -0
  65. data/takahashi/sample_prog/answer/11_2.rb +4 -0
  66. data/takahashi/sample_prog/answer/1_1.rb +1 -0
  67. data/takahashi/sample_prog/answer/1_2.rb +1 -0
  68. data/takahashi/sample_prog/answer/1_3.rb +1 -0
  69. data/takahashi/sample_prog/answer/2_1.rb +5 -0
  70. data/takahashi/sample_prog/answer/2_2.rb +12 -0
  71. data/takahashi/sample_prog/answer/3_1.rb +10 -0
  72. data/takahashi/sample_prog/answer/4_1.rb +7 -0
  73. data/takahashi/sample_prog/answer/5_1.rb +6 -0
  74. data/takahashi/sample_prog/answer/5_2.rb +3 -0
  75. data/takahashi/sample_prog/answer/6_1.rb +3 -0
  76. data/takahashi/sample_prog/answer/6_2.rb +5 -0
  77. data/takahashi/sample_prog/answer/6_3.rb +5 -0
  78. data/takahashi/sample_prog/answer/6_4.rb +7 -0
  79. data/takahashi/sample_prog/answer/7_1.rb +3 -0
  80. data/takahashi/sample_prog/answer/7_2.rb +8 -0
  81. data/takahashi/sample_prog/answer/9_1.rb +3 -0
  82. data/takahashi/sample_prog/answer/9_2.rb +5 -0
  83. data/takahashi/sample_prog/answer/9_3.rb +10 -0
  84. data/takahashi/sample_prog/answer/hello.rb +3 -0
  85. data/workshop/.rspec +1 -0
  86. data/workshop/emacs.d/ac-comphist.dat +50 -0
  87. data/workshop/emacs.d/cp5022x.el +156 -0
  88. data/workshop/emacs.d/elpa/archives/gnu/archive-contents +1240 -0
  89. data/workshop/emacs.d/elpa/archives/melpa/archive-contents +2 -0
  90. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-autoloads.el +65 -0
  91. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-config.el +551 -0
  92. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-config.elc +0 -0
  93. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-pkg.el +6 -0
  94. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete.el +2164 -0
  95. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete.elc +0 -0
  96. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ada-mode +72 -0
  97. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/c++-mode +99 -0
  98. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/c-mode +55 -0
  99. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/caml-mode +231 -0
  100. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/clojure-mode +580 -0
  101. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/clojurescript-mode +475 -0
  102. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/coq-mode +278 -0
  103. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/css-mode +874 -0
  104. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/erlang-mode +216 -0
  105. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ess-julia-mode +37 -0
  106. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/go-mode +25 -0
  107. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/haskell-mode +679 -0
  108. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/java-mode +53 -0
  109. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/js-mode +148 -0
  110. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/julia-mode +37 -0
  111. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/lua-mode +21 -0
  112. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/nim-mode +70 -0
  113. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/objc-mode +161 -0
  114. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/octave-mode +46 -0
  115. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/php-mode +6144 -0
  116. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/python-mode +379 -0
  117. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/qml-mode +183 -0
  118. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ruby-mode +181 -0
  119. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/scala-mode +1347 -0
  120. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/scheme-mode +216 -0
  121. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/sclang-mode +1481 -0
  122. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/sh-mode +182 -0
  123. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/swift-mode +87 -0
  124. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/tcl-mode +172 -0
  125. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ts-mode +797 -0
  126. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/tuareg-mode +231 -0
  127. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/verilog-mode +313 -0
  128. data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults-autoloads.el +16 -0
  129. data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults-pkg.el +2 -0
  130. data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults.el +90 -0
  131. data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults.elc +0 -0
  132. data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode-autoloads.el +26 -0
  133. data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode-pkg.el +2 -0
  134. data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode.el +877 -0
  135. data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode.elc +0 -0
  136. data/workshop/emacs.d/elpa/haml-mode-readme.txt +8 -0
  137. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-light-theme.el +918 -0
  138. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-light-theme.elc +0 -0
  139. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme-autoloads.el +32 -0
  140. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme-pkg.el +8 -0
  141. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme.el +912 -0
  142. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme.elc +0 -0
  143. data/workshop/emacs.d/elpa/ox-bibtex-chinese-readme.txt +21 -0
  144. data/workshop/emacs.d/elpa/popup-20160709.729/popup-autoloads.el +15 -0
  145. data/workshop/emacs.d/elpa/popup-20160709.729/popup-pkg.el +2 -0
  146. data/workshop/emacs.d/elpa/popup-20160709.729/popup.el +1432 -0
  147. data/workshop/emacs.d/elpa/popup-20160709.729/popup.elc +0 -0
  148. data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode-autoloads.el +33 -0
  149. data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode-pkg.el +2 -0
  150. data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode.el +470 -0
  151. data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode.elc +0 -0
  152. data/workshop/emacs.d/elpa/yaml-mode-readme.txt +25 -0
  153. data/workshop/emacs.d/haml-mode-master/.gitignore +1 -0
  154. data/workshop/emacs.d/haml-mode-master/.mailmap +2 -0
  155. data/workshop/emacs.d/haml-mode-master/MIT-LICENSE +20 -0
  156. data/workshop/emacs.d/haml-mode-master/README.md +47 -0
  157. data/workshop/emacs.d/haml-mode-master/haml-mode.el +887 -0
  158. data/workshop/emacs.d/iceberg_theme.el +202 -0
  159. data/workshop/emacs.d/init-open-recentf.el +133 -0
  160. data/workshop/emacs.d/init.el +229 -0
  161. data/workshop/emacs.d/inits/line-num.el +264 -0
  162. data/workshop/emacs.d/install-elisp.el +366 -0
  163. data/workshop/emacs.d/markdown-mode/markdown-mode.el +5978 -0
  164. data/workshop/emacs.d/notes +12 -0
  165. data/workshop/emacs.d/processing-mode/processing-mode.el +275 -0
  166. data/workshop/emacs.d/recentf +31 -0
  167. data/workshop/emacs.d/ruby-mode/inf-ruby.el +416 -0
  168. data/workshop/emacs.d/ruby-mode/rdoc-mode.el +130 -0
  169. data/workshop/emacs.d/ruby-mode/ruby-electric.el +205 -0
  170. data/workshop/emacs.d/ruby-mode/ruby-mode.el +1496 -0
  171. data/workshop/emacs.d/ruby-mode/ruby-style.el +78 -0
  172. data/workshop/emacs.d/ruby-mode/rubydb2x.el +104 -0
  173. data/workshop/emacs.d/ruby-mode/rubydb3x.el +115 -0
  174. data/workshop/emacs.d/ruby_learner_init.el +244 -0
  175. data/workshop/emacs.d/themes/dracula-theme.el +431 -0
  176. data/workshop/emacs.d/themes/iceberg-theme.el +205 -0
  177. data/workshop/emacs.d/themes/my-misterioso-theme.el +109 -0
  178. data/workshop/emacs.d/themes/my-wombat-theme.el +121 -0
  179. data/workshop/emacs.d/wiki-mode/wiki.el +976 -0
  180. data/workshop/emacs_help.org +34 -0
  181. data/workshop/lib/answer.rb +1 -0
  182. data/workshop/lib/sentence.org +1 -0
  183. data/workshop/lib/workplace.rb +1 -0
  184. data/workshop/restore/empty.rb +0 -0
  185. data/workshop/spec/spec_helper.rb +100 -0
  186. data/workshop/spec/workplace_spec.rb +1 -0
  187. data/workshop/training_data.txt +3 -0
  188. metadata +343 -0
@@ -0,0 +1,72 @@
1
+ abort
2
+ abs
3
+ abstract
4
+ accept
5
+ access
6
+ aliased
7
+ all
8
+ and
9
+ array
10
+ at
11
+ begin
12
+ body
13
+ case
14
+ constant
15
+ declare
16
+ delay
17
+ delta
18
+ digits
19
+ do
20
+ else
21
+ elsif
22
+ end
23
+ entry
24
+ exception
25
+ exit
26
+ for
27
+ function
28
+ generic
29
+ goto
30
+ if
31
+ in
32
+ interface
33
+ is
34
+ limited
35
+ loop
36
+ mod
37
+ new
38
+ not
39
+ null
40
+ of
41
+ or
42
+ others
43
+ out
44
+ overriding
45
+ package
46
+ pragma
47
+ private
48
+ procedure
49
+ protected
50
+ raise
51
+ range
52
+ record
53
+ rem
54
+ renames
55
+ requeue
56
+ return
57
+ reverse
58
+ select
59
+ separate
60
+ subtype
61
+ synchronized
62
+ tagged
63
+ task
64
+ terminate
65
+ then
66
+ type
67
+ until
68
+ use
69
+ when
70
+ while
71
+ with
72
+ xor
@@ -0,0 +1,99 @@
1
+ alignas
2
+ alignof
3
+ and
4
+ and_eq
5
+ asm
6
+ auto
7
+ bitand
8
+ bitor
9
+ bool
10
+ break
11
+ case
12
+ catch
13
+ char
14
+ char16_t
15
+ char32_t
16
+ class
17
+ compl
18
+ concept
19
+ const
20
+ const_cast
21
+ constexpr
22
+ continue
23
+ decltype
24
+ default
25
+ define
26
+ defined
27
+ delete
28
+ do
29
+ double
30
+ dynamic_cast
31
+ elif
32
+ else
33
+ endif
34
+ enum
35
+ error
36
+ explicit
37
+ export
38
+ extern
39
+ false
40
+ final
41
+ float
42
+ for
43
+ friend
44
+ goto
45
+ if
46
+ ifdef
47
+ ifndef
48
+ include
49
+ inline
50
+ int
51
+ line
52
+ long
53
+ mutable
54
+ namespace
55
+ new
56
+ noexcept
57
+ not
58
+ not_eq
59
+ nullptr
60
+ operator
61
+ or
62
+ or_eq
63
+ override
64
+ pragma
65
+ _Pragma
66
+ private
67
+ protected
68
+ public
69
+ register
70
+ reinterpret_cast
71
+ requires
72
+ return
73
+ short
74
+ signed
75
+ sizeof
76
+ static
77
+ static_assert
78
+ static_cast
79
+ struct
80
+ switch
81
+ template
82
+ this
83
+ thread_local
84
+ throw
85
+ true
86
+ try
87
+ typedef
88
+ typeid
89
+ typename
90
+ union
91
+ unsigned
92
+ using
93
+ virtual
94
+ void
95
+ volatile
96
+ wchar_t
97
+ while
98
+ xor
99
+ xor_eq
@@ -0,0 +1,55 @@
1
+ auto
2
+ _Alignas
3
+ _Alignof
4
+ _Atomic
5
+ _Bool
6
+ break
7
+ case
8
+ char
9
+ _Complex
10
+ const
11
+ continue
12
+ default
13
+ define
14
+ defined
15
+ do
16
+ double
17
+ elif
18
+ else
19
+ endif
20
+ enum
21
+ error
22
+ extern
23
+ float
24
+ for
25
+ goto
26
+ _Generic
27
+ if
28
+ ifdef
29
+ ifndef
30
+ _Imaginary
31
+ include
32
+ inline
33
+ int
34
+ line
35
+ long
36
+ _Noreturn
37
+ pragma
38
+ register
39
+ restrict
40
+ return
41
+ short
42
+ signed
43
+ sizeof
44
+ static
45
+ struct
46
+ switch
47
+ _Static_assert
48
+ typedef
49
+ _Thread_local
50
+ undef
51
+ union
52
+ unsigned
53
+ void
54
+ volatile
55
+ while
@@ -0,0 +1,231 @@
1
+ # OCaml 3.12.1
2
+
3
+ # Keywords
4
+ and
5
+ as
6
+ assert
7
+ begin
8
+ class
9
+ constraint
10
+ do
11
+ done
12
+ downto
13
+ else
14
+ end
15
+ exception
16
+ external
17
+ false
18
+ for
19
+ fun
20
+ function
21
+ functor
22
+ if
23
+ in
24
+ include
25
+ inherit
26
+ initializer
27
+ lazy
28
+ let
29
+ match
30
+ method
31
+ module
32
+ mutable
33
+ new
34
+ object
35
+ of
36
+ open
37
+ or
38
+ private
39
+ rec
40
+ sig
41
+ struct
42
+ then
43
+ to
44
+ true
45
+ try
46
+ type
47
+ val
48
+ virtual
49
+ when
50
+ while
51
+ with
52
+
53
+ # Pervasives
54
+ !
55
+ !=
56
+ &
57
+ &&
58
+ *
59
+ **
60
+ *.
61
+ +
62
+ +.
63
+ -
64
+ -.
65
+ /
66
+ /.
67
+ :=
68
+ <
69
+ <=
70
+ <>
71
+ =
72
+ ==
73
+ >
74
+ >=
75
+ @
76
+ FP_infinite
77
+ FP_nan
78
+ FP_normal
79
+ FP_subnormal
80
+ FP_zero
81
+ LargeFile
82
+ Open_append
83
+ Open_binary
84
+ Open_creat
85
+ Open_nonblock
86
+ Open_rdonly
87
+ Open_text
88
+ Open_trunc
89
+ Open_wronly
90
+ Oupen_excl
91
+ ^
92
+ ^^
93
+ abs
94
+ abs_float
95
+ acos
96
+ asin
97
+ asr
98
+ at_exit
99
+ atan
100
+ atan2
101
+ bool_of_string
102
+ ceil
103
+ char_of_int
104
+ classify_float
105
+ close_in
106
+ close_in_noerr
107
+ close_out
108
+ close_out_noerr
109
+ compare
110
+ cos
111
+ cosh
112
+ decr
113
+ do_at_exit
114
+ epsilon_float
115
+ exit
116
+ exp
117
+ expm1
118
+ failwith
119
+ float
120
+ float_of_int
121
+ float_of_string
122
+ floor
123
+ flush
124
+ flush_all
125
+ format
126
+ format4
127
+ format_of_string
128
+ fpclass
129
+ frexp
130
+ fst
131
+ ignore
132
+ in_channel
133
+ in_channel_length
134
+ incr
135
+ infinity
136
+ input
137
+ input_binary_int
138
+ input_byte
139
+ input_char
140
+ input_line
141
+ input_value
142
+ int_of_char
143
+ int_of_float
144
+ int_of_string
145
+ invalid_arg
146
+ land
147
+ ldexp
148
+ lnot
149
+ log
150
+ log10
151
+ log1p
152
+ lor
153
+ lsl
154
+ lsr
155
+ lxor
156
+ max
157
+ max_float
158
+ max_int
159
+ min
160
+ min_float
161
+ min_int
162
+ mod
163
+ mod_float
164
+ modf
165
+ nan
166
+ neg_infinity
167
+ not
168
+ open_flag
169
+ open_in
170
+ open_in_bin
171
+ open_in_gen
172
+ open_out
173
+ open_out_bin
174
+ open_out_gen
175
+ or
176
+ out_channel
177
+ out_channel_length
178
+ output
179
+ output_binary_int
180
+ output_byte
181
+ output_char
182
+ output_string
183
+ output_value
184
+ pos_in
185
+ pos_out
186
+ pred
187
+ prerr_char
188
+ prerr_endline
189
+ prerr_float
190
+ prerr_int
191
+ prerr_newline
192
+ prerr_string
193
+ print_char
194
+ print_endline
195
+ print_float
196
+ print_int
197
+ print_newline
198
+ print_string
199
+ raise
200
+ read_float
201
+ read_int
202
+ read_line
203
+ really_input
204
+ ref
205
+ seek_in
206
+ seek_out
207
+ set_binary_mode_in
208
+ set_binary_mode_out
209
+ sin
210
+ sinh
211
+ snd
212
+ sqrt
213
+ stderr
214
+ stdin
215
+ stdout
216
+ string_of_bool
217
+ string_of_float
218
+ string_of_format
219
+ string_of_int
220
+ succ
221
+ tan
222
+ tanh
223
+ truncate
224
+ unsafe_really_input
225
+ valid_float_lexem
226
+ ||
227
+ ~
228
+ ~+
229
+ ~+.
230
+ ~-
231
+ ~-.