Run options:
# Running tests:
1) Failure:
# $ ruby strscan_split.rb
# Warming up --------------------------------------
# split 14.000 i/100ms
# strscan 4.000 i/100ms
# strscan without << 5.000 i/100ms
# strscan w/o << regex 5.000 i/100ms
# strscan w/o split 4.000 i/100ms
# strscan.* 32.000 i/100ms
# ruby 2.6.0preview3 (2018-11-06 trunk 65578) [x86_64-darwin17]
#
#
# Warming up --------------------------------------
# Without Freeze 372.719k i/100ms
# With Freeze 451.989k i/100ms
# Calculating -------------------------------------
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make test-all TESTS=ruby/test_string.rb | |
./revision.h unchanged | |
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" --excludes-dir=./test/excludes --name=!/memory_leak/ | |
# Running tests: | |
[ 57/314] TestString#test_fs = 0.53 s | |
1) Failure: | |
TestString#test_fs [/Users/kazuma.furuhashi/src/github.com/ruby/ruby/test/ruby/test_string.rb:1760]: | |
pid 35235 killed by SIGABRT (signal 6) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 'Hello World' を出力するようにプログラムを修正してください。 | |
# Q1 | |
n = 314 | |
# if n > 4782968 | |
if n > -4782968 | |
puts 'Hello World' | |
else | |
puts 'Hello Ruby' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Q1 | |
"Hello world".then do | |
# case x = 1.010101 | |
case x = 1..010101 | |
in ^x | |
puts "Goodbye world" | |
end | |
rescue NoMatchingPatternError | |
puts @1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# puts("Hello world") if false \ | |
puts("Hello world") if false \ # (C-Z) | |
&& false && | |
false | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class String | |
# def to_proc | |
def* to_proc | |
puts self | |
-> { self } | |
end | |
end | |
->(&b){b.()}.(&("Hello world" * 42)) |
Charty - Visualizing your data in Ruby
(Overview of Charty)
https://raw.githubusercontent.com/red-data-tools/charty/master/images/design_concept.png
2019/11/15 11:33:15
quicksight も使用候補であるので、検証をするためにまとめている。これは外観と、制限など。
Amazon QuickSight は、視覚化の構築、アドホック分析の実行、データからのビジネス上の洞察の取得に使用できるビジネス分析サービスです。