- Create a folder at the root of your user home folder
(Example:
C:/Users/uname/) called.ssh. - Create the following files if they do not already exist (paths begin from the root of your user home folder):
.ssh/config
JSONは NaN / Infinity / -Infinity や Date 型等に対応していない。
しかし、JavaScriptのJSONは、これらを解消する仕組みを持っている。
それは JSON.parse の第二引数の reviver とJSON.stringify の第二引数の replacer だ。
注意が必要なのは、 Date 型は toJSON メソッドを持つため replacer に値が渡る前に文字列になってしまうこと。
これに対応するには toJSON メソッドを一時退避してしまえば良い。
これらを上手く駆使すれば、JSONに型を保ったまま値を保存し復元することができる。
| /*! | |
| * @author yomotsu | |
| * Released under the MIT License. | |
| */ | |
| :root { | |
| --stroke-color: #ccc; | |
| } | |
| * { |
| #ifndef SUNSET_H_ | |
| #define SUNSET_H_ | |
| #include<math.h> | |
| // 計算式は下記のWebサイトを参考に実装しています | |
| // 日出日没計算、やってみよう | |
| // https://hhsprings.pinoko.jp/site-hhs/2015/02/%e6%97%a5%e5%87%ba%e6%97%a5%e6%b2%a1%e8%a8%88%e7%ae%97%e3%80%81%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86/ | |
| typedef struct _DateTime { | |
| int year; |