Skip to content

Instantly share code, notes, and snippets.

View GOROman's full-sized avatar
👽
Damn I'm looking good.

GOROman GOROman

👽
Damn I'm looking good.
View GitHub Profile
@GOROman
GOROman / RotMatrix.jsx
Created March 8, 2025 09:25
Rotation 3x3 Matrix Visualizer
import React, { useEffect, useRef, useState } from 'react';
import * as THREE from 'three';
const ThreeDCoordinateSystem = () => {
const mountRef = useRef(null);
const [rotationMatrix, setRotationMatrix] = useState([
[1, 0, 0],
[0, 1, 0],
[0, 0, 1]
]);
@GOROman
GOROman / H.jsx
Created March 8, 2025 08:10
ちょっとHな画像を描画する React
import React, { useRef, useState, useEffect } from 'react';
const Raytracer = () => {
const canvasRef = useRef(null);
const [isRendering, setIsRendering] = useState(false);
const [progress, setProgress] = useState(0);
const renderingRef = useRef(false);
const requestRef = useRef(null);
useEffect(() => {
@GOROman
GOROman / HaaS.mermaid
Last active March 8, 2025 05:50
Human as a Service
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GOROman
GOROman / webserver.c
Created March 3, 2025 22:16
超高機能 Web Server
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#define PORT 8080
#define BUFFER_SIZE 1024
@GOROman
GOROman / hello_world.py
Created March 3, 2025 09:44
PythonのHello Worldプログラム
print("Hello, World!")
@GOROman
GOROman / hello_world.c
Last active March 3, 2025 09:45
PythonのHello Worldプログラム
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
@GOROman
GOROman / Gaitame.ino
Last active March 6, 2025 08:36
#がいためIMU を Arduino で動かす SPRESENSE向けマルチIMU Add-onボード [CXD5602PWBIMU1J]
// Spresense Multi-IMU[CXD5602PWBIMU1J] Sample for Arduino IDE
//
// #がいためIMU
// by @GOROman
#include <stdio.h>
#include <sys/ioctl.h>
#include <time.h>
#include <inttypes.h>
#include <fcntl.h>
@GOROman
GOROman / gaitame.c
Last active March 2, 2025 14:58
#がいためIMU テスト
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <sys/ioctl.h>
#include <time.h>
@GOROman
GOROman / SuperIMU2.cpp
Created March 1, 2025 08:29
#がいためIMU テスト2 Powered by Cline
#if 0 // Cline Prompt
@cxd5602pwbimu_main.c を変更し、6軸IMUから加速度バイアス、角速度バイアス、クォータ二オンによる姿勢と速度と慣性空間における位置を算出する拡張カルマンフィルタのCのコードを生成してください。予測更新、観測更新、カルマンゲインの更新、誤差共分散の推定と省略せず完全なコードをお願いします。姿勢に関してはクォータニオンをオイラー角に変換して出力するのも含めてください。
#endif
/****************************************************************************
* examples/cxd5602pwbimu/cxd5602pwbimu_main.c
*
* Copyright 2025 Sony Semiconductor Solutions Corporation