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
#!/bin/sh | |
FILE_NAME="210731081630.log" | |
OUTPUT_NAME="output.csv" | |
nkf -Lu ${FILE_NAME} | grep GPGGA | awk -F "," '{ | |
if ( $3 != "" ) { | |
N=$3 | |
E=$5 | |
H=$10 |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
scale = 1/np.sqrt(2) | |
x = np.arange( 0, 4 * np.pi, 0.1) # x座標を 0 から 4pi (2周期) まで 0.1 きざみで取得 | |
y1 = np.sin(x) * scale # 正弦波 | |
y2 = np.roll(y1, int(len(x)/3)) # 位相を120度ずらす (波形を1/3移動) | |
y3 = np.roll(y1, int((len(x)*2)/3)) # 位相を240度ずらす (波形を2/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
// package edu161216; | |
public class MainShopCharger { | |
public static void main (String [] args) { | |
// カードの定義(2枚) | |
StudentCard S0 = new StudentCard(163399, "hoge"); | |
S0.setAccountBalance(100); | |
System.out.println(S0); | |
StudentCard S1 = new StudentCard(163398, "moge"); |
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
# esriジャパンから取得したデータを扱う | |
# 国土地理院発行の数値地図 | |
# 地図データ[ESRIジャパン]: http://www.esrij.com/products/japan-shp/ | |
import shapefile | |
import pandas as pd | |
import turtle as tt | |
# turtle画面設定 定数 |