Skip to content

Instantly share code, notes, and snippets.

View m-hayabusa's full-sized avatar

hayabusa m-hayabusa

View GitHub Profile
@m-hayabusa
m-hayabusa / numer0n.c
Created December 19, 2017 02:37
numer0n.c
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#define DEBUG
int randnum_seed = 0;
int randnum(int start, int end){
randnum_seed = randnum_seed + 1;
srand(time(NULL)+randnum_seed);
@m-hayabusa
m-hayabusa / Markdown_Theme.less
Created February 20, 2018 09:28
Markdown用のLess
// @import{
// src:url('http://www4.hs-sh.net/study/default.css');
// }
// @import{
// src:url('http://www4.hs-sh.net/study/dark.css');
// }
// * {
// font-family: "MigMix 1M", "sans-serif";
#include <stdio.h>
//#define DEBUG
/*
Test Case
6,7,11,13,16,12,25,25,20,15,9,7
34,35,25,43,51,21,11,9,21,65,63,55
*/
int main() {

Keybase proof

I hereby claim:

  • I am m-hayabusa on github.
  • I am m_hayabusa (https://keybase.io/m_hayabusa) on keybase.
  • I have a public key ASBkmLNCUSsT-Ut5cxcpN36wchggPtmomRuuW2iNi9Ck7Qo

To claim this, I am signing this object:

Raspberry PiでGroundpolisのサーバーを回す

2020-08-25、 https://github.com/Groundpolis/Groundpolis/commit/a16e3b2030dafdb4a60f82effbb417ddf3d12842 時点でのやつ
Misskeyでも同じ手順なはず
遅いので適当に別のPCなどで$ yarn buildするなどするとよさそう
RPi 3B+ (1GB)ではlibvips、Groundpolisどちらもビルド通らなかった気がする
RPi 4B 2GBだとGpのビルドがかなりギリギリ スワップは増やす必要がある

やること

  1. Gpのドキュメント もしくは Misskeyのドキュメント$ yarn installの直前までをやる
  2. https://libvips.github.io/libvips/install.html に従ってビルド
@m-hayabusa
m-hayabusa / LICENSE
Last active September 28, 2021 11:41
ディスプレイの部分だけいい感じにやってくためのシェーダー ライセンスはMITでどうぞ
Copyright 2021 m-hayabusa
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
@m-hayabusa
m-hayabusa / StrShader.shader
Last active November 19, 2024 00:46
VRChatのアバターで文字列表示するやつ
Shader "nS/StrShader"
{
Properties
{
_MainTex ("(ダミー)", 2D) = "white" {}
_BgColor ("背景色", Color) = (1,1,1,1)
_Color ("文字色", Color) = (0,0,0,0)
_UnifontTex ("フォント", 2D) = "white" {}
_DataTex ("記憶用", 2D) = "white" {}
_WidRow ("横幅", Vector) = (16,4,0,0)
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "lightWhite",
"foreground": "black",
"powerline_symbol": "\ue0b0",
@m-hayabusa
m-hayabusa / MIDI2VRCEmote.py
Created April 25, 2022 07:33
MIDI2VRCEmote
import sys
import re
import mido
import keyboard
shift = 0
wait = 0.05
flag = 0
@m-hayabusa
m-hayabusa / EASYEDA_PCB_Dongle_v0.1_2022-06-13.json
Last active January 29, 2024 12:03
make nRF52840 module to Watchman Dongle
{
"head": {
"docType": "3",
"editorVersion": "6.5.5",
"importedFrom": "Eagle",
"x": "0",
"y": "0",
"importFlag": 0,
"c_para": {},
"transformList": "",