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 / 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 / .gitignore
Last active April 13, 2024 08:32
UE4 でビルドを作る Makefile
node_modules/
@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 / 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`.
(use gauche.threads)
(use data.queue)
(define *queue* (make-mtqueue))
(define *cont-queue* (make-mtqueue))
(define (on-data n)
(let ((proc (dequeue! *cont-queue* #f)))
(if proc
@torus
torus / suffixarray.c
Created April 22, 2019 12:35
Suffix Array
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int compar(const void* a, const void* b) {
return strcmp(*(const char**)a, *(const char**)b);
}
int main(int argc, char** argv) {
const char *giantString =
---
- package:
- title: ももたろう
- desc: チュートリアル用のシナリオ
- version: 0.1.5
- credit: モモたろう(本物)
- stage:
- name: home
- label: 家