Skip to content

Instantly share code, notes, and snippets.

View torus's full-sized avatar
😎
Focusing

Toru Hisai torus

😎
Focusing
View GitHub Profile
@torus
torus / .gitignore
Last active April 13, 2024 08:32
UE4 でビルドを作る Makefile
node_modules/
@torus
torus / Dockerfile
Last active January 5, 2024 06:42
Flutter in Docker
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y curl xz-utils
WORKDIR /work
RUN curl -O https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.5-stable.tar.xz
RUN tar xf flutter_linux_3.16.5-stable.tar.xz

Keybase proof

I hereby claim:

  • I am torus on github.
  • I am gwaihir (https://keybase.io/gwaihir) on keybase.
  • I have a public key ASDKQtKifjwAioM-XktqOb8QC5CVAoMbEb_7graSJuUanAo

To claim this, I am signing this object:

@torus
torus / ue5-localfix.patch
Created July 17, 2022 02:00
UE5 local fix
From 0873075aea3fe169805b6518f3546023c1497938 Mon Sep 17 00:00:00 2001
From: Toru Hisai <toru@torus.jp>
Date: Tue, 7 Sep 2021 13:46:36 +0900
Subject: [PATCH 1/2] fix for Blueprint generated C++ Class handling
---
.../Source/Runtime/Engine/Private/BlueprintGeneratedClass.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Engine/Source/Runtime/Engine/Private/BlueprintGeneratedClass.cpp b/Engine/Source/Runtime/Engine/Private/BlueprintGeneratedClass.cpp
  • ホノルル 👍
  • サンフランシスコ
  • シアトル 🍺
  • フランクフルト 👍
  • マールブルク
  • ハイデルベルク
  • ザールブリュッケン
  • ミュンヘン 🍺
  • ドゥブロブニク 😋
  • ミラノ 👍
@torus
torus / command-key-on-nodoka.md
Created October 3, 2010 06:52
のどかで、Mac みたいなキーバインドを実現する。

のどかで、Mac みたいなキーバインドを実現する。

Ctrl キーは、Emacs 的なキーバインド。

Windows キーは、オリジナルの Windows での Ctrl キーのように振舞う。

Windows キーと Ctrl キーを区別するために、 Ctrl キーについては mod0 という新しいモディファイアとして扱うようにして、 emacsedit.nodoka ファイルを修正して、C- となっている部分をすべて M0- に置き換えた。

@torus
torus / gcc-color-scheme.sh
Created November 26, 2020 02:03
ダークな背景に合わせて GCC の出力の色をパステルカラーにする。
export GCC_COLORS=\
'error=01;38;5;214:'\
'warning=01;38;5;229:'\
'note=01;38;5;195:'\
'range1=38;5;204:'\
'range2=38;5;39:'\
'locus=01:'\
'quote=01:'\
'path=01;38;5;195:'\
'fixit-insert=38;5;154:'\
@torus
torus / yc.lua
Created October 23, 2010 04:42
Y Combinator in Lua
local tests = {
function ()
local function fib(n)
if n < 2 then return n end
return fib (n - 1) + fib (n - 2)
end
return fib (10)
end
;
@torus
torus / QuatTest.cs
Last active October 14, 2020 12:13
Euler angles -> Quaternion -> Euler angles
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class QuatTest : MonoBehaviour {
public GameObject plain1;
public GameObject plain2;
public GameObject plain3;
// Use this for initialization
@torus
torus / process-file-with-generator.js
Created June 21, 2020 13:05
JavaScript でジェネレータを使ってファイルを 1 行ずつ読み込んで処理する練習。
const readline = require('readline');
async function processLineByLine(strm, eat) {
const rl = readline.createInterface({
input: strm,
crlfDelay: Infinity
});
for await (const line of rl) {
// Each line in input.txt will be successively available here as `line`.