hyper_card 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/CODE_OF_CONDUCT.md +132 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.org +75 -0
  6. data/Rakefile +36 -0
  7. data/docs/c_basic/2_5_2.c +17 -0
  8. data/docs/c_basic/README.html +175 -0
  9. data/docs/c_basic/README.org +67 -0
  10. data/docs/hyper_card/README.html +104 -0
  11. data/docs/hyper_card/README.org +35 -0
  12. data/docs/hyper_card/Rakefile +8 -0
  13. data/docs/hyper_card/hc_index.rb +54 -0
  14. data/docs/hyper_card/images/HyperCard_24f-01.jpg +0 -0
  15. data/docs/hyper_card/images/HyperCard_24f-02.jpg +0 -0
  16. data/docs/hyper_card/images/HyperCard_24f-03.jpg +0 -0
  17. data/docs/hyper_card/images/HyperCard_24f-04.jpg +0 -0
  18. data/docs/hyper_card/images/HyperCard_24f-05.jpg +0 -0
  19. data/docs/hyper_card/images/HyperCard_24f-06.jpg +0 -0
  20. data/docs/hyper_card/images/HyperCard_24f-07.jpg +0 -0
  21. data/docs/hyper_card/images/HyperCard_24f-08.jpg +0 -0
  22. data/docs/hyper_card/images/HyperCard_24f-09.jpg +0 -0
  23. data/docs/hyper_card/images/HyperCard_24f-10.jpg +0 -0
  24. data/docs/hyper_card/images/HyperCard_24f-11.jpg +0 -0
  25. data/docs/hyper_card/images/HyperCard_24f-12.jpg +0 -0
  26. data/docs/hyper_card/images/HyperCard_24f-13.jpg +0 -0
  27. data/docs/hyper_card/multiple_rake.html +40 -0
  28. data/docs/hyper_card/multiple_rake.org +17 -0
  29. data/docs/hyper_card/rakelib/al_twist.rake +58 -0
  30. data/docs/hyper_card/rakelib/comp_a.rake +55 -0
  31. data/docs/hyper_card/schizophrenia_vs_paranoia/Kato10_book_review_eto.html +105 -0
  32. data/docs/hyper_card/schizophrenia_vs_paranoia/Kato10_book_review_eto.org +49 -0
  33. data/docs/hyper_card/schizophrenia_vs_paranoia/TetsugakuRenshu20_296.html +131 -0
  34. data/docs/hyper_card/schizophrenia_vs_paranoia/TetsugakuRenshu20_296.org +55 -0
  35. data/docs/ruby_basic/README.html +115 -0
  36. data/docs/ruby_basic/README.org +30 -0
  37. data/docs/ruby_basic/Rakefile +56 -0
  38. data/docs/ruby_basic/Rakefile_on_site +69 -0
  39. data/docs/ruby_basic/basic_6/README.org +12 -0
  40. data/docs/ruby_basic/basic_6/readlines.rb +5 -0
  41. data/docs/ruby_basic/fsm/README.html +189 -0
  42. data/docs/ruby_basic/fsm/README.org +27 -0
  43. data/docs/ruby_basic/fsm/README_sample.org +25 -0
  44. data/docs/ruby_basic/fsm/README_sample_org.html +57 -0
  45. data/docs/ruby_basic/fsm/README_sample_org.org +13 -0
  46. data/docs/ruby_basic/fsm/complex/README.html +133 -0
  47. data/docs/ruby_basic/fsm/complex/README.org +50 -0
  48. data/docs/ruby_basic/fsm/complex/check_auto_calc_state_action.rb +35 -0
  49. data/docs/ruby_basic/fsm/complex/check_auto_calc_state_action_rb.html +67 -0
  50. data/docs/ruby_basic/fsm/complex/check_auto_calc_state_action_rb.org +13 -0
  51. data/docs/ruby_basic/fsm/complex/fsm_results.txt +16 -0
  52. data/docs/ruby_basic/fsm/complex/fsm_results_txt.html +52 -0
  53. data/docs/ruby_basic/fsm/complex/fsm_results_txt.org +14 -0
  54. data/docs/ruby_basic/fsm/complex/vasptest.o22698 +4289 -0
  55. data/docs/ruby_basic/fsm/complex/vasptest_short.o01234 +26 -0
  56. data/docs/ruby_basic/fsm/complex/vasptest_short_o01234.html +62 -0
  57. data/docs/ruby_basic/fsm/complex/vasptest_short_o01234.org +14 -0
  58. data/docs/ruby_basic/fsm/fsm_no_hash.html +108 -0
  59. data/docs/ruby_basic/fsm/fsm_no_hash.org +20 -0
  60. data/docs/ruby_basic/fsm/fsm_no_hash.rb +8 -0
  61. data/docs/ruby_basic/fsm/fsm_no_hash_results.txt +4 -0
  62. data/docs/ruby_basic/fsm/fsm_simplest.rb +12 -0
  63. data/docs/ruby_basic/fsm/fsm_state_action.html +50 -0
  64. data/docs/ruby_basic/fsm/fsm_state_action.org +16 -0
  65. data/docs/ruby_basic/fsm/fsm_state_action.rb +34 -0
  66. data/docs/ruby_basic/fsm/fsm_state_action.results +14 -0
  67. data/docs/ruby_basic/fsm/fsm_state_action_rb.html +64 -0
  68. data/docs/ruby_basic/fsm/fsm_state_action_rb.org +13 -0
  69. data/docs/ruby_basic/fsm/fsm_state_action_results.html +46 -0
  70. data/docs/ruby_basic/fsm/fsm_state_action_results.org +13 -0
  71. data/docs/ruby_basic/fsm/fsm_state_key.rb +22 -0
  72. data/docs/ruby_basic/fsm/full_fsm +1 -0
  73. data/docs/ruby_basic/images/seminar_24s-05.jpg +0 -0
  74. data/docs/ruby_basic/images/seminar_24s-06.jpg +0 -0
  75. data/docs/ruby_basic/images/seminar_24s-07.jpg +0 -0
  76. data/docs/ruby_basic/images/seminar_24s-08.jpg +0 -0
  77. data/docs/ruby_basic/images/seminar_24s-09.jpg +0 -0
  78. data/docs/ruby_basic/images/seminar_24s-10.jpg +0 -0
  79. data/docs/ruby_basic/images/seminar_24s-11.jpg +0 -0
  80. data/docs/ruby_basic/images/seminar_24s-12.jpg +0 -0
  81. data/docs/ruby_basic/images/seminar_24s-13.jpg +0 -0
  82. data/docs/ruby_basic/images/seminar_24s-14.jpg +0 -0
  83. data/docs/ruby_basic/images/seminar_24s-15.jpg +0 -0
  84. data/docs/ruby_basic/images/seminar_24s-18.jpg +0 -0
  85. data/docs/ruby_basic/images/seminar_24s-19.jpg +0 -0
  86. data/docs/ruby_basic/images/seminar_24s-2.jpg +0 -0
  87. data/docs/ruby_basic/images/seminar_24s-20.jpg +0 -0
  88. data/docs/ruby_basic/images/seminar_24s-21.jpg +0 -0
  89. data/docs/ruby_basic/images/seminar_24s-22.jpg +0 -0
  90. data/docs/ruby_basic/images/seminar_24s-24.jpg +0 -0
  91. data/docs/ruby_basic/images/seminar_24s-25.jpg +0 -0
  92. data/docs/ruby_basic/images/seminar_24s-27.jpg +0 -0
  93. data/docs/ruby_basic/images/seminar_24s-28.jpg +0 -0
  94. data/docs/ruby_basic/images/seminar_24s-31.jpg +0 -0
  95. data/docs/ruby_basic/images/seminar_24s-34.jpg +0 -0
  96. data/docs/ruby_basic/images/seminar_24s-35.jpg +0 -0
  97. data/docs/ruby_basic/images/seminar_24s-37.jpg +0 -0
  98. data/docs/ruby_basic/images/seminar_24s-38.jpg +0 -0
  99. data/docs/ruby_basic/simple_tdd/README.html +74 -0
  100. data/docs/ruby_basic/simple_tdd/README.org +19 -0
  101. data/exe/hyper_card +3 -0
  102. data/lib/hyper_card/version.rb +5 -0
  103. data/lib/hyper_card.rb +9 -0
  104. data/sig/hyper_card.rbs +4 -0
  105. metadata +150 -0
