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 / Math.md
Created March 9, 2025 23:21
The Cauchy-Schwarz Inequality

The Cauchy-Schwarz Inequality

$$\left( \sum_{k=10000000000000000}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$
@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 April 28, 2025 04:29
#がいため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 22, 2025 08:11
#がいためIMU テスト
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <sys/ioctl.h>
#include <time.h>