Skip to content

Instantly share code, notes, and snippets.

View oha-yashi's full-sized avatar

ohayashi oha-yashi

View GitHub Profile
FIT CSV ツール - プロトコル 2.0
使用法: java -jar FitCSVTool.jar <オプション> <ファイル>
-b <FIT ファイル> <CSV ファイル> バイナリを CSV に FIT します。
-c <CSV ファイル> <FIT ファイル> CSV を FIT バイナリに変換します。
-t ファイル検証テストを有効にします。
-d デバッグ出力を有効にします。
-i デコードする前に FIT ファイルの整合性をチェックします。
-s CSV ファイル内の無効なフィールドを表示します。
-se CSV ファイル内の無効なフィールドを空のセルとして表示します。
-u 不明なデータを非表示にし、どの程度非表示になっているかに関する統計をレポートします。
@oha-yashi
oha-yashi / FitToCSV.bat
Created May 7, 2024 08:49
FitCSVTool by Garmin
@echo off
setlocal EnableDelayedExpansion
set APP_DIR=%~dp0
set APP_NAME=FitCSVTool.jar
set APP_PATH="%APP_DIR%%APP_NAME%"
set a=%*
Type Local Number Message Field 1 Value 1 Units 1 Field 2 Value 2 Units 2 Field 3 Value 3 Units 3 Field 4 Value 4 Units 4 Field 5 Value 5 Units 5 Field 6 Value 6 Units 6 Field 7 Value 7 Units 7 Field 8 Value 8 Units 8 Field 9 Value 9 Units 9 Field 10 Value 10 Units 10 Field 11 Value 11 Units 11 Field 12 Value 12 Units 12 Field 13 Value 13 Units 13 Field 14 Value 14 Units 14 Field 15 Value 15 Units 15 Field 16 Value 16 Units 16 Field 17 Value 17 Units 17 Field 18 Value 18 Units 18 Field 19 Value 19 Units 19 Field 20 Value 20 Units 20 Field 21 Value 21 Units 21 Field 22 Value 22 Units 22 Field 23 Value 23 Units 23 Field 24 Value 24 Units 24 Field 25 Value 25 Units 25 Field 26 Value 26 Units 26 Field 27 Value 27 Units 27 Field 28 Value 28 Units 28 Field 29 Value 29 Units 29 Field 30 Value 30 Units 30 Field 31 Value 31 Units 31 Field 32 Value 32 Units 32 Field 33 Value 33 Units 33 Field 34 Value 34 Units 34 Field 35 Value 35 Units 35 Field 36 Value 36 Units 36 Field 37 Value 37 Units 37 Field 38 Value 38 Units 38
@oha-yashi
oha-yashi / DialogAndSnackbarActivity.java
Last active April 9, 2021 19:32
androidDialogSnackbar
package com.example.testapplication.dialogAndSnackbar;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import com.google.android.material.snackbar.Snackbar;
@oha-yashi
oha-yashi / AndroidManifest.xml
Last active February 25, 2021 19:50
OnlyDialog.app
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.onlydialog">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
@oha-yashi
oha-yashi / MainActivity.java
Created February 23, 2021 05:21
MoneyControl
package com.example.moneycontrol;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
import android.annotation.SuppressLint;
import android.content.ContentValues;
import android.content.Context;
import android.content.DialogInterface;
#include <ncurses.h>
#include <algorithm>
#include <vector>
template<typename T> using vector = std::vector<T>;
using vi = vector<int>;
using vvi = vector<vi>;
#include <random>
#include <chrono>
namespace chrono = std::chrono;
@oha-yashi
oha-yashi / d.cpp
Last active June 17, 2020 06:09
cordforces #650 D
#include <bits/stdc++.h>
using namespace std;
#define all(v) (v).begin(), (v).end()
void solve(){
string S;cin>>S;
map<char, int> letters;
for(char x: S){
letters[x]++;
}
@oha-yashi
oha-yashi / e.cpp
Created June 15, 2020 09:16
ABC170-E
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,Q;cin>>N>>Q;
vector<int> rate(N+1);
vector<int> belong(N+1);
vector<multiset<int>> youchien(200010);
multiset<int> maxenji;
@oha-yashi
oha-yashi / debug.cpp
Last active June 12, 2020 04:50
my debug
#include <bits/stdc++.h>
using namespace std;
namespace /* debug */{
#define DEBUG(...) do{cout<<#__VA_ARGS__<<" = "; debug(__VA_ARGS__);}while(0) //変数
#define ldebug(...) do{cout<<"["<<setw(3)<<__LINE__<<"] "; debug(__VA_ARGS__);}while(0) //行数
#define lDEBUG(...) do{cout<<"["<<setw(3)<<__LINE__<<"] "<<#__VA_ARGS__<<" = "; debug(__VA_ARGS__);}while(0) //変数, 行数
template <class T>
void show(T &x){