@@ -0,0 +1,13 @@
1
+ #+OPTIONS: ^:{}
2
+ #+STARTUP: indent nolineimages overview num
3
+ #+TITLE: README_sample.org
4
+ #+AUTHOR: Shigeto R. Nishitani
5
+ #+EMAIL: (concat "shigeto_nishitani@mac.com")
6
+ #+LANGUAGE: jp
7
+ # +OPTIONS: H:4 toc:t num:2
8
+ #+OPTIONS: toc:nil
9
+ #+TAG: hoge, hoge2
10
+ #+TWITTER: off
11
+ #+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
12
+
13
+ #+include: "./README_sample.org" src text
@@ -0,0 +1,133 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="jp" xml:lang="jp">
5
+ <head>
6
+ <!-- 2024-07-06 Sat 14:58 -->
7
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <title>complex fsm (finite state machine)</title>
10
+ <meta name="author" content="Shigeto R. Nishitani" />
11
+ <meta name="generator" content="Org Mode" />
12
+ <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/css/htmlize.css"/>
13
+ <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/css/readtheorg.css"/>
14
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
15
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
16
+ <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/lib/js/jquery.stickytableheaders.min.js"></script>
17
+ <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/js/readtheorg.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="content" class="content">
21
+ <h1 class="title">complex fsm (finite state machine)</h1>
22
+ <div id="table-of-contents" role="doc-toc">
23
+ <h2>Table of Contents</h2>
24
+ <div id="text-table-of-contents" role="doc-toc">
25
+ <ul>
26
+ <li><a href="#orged51e92">1. fsm(finite state machine)</a></li>
27
+ <li><a href="#org74e8168">2. outline</a></li>
28
+ <li><a href="#orgc734290">3. description</a></li>
29
+ <li><a href="#orgc07fb77">4. code and data</a></li>
30
+ <li><a href="#org3bf2cdf">5. links</a></li>
31
+ <li><a href="#org55755f3">6. references</a></li>
32
+ </ul>
33
+ </div>
34
+ </div>
35
+
36
+
37
+ <div id="outline-container-orged51e92" class="outline-2">
38
+ <h2 id="orged51e92"><span class="section-number-2">1.</span> fsm(finite state machine)</h2>
39
+ <div class="outline-text-2" id="text-1">
40
+ <p>
41
+ logや計算結果から特定のデータを取り出すためのパターン.
42
+ </p>
43
+ </div>
44
+ </div>
45
+
46
+ <div id="outline-container-org74e8168" class="outline-2">
47
+ <h2 id="org74e8168"><span class="section-number-2">2.</span> outline</h2>
48
+ <div class="outline-text-2" id="text-2">
49
+ <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
50
+
51
+
52
+ <colgroup>
53
+ <col class="org-left" />
54
+ </colgroup>
55
+ <tbody>
56
+ <tr>
57
+ <td class="org-left"><img src="../../images/seminar_24s-38.jpg" alt="seminar_24s-38.jpg" /></td>
58
+ </tr>
59
+ </tbody>
60
+ </table>
61
+
62
+ <p>
63
+ 左のデータで,
64
+ </p>
65
+ <ol class="org-ol">
66
+ <li>linesを回しながら,</li>
67
+ <li>key('* fix ',' 1 F')でstate(:wait_next, :searching)を変え,</li>
68
+ <li>action(:xy_data, :z_data, :idle)をとる</li>
69
+ </ol>
70
+
71
+ <p>
72
+ LL.4-13で用意したHash構造を使って,
73
+ LL.20-1で,line[0..5]をkeyとして[state, action]を調整している..
74
+ </p>
75
+ </div>
76
+ </div>
77
+
78
+ <div id="outline-container-orgc734290" class="outline-2">
79
+ <h2 id="orgc734290"><span class="section-number-2">3.</span> description</h2>
80
+ <div class="outline-text-2" id="text-3">
81
+ <p>
82
+ 詳しい解説...
83
+ </p>
84
+
85
+ <p>
86
+ keyやactionの中身は,
87
+ 別メソッドにしてより複雑な処理に変更することで,
88
+ どのような構造を持った文書からでも,
89
+ 特定のデータを取り出すことができる.
90
+ </p>
91
+ </div>
92
+ </div>
93
+
94
+ <div id="outline-container-orgc07fb77" class="outline-2">
95
+ <h2 id="orgc07fb77"><span class="section-number-2">4.</span> code and data</h2>
96
+ <div class="outline-text-2" id="text-4">
97
+ <ul class="org-ul">
98
+ <li>source : <a href="check_auto_calc_state_action_rb.html">check_auto_calc_state_action.rb</a></li>
99
+ <li>data(一部) :</li>
100
+ <li>resutls : <a href=" ./fsm_results_txt.html">fsm_results.txt</a></li>
101
+ </ul>
102
+ </div>
103
+ </div>
104
+
105
+ <div id="outline-container-org3bf2cdf" class="outline-2">
106
+ <h2 id="org3bf2cdf"><span class="section-number-2">5.</span> links</h2>
107
+ <div class="outline-text-2" id="text-5">
108
+ <ul class="org-ul">
109
+ <li>readlines</li>
110
+ <li>hash</li>
111
+ <li>case</li>
112
+ </ul>
113
+ </div>
114
+ </div>
115
+
116
+ <div id="outline-container-org55755f3" class="outline-2">
117
+ <h2 id="org55755f3"><span class="section-number-2">6.</span> references</h2>
118
+ <div class="outline-text-2" id="text-6">
119
+ <ul class="org-ul">
120
+ <li><a href="https://qiita.com/daddygongon/items/c84eaea29a14a5d05945">チャート式ruby-appendix-V(finite state element)</a> daddygongon, (2024/07/06 accessed.)</li>
121
+ <li>達人プログラマー(第2版): 熟達に向けたあなたの旅 (日本語) 単行本 – 2020/11/21David Thomas (著), Andrew Hunt (著), 村上 雅章 (翻訳), オーム社; 第2版 (2020/11/21), p176.</li>
122
+ <li>Rubyベストプラクティス -プロフェッショナルによるコードとテクニック,Gregory Brown (著), 高橋 征義 (監訳), 笹井 崇司 (翻訳)、オライリージャパン (2010/3/26), Ruby Best Practices by Gregory T Brown, O'Reilly, ↩ ↩2</li>
123
+ </ul>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ <div id="postamble" class="status">
128
+ <p class="author">Author: Shigeto R. Nishitani</p>
129
+ <p class="date">Created: 2024-07-06 Sat 14:58</p>
130
+ <p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
131
+ </div>
132
+ </body>
133
+ </html>
@@ -0,0 +1,50 @@
1
+ #+OPTIONS: ^:{}
2
+ #+STARTUP: indent nolineimages num
3
+ #+TITLE: fsm (finite state machine)
4
+ #+AUTHOR: Shigeto R. Nishitani
5
+ #+EMAIL: (concat "shigeto_nishitani@mac.com")
6
+ #+LANGUAGE: jp
7
+ #+TWITTER: off
8
+ #+OPTIONS: H:4 toc:t num:2
9
+ #+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
10
+
11
+
12
+ * fsm(finite state machine)
13
+
14
+ logや計算結果から特定のデータを取り出すためのパターン.
15
+
16
+ * outline
17
+ | [[file:../../images/seminar_24s-38.jpg]] |
18
+
19
+ 左のデータで,
20
+ 1. linesを回しながら,
21
+ 1. key('* fix ',' 1 F')でstate(:wait_next, :searching)を変え,
22
+ 1. action(:xy_data, :z_data, :idle)をとる
23
+
24
+ LL.4-13で用意したHash構造を使って,
25
+ LL.20-1で,line[0..5]をkeyとして[state, action]を調整している..
26
+
27
+ * description
28
+ 詳しい解説...
29
+
30
+ keyやactionの中身は,
31
+ 別メソッドにしてより複雑な処理に変更することで,
32
+ どのような構造を持った文書からでも,
33
+ 特定のデータを取り出すことができる.
34
+
35
+ * code and data
36
+ - source : [[file:check_auto_calc_state_action_rb.org][check_auto_calc_state_action.rb]]
37
+ - data(一部) :
38
+ - resutls : [[file: ./fsm_results_txt.org][fsm_results.txt]]
39
+
40
+ * links
41
+ - readlines
42
+ - hash
43
+ - case
44
+
45
+ * references
46
+ - [[https://qiita.com/daddygongon/items/c84eaea29a14a5d05945][チャート式ruby-appendix-V(finite state element)]] daddygongon, (2024/07/06 accessed.)
47
+ - 達人プログラマー(第2版): 熟達に向けたあなたの旅 (日本語) 単行本 – 2020/11/21David Thomas (著), Andrew Hunt (著), 村上 雅章 (翻訳), オーム社; 第2版 (2020/11/21), p176.
48
+ - Rubyベストプラクティス -プロフェッショナルによるコードとテクニック,Gregory Brown (著), 高橋 征義 (監訳), 笹井 崇司 (翻訳)、オライリージャパン (2010/3/26), Ruby Best Practices by Gregory T Brown, O'Reilly, ↩ ↩2
49
+
50
+
@@ -0,0 +1,35 @@
1
+ require 'scanf'
2
+ files = ARGV[0] || "./*.o*"
3
+
4
+ TRANS = {
5
+ wait_next: {
6
+ '* fix ' => [:searching , :xy_data],
7
+ :default => [:wait_next, :idle]
8
+ },
9
+ searching: {
10
+ ' 1 F' => [:wait_next, :z_data],
11
+ :default => [:searching, :idle]
12
+ }
13
+ }
14
+
15
+ state = :wait_next
16
+
17
+ all_data = []
18
+ Dir.glob(files).each do |file|
19
+ File.readlines(file).each do |line|
20
+ state, action = TRANS[state][line[0..5]] ||
21
+ TRANS[state][:default]
22
+ case action
23
+ when :idle
24
+ when :xy_data
25
+ all_data << line.scanf(
26
+ "* fix calc kpoints:50, in_plane:%f, vertical:%f")
27
+ when :z_data
28
+ all_data[-1] << line.scanf("1 F= %f E0= %f d E =%f")[0]
29
+ end
30
+ end
31
+ end
32
+
33
+ all_data.each do |data|
34
+ puts "[%5.3f, %5.3f, %10.5f]," % data
35
+ end
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="jp" xml:lang="jp">
5
+ <head>
6
+ <!-- 2024-07-06 Sat 14:17 -->
7
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <title>check_auto_calc_state_action.rb</title>
10
+ <meta name="author" content="Shigeto R. Nishitani" />
11
+ <meta name="generator" content="Org Mode" />
12
+ <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/css/htmlize.css"/>
13
+ <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/css/readtheorg.css"/>
14
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
15
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
16
+ <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/lib/js/jquery.stickytableheaders.min.js"></script>
17
+ <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/js/readtheorg.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="content" class="content">
21
+ <h1 class="title">check_auto_calc_state_action.rb</h1>
22
+ <div class="org-src-container">
23
+ <pre class="src src-ruby"><span class="linenr"> 1: </span><span style="color: #cd6600;">require</span> <span style="color: #8b7355;">'scanf'</span>
24
+ <span class="linenr"> 2: </span>files = <span style="color: #00688b;">ARGV</span>[0] || <span style="color: #8b7355;">"./*.o*"</span>
25
+ <span class="linenr"> 3: </span>
26
+ <span class="linenr"> 4: </span><span style="color: #00688b;">TRANS</span> = {
27
+ <span class="linenr"> 5: </span> <span style="color: #6e8b3d;">wait_next:</span> {
28
+ <span class="linenr"> 6: </span> <span style="color: #8b7355;">'* fix '</span> =&gt; [<span style="color: #6e8b3d;">:searching</span> , <span style="color: #6e8b3d;">:xy_data</span>],
29
+ <span class="linenr"> 7: </span> <span style="color: #6e8b3d;">:default</span> =&gt; [<span style="color: #6e8b3d;">:wait_next</span>, <span style="color: #6e8b3d;">:idle</span>]
30
+ <span class="linenr"> 8: </span> },
31
+ <span class="linenr"> 9: </span> <span style="color: #6e8b3d;">searching:</span> {
32
+ <span class="linenr">10: </span> <span style="color: #8b7355;">' 1 F'</span> =&gt; [<span style="color: #6e8b3d;">:wait_next</span>, <span style="color: #6e8b3d;">:z_data</span>],
33
+ <span class="linenr">11: </span> <span style="color: #6e8b3d;">:default</span> =&gt; [<span style="color: #6e8b3d;">:searching</span>, <span style="color: #6e8b3d;">:idle</span>]
34
+ <span class="linenr">12: </span> }
35
+ <span class="linenr">13: </span>}
36
+ <span class="linenr">14: </span>
37
+ <span class="linenr">15: </span>state = <span style="color: #6e8b3d;">:wait_next</span>
38
+ <span class="linenr">16: </span>
39
+ <span class="linenr">17: </span>all_data = []
40
+ <span class="linenr">18: </span><span style="color: #00688b;">Dir</span>.glob(files).each <span style="color: #1c86ee;">do</span> |file|
41
+ <span class="linenr">19: </span> <span style="color: #00688b;">File</span>.readlines(file).each <span style="color: #1c86ee;">do</span> |line|
42
+ <span class="linenr">20: </span> state, action = <span style="color: #00688b;">TRANS</span>[state][line[0..5]] ||
43
+ <span class="linenr">21: </span> <span style="color: #00688b;">TRANS</span>[state][<span style="color: #6e8b3d;">:default</span>]
44
+ <span class="linenr">22: </span> <span style="color: #1c86ee;">case</span> action
45
+ <span class="linenr">23: </span> <span style="color: #1c86ee;">when</span> <span style="color: #6e8b3d;">:idle</span>
46
+ <span class="linenr">24: </span> <span style="color: #1c86ee;">when</span> <span style="color: #6e8b3d;">:xy_data</span>
47
+ <span class="linenr">25: </span> all_data &lt;&lt; line.scanf(
48
+ <span class="linenr">26: </span> <span style="color: #8b7355;">"* fix calc kpoints:50, in_plane:%f, vertical:%f"</span>)
49
+ <span class="linenr">27: </span> <span style="color: #1c86ee;">when</span> <span style="color: #6e8b3d;">:z_data</span>
50
+ <span class="linenr">28: </span> all_data[-1] &lt;&lt; line.scanf(<span style="color: #8b7355;">"1 F= %f E0= %f d E =%f"</span>)[0]
51
+ <span class="linenr">29: </span> <span style="color: #1c86ee;">end</span>
52
+ <span class="linenr">30: </span> <span style="color: #1c86ee;">end</span>
53
+ <span class="linenr">31: </span><span style="color: #1c86ee;">end</span>
54
+ <span class="linenr">32: </span>
55
+ <span class="linenr">33: </span>all_data.each <span style="color: #1c86ee;">do</span> |data|
56
+ <span class="linenr">34: </span> <span style="color: #cd6600;">puts</span> <span style="color: #8b7355;">"[%5.3f, %5.3f, %10.5f],"</span> % data
57
+ <span class="linenr">35: </span><span style="color: #1c86ee;">end</span>
58
+ </pre>
59
+ </div>
60
+ </div>
61
+ <div id="postamble" class="status">
62
+ <p class="author">Author: Shigeto R. Nishitani</p>
63
+ <p class="date">Created: 2024-07-06 Sat 14:17</p>
64
+ <p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,13 @@
1
+ #+OPTIONS: ^:{}
2
+ #+STARTUP: indent nolineimages overview num
3
+ #+TITLE: check_auto_calc_state_action.rb
4
+ #+AUTHOR: Shigeto R. Nishitani
5
+ #+EMAIL: (concat "shigeto_nishitani@mac.com")
6
+ #+LANGUAGE: jp
7
+ # +OPTIONS: H:4 toc:t num:2
8
+ #+OPTIONS: toc:nil
9
+ #+TAG: hoge, hoge2
10
+ #+TWITTER: off
11
+ #+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
12
+
13
+ #+include: "./check_auto_calc_state_action.rb" src ruby -n -i
@@ -0,0 +1,16 @@
1
+ [0.980, 0.980, -379.54604],
2
+ [0.980, 1.000, -381.43537],
3
+ [0.980, 1.020, -382.60191],
4
+ [0.980, 1.040, -383.11878],
5
+ [1.000, 0.980, -381.72900],
6
+ [1.000, 1.000, -383.00661],
7
+ [1.000, 1.020, -383.65877],
8
+ [1.000, 1.040, -383.76326],
9
+ [1.020, 0.980, -382.53003],
10
+ [1.020, 1.000, -383.07707],
11
+ [1.020, 1.020, -383.24733],
12
+ [1.020, 1.040, -382.90069],
13
+ [1.040, 0.980, -382.16037],
14
+ [1.040, 1.000, -382.06955],
15
+ [1.040, 1.020, -381.62188],
16
+ [1.040, 1.040, -380.89964],
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="jp" xml:lang="jp">
5
+ <head>
6
+ <!-- 2024-07-06 Sat 14:18 -->
7
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <title>fsm_results.txt</title>
10
+ <meta name="author" content="Shigeto R. Nishitani" />
11
+ <meta name="generator" content="Org Mode" />
12
+ <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/css/htmlize.css"/>
13
+ <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/css/readtheorg.css"/>
14
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
15
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
16
+ <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/lib/js/jquery.stickytableheaders.min.js"></script>
17
+ <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/js/readtheorg.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="content" class="content">
21
+ <h1 class="title">fsm_results.txt</h1>
22
+ <pre class="example">
23
+ &gt; ruby check_auto_calc_state_action.rb
24
+ </pre>
25
+
26
+ <div class="org-src-container">
27
+ <pre class="src src-bash"><span class="linenr"> 1: </span>[0.980, 0.980, -379.54604],
28
+ <span class="linenr"> 2: </span>[0.980, 1.000, -381.43537],
29
+ <span class="linenr"> 3: </span>[0.980, 1.020, -382.60191],
30
+ <span class="linenr"> 4: </span>[0.980, 1.040, -383.11878],
31
+ <span class="linenr"> 5: </span>[1.000, 0.980, -381.72900],
32
+ <span class="linenr"> 6: </span>[1.000, 1.000, -383.00661],
33
+ <span class="linenr"> 7: </span>[1.000, 1.020, -383.65877],
34
+ <span class="linenr"> 8: </span>[1.000, 1.040, -383.76326],
35
+ <span class="linenr"> 9: </span>[1.020, 0.980, -382.53003],
36
+ <span class="linenr">10: </span>[1.020, 1.000, -383.07707],
37
+ <span class="linenr">11: </span>[1.020, 1.020, -383.24733],
38
+ <span class="linenr">12: </span>[1.020, 1.040, -382.90069],
39
+ <span class="linenr">13: </span>[1.040, 0.980, -382.16037],
40
+ <span class="linenr">14: </span>[1.040, 1.000, -382.06955],
41
+ <span class="linenr">15: </span>[1.040, 1.020, -381.62188],
42
+ <span class="linenr">16: </span>[1.040, 1.040, -380.89964],
43
+ </pre>
44
+ </div>
45
+ </div>
46
+ <div id="postamble" class="status">
47
+ <p class="author">Author: Shigeto R. Nishitani</p>
48
+ <p class="date">Created: 2024-07-06 Sat 14:18</p>
49
+ <p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
50
+ </div>
51
+ </body>
52
+ </html>
@@ -0,0 +1,14 @@
1
+ #+OPTIONS: ^:{}
2
+ #+STARTUP: indent nolineimages overview num
3
+ #+TITLE: fsm_results.txt
4
+ #+AUTHOR: Shigeto R. Nishitani
5
+ #+EMAIL: (concat "shigeto_nishitani@mac.com")
6
+ #+LANGUAGE: jp
7
+ # +OPTIONS: H:4 toc:t num:2
8
+ #+OPTIONS: toc:nil
9
+ #+TAG: hoge, hoge2
10
+ #+TWITTER: off
11
+ #+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
12
+
13
+ : > ruby check_auto_calc_state_action.rb
14
+ #+include: "./fsm_results.txt" src bash -n -i