Skip to content

Instantly share code, notes, and snippets.

View takunoko's full-sized avatar
😇

Takunoko takunoko

😇
View GitHub Profile
@takunoko
takunoko / converter.sh
Created August 9, 2021 13:50
FT3DのGPSログを(緯度,経度,標高)のCSVに変換
#!/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
@takunoko
takunoko / three_phase_wave.py
Created May 31, 2020 07:13
三相交流を理解するために書いたプログラム
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移動)
@takunoko
takunoko / MainShopCharger.java
Last active January 20, 2017 08:44
TuT 授業課題 共有用
// 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");
# esriジャパンから取得したデータを扱う
# 国土地理院発行の数値地図
# 地図データ[ESRIジャパン]: http://www.esrij.com/products/japan-shp/
import shapefile
import pandas as pd
import turtle as tt
# turtle画面設定 定数