Skip to content

Instantly share code, notes, and snippets.

View Nyarll's full-sized avatar

UNLUCKY_0314 Nyarll

View GitHub Profile
@Nyarll
Nyarll / SimpleLogFormatter.java
Last active September 3, 2022 20:29
SimpleLogger Java
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;
/**
*
* Formatter for simple logs.
*
* @author unlucky0314
#include <iostream>
#include <vector>
int main()
{
std::vector<int> ivector;
//ivector.reserve(1000);
ivector.push_back(0);
ivector.push_back(1);
#pragma once
// <namespace name : ECS (Entity Component System)>
// <update date : 2020 / 05 / 20>
// <author : Nyarll>
// <GitHub : https://github.com/Nyarll >
#ifndef ECM_DEFINES
#define ECM_DEFINES
@Nyarll
Nyarll / ハイスコアの保存
Created July 27, 2018 06:45
HighScoceFileStreaming.cpp
void InitResult(void)
{
FILE *fp = NULL;
fopen_s(&fp, "Resources/HighScore.txt", "r");
fscanf_s(fp, "%d", &high_score);
fclose(fp);
}
void UpdateResult(void)
@Nyarll
Nyarll / FileStreaming.cpp
Created July 26, 2018 06:15
csvファイルのファイルストリーミング(読み込み)
// バッファと, 本来のデータの型は同じにする。
//EnemyData data[256]; // バッファ
//EnemyData enemy[256]; // 例
void FileStreamEnemy(const TCHAR *file_name)
{
char buf[100];
int c;
int col = 1;