Skip to content

Instantly share code, notes, and snippets.

@rabitarochan
rabitarochan / MEMO.md
Created July 15, 2023 22:57
Kuma UI with Next.js App Router のエラー調査

Kuma UI が Windows 環境で動作しない件について

Kuma UI を Windows で利用した場合にエラーとなる件についての調査メモです。

事象

Windows 環境で Kuma UI を実行したところ、次のエラーが発生します。

image

@rabitarochan
rabitarochan / Bluetooth.md
Last active May 22, 2019 00:24
Manjaro Linux KDE (ArchLinux) on MacbookAir Setup

The computer has the ability to scan for Bluetooth, but can not pair because the package for Bluetooth is missing.

Install bluez and bluez-utils.

(Install)
# pacman -Syu bluez bluez-utils

(Enable bluetooth daemon)
# systemctl start bluetooth
@rabitarochan
rabitarochan / Sheet1.vb
Created September 27, 2017 08:34
Excel方眼紙自動化
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("C5:V25")) Is Nothing Then
Exit Sub
Else
If Len(Target.text) <= 1 Then
Exit Sub
End If
s = Target.text
Target.Value = Left(s, 1)
@rabitarochan
rabitarochan / package.kt
Last active October 30, 2015 14:00
Kotlinお勉強 - 1. 基本構文
package com.github.rabitarochan.sandbox.kotlin
import com.github.rabitarochan.hoge
//
case class Endo[A](run: A => A) {
def apply(a: A): A = run(a)
def compose(other: Endo[A]): Endo[A] = {
Endo.endo(run compose other.run)
}
def andThen(other: Endo[A]): Endo[A] = {
other compose this
@rabitarochan
rabitarochan / NameOf.scala
Created February 20, 2015 02:06
nameOf macro
import scala.language.experimental.macros
import scala.reflect.macros.whitebox.Context
object NameOf {
def nameOf[A](expr: A => Any): String = macro nameOf_macro[A]
def nameOf_macro[A: c.WeakTypeTag](c: Context)(expr: c.Expr[A => Any]): c.Expr[String] = {
import c.universe._
expr.tree match {
@echo off
echo %1
exit /b %errorlevel$
@rabitarochan
rabitarochan / a.scala
Created September 26, 2014 03:48
『0、6、0、7』をつかって10にしてください in Scala
// らびたろちゃんは『0、6、0、7』をつかって10にしてください。 http://shindanmaker.com/217387
List(0, 6, 0, 7)
.reverse
.map(x => List(x).zipWithIndex.map{case (y, i) => y.toString + i.toString})
.map(_.mkString.toInt)
.reduce((z, n) => z - n)
// => 10
@rabitarochan
rabitarochan / .Xmodmap
Created January 15, 2014 06:19
Change keyboard map `backslash` to `underscore`.
keycode 97 = underscore backslash underscore backslash
@rabitarochan
rabitarochan / config.rb.log
Created December 19, 2013 03:24
FluentdをWindows環境でテストしてみた。
** Invoke test (first_time)
** Invoke base_test (first_time)
** Execute base_test
C:/Users/asamizu_kengo/dev/lib/ruby/ruby-1.9.3-p362-i386-mingw32/bin/ruby.exe -I"lib;test" -I"C:/Users/asamizu_kengo/dev/lib/ruby/ruby-1.9.3-p362-i386-mingw32/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib" "C:/Users/asamizu_kengo/dev/lib/ruby/ruby-1.9.3-p362-i386-mingw32/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" ""test\config.rb""
--------------------------------------------------------------------------------
RR deprecation warning: RR now has an autohook system. You don't need to
`include RR::Adapters::*` in your test framework's base class anymore.
--------------------------------------------------------------------------------
Run options: