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
use fastlem::core::{parameters::TopographicalParameters, traits::Model}; | |
use fastlem::lem::generator::TerrainGenerator; | |
use fastlem::models::surface::{builder::TerrainModel2DBulider, sites::Site2D}; | |
use noise::{NoiseFn, Perlin}; | |
use terrain_graph::edge_attributed_undirected::EdgeAttributedUndirectedGraph; | |
extern crate fastlem; | |
fn main() { | |
// The bound_min and bound_max are the minimum and maximum coordinates of the terrain. |
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
import numpy as np | |
from scipy.stats import norm | |
import matplotlib.pyplot as plt | |
if __name__ == '__main__': | |
data = np.loadtxt("/root/opt/result.csv", #計測データのパスを指定する(これは各自の保存場所に変更) | |
delimiter = ",", #計測データ内の区切り文字はカンマ |
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
/* | |
This program calculates the lap times from timestamps recorded by https://expect.sourceforge.net/stopwatch/ and convert the result into csv file. | |
Example: reading "test.txt" | |
```test.txt | |
T 000:03:52.729 | |
T 000:03:50.759 | |
T 000:03:48.599 | |
T 000:03:46.596 |
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
[out:json][timeout:600]; | |
// gather results | |
area["name"="日本"]->.japan; | |
( | |
// query part for: “amenity=fast_food” | |
node["amenity"="fast_food"]({{bbox}}); | |
way["amenity"="fast_food"]({{bbox}}); | |
relation["amenity"="fast_food"]({{bbox}}); | |
// query part for: “amenity=pharmacy” |
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
/* | |
MIT License | |
Copyright (c) 2021 Tada Teruki<tadateruki.public@gmail.com> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
/* | |
MIT License | |
Copyright (c) 2021 Tada Teruki<tadateruki.public@gmail.com> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |