let () =
print_endline "Base.Float.to_string";
print_endline (Base.Float.to_string 3.);
print_endline (Base.Float.to_string (-3.));
This file contains 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
// scatter-random-dots.jsx | |
// https://github.com/kuy | |
// Copyright(c) 2019 Yuki KODAMA / @kuy | |
// This script is distributed under the MIT License. | |
function precondition() { | |
if (documents.length === 0) { | |
alert("Please create a new document before running script."); | |
return false; | |
} |
This file contains 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
Entering directory '/Users/kuy/Work/tablecloth' | |
Entering directory '/Users/kuy/Work/tablecloth' | |
test alias native/test/runtest | |
Testing suite. | |
This run has ID `B895F613-6FAD-4D8C-BF80-E52AEA270B26`. | |
[OK] tests 0 Array. | |
[OK] tests 1 Char. | |
[ERROR] tests 2 Float. | |
[OK] tests 3 Int. | |
[OK] tests 4 List. |
This file contains 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
---- deserialize_option stdout ---- | |
thread 'deserialize_option' panicked at 'assertion failed: `(left == right)` | |
left: `Ok([("last", Some(42))])`, | |
right: `Ok([("first", None), ("last", Some(42))])`', tests/test_deserialize.rs:59:5 | |
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace. |
This file contains 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
let selected = match props.selected { | |
Some(selected) => match serde_json::from_str::<Vec<ColorName>>(selected.as_str()) { | |
Ok(selected) => selected.into_iter().map(|cn| cn.id.to_string()).collect(), | |
_ => vec![], | |
}, | |
_ => vec![], | |
}; | |
let selected = props.selected.map_or(vec![], |s| { | |
serde_json::from_str::<Vec<ColorName>>(s.as_str()).map_or(vec![], |s| { | |
s.into_iter().map(|cn| cn.id.to_string()).collect() |
特に何もやってあげてないのに他人(法人だけどさ)から何百万何千万のお金が何年もとめどなく注ぎ込まれてきたら、怖くないですか?
オープンソース・ソフトウェアの開発者だけで給料をもらうというのは、まさにこの現象が発生してくるわけ。それまでもこれからも、ずっとオープンソース・ソフトウェアの開発者はやってきたし、やっていくわけでしょう。そんなの会社があってもなくても、別にやることなんて変わらないじゃない。じゃあなんで、ある時から急にかなりの金額が振り込まれてきてしまうんだ?しかもあからさまに物価上昇を上回る結構なハイペースで昇給していく。やっていることは一切何も変わってないのに!
この状況に適応するまでにはいささかの時間を要しました。根が小心者なので。
特に何もやってあげてないのに他人(法人だけどさ)から何百万何千万のお金が何年もとめどなく注ぎ込まれてきたら、怖くないですか?
オープンソース・ソフトウェアの開発者だけで給料をもらうというのは、まさにこの現象が発生してくるわけ。それまでもこれからも、ずっとオープンソース・ソフトウェアの開発者はやってきたし、やっていくわけでしょう。そんなの会社があってもなくても、別にやることなんて変わらないじゃない。じゃあなんで、ある時から急にかなりの金額が振り込まれてきてしまうんだ?しかもあからさまに物価上昇を上回る結構なハイペースで昇給していく。やっていることは一切何も変わってないのに!
この状況に適応するまでにはいささかの時間を要しました。根が小心者なので。
OlderNewer