Skip to content

Instantly share code, notes, and snippets.

Toru Hisai torus

Block or report user

Report or block torus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View suffixarray.c
#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 =
View momotaro.yaml
---
- package:
- title: ももたろう
- desc: チュートリアル用のシナリオ
- version: 0.1.5
- credit: モモたろう(本物)
- stage:
- name: home
- label:
View math.md

こんにちは。 \Large x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

こんばんは。

おはよう。 equation

@torus
torus / QuatTest.cs
Last active May 18, 2019
Euler angles -> Quaternion -> Euler angles
View QuatTest.cs
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 / UE4 log
Created Jun 17, 2017
textures tuned black after saving
View UE4 log
Pooling OS allocations (pool size: 2816 MB, maximum allocations: 19004).
Using binned2.
Increasing per-process limit of core file size to infinity.
LogInit:Display: Running engine for game: MyProject
LogPlatformFile: Not using cached read wrapper
LogInit:Display: RandInit(-1394925620) SRandInit(-1394925620).
LogTaskGraph: Started task graph with 5 named threads and 8 total threads with 1 sets of task threads.
LogStats: Stats thread started at 0.039926
LogInit: Using libcurl 7.48.0-DEV
LogInit: - built for x86_64-unknown-linux-gnu
View description.md

C++

$ time ./a.out 
1000000

real	0m0.863s
user	0m0.860s
sys	0m0.000s
@torus
torus / README.md
Last active Apr 10, 2016
ズンドコキヨシ
View README.md

ズンドコキヨシ

ズンドコキヨシまとめ - Qiita

ぼくもつくってみた。

Lua のコルーチンを使った実装

ズンかドコをひたすら生成するジェネレータと、その出力を受け取って条件が揃ったらキヨシを返すコンシューマをコルーチンとして実装しました。

View linker error
toru@britney:~/src/ue4/x7$ make -j 16 x7
mono "/home/toru/src/UnrealEngine"/Engine/Binaries/DotNET/UnrealBuildTool.exe x7 Linux Development -project="\"/home/toru/src/ue4/x7/x7.uproject\""
Using clang version '3.5.2' (string), 3 (major), 5 (minor), 2 (patch)
Performing 2 actions (8 in parallel)
[1/2] Compile MyActor.cpp
[2/2] Link x7
/home/toru/src/ue4/x7/Source/Gauche/src//libgauche-static-0.9.a(termios.o): In function `Scm_Openpty':
/home/toru/src/ue4/x7/Source/Gauche/ext/termios/termios.c:120: undefined reference to `openpty'
/home/toru/src/ue4/x7/Source/Gauche/src//libgauche-static-0.9.a(termios.o): In function `Scm_Forkpty':
/home/toru/src/ue4/x7/Source/Gauche/ext/termios/termios.c:136: undefined reference to `forkpty'
View UE4-Linux-error.txt
[2015.08.06-04.04.51:316][756]Running /home/toru/src/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe -makefile -kdevelopfile -qmakefile -cmakefile -project="/home/toru/src/ue4/MyProject5/MyProject5.uproject" -game -engine -progress
[2015.08.06-04.04.51:324][756]LogHAL: FLinuxPlatformProcess::CreateProc: spawned child 2574
[2015.08.06-04.04.51:725][756]Using gcc version '' (string), -1 (major), -1 (minor), -1 (patch)
[2015.08.06-04.04.51:725][756]
[2015.08.06-04.04.51:725][756]*** Could not determine version of the compiler, not registering Linux toolchain.
[2015.08.06-04.04.51:725][756]
[2015.08.06-04.04.51:725][756]Discovering modules, targets and source code for game...
[2015.08.06-04.04.52:384][756]LogHAL: Child 2574 is no more running (zombie), Wait()ing immediately.
[2015.08.06-04.04.52:385][756]Errors detected while compiling /home/toru/src/ue4/MyProject5/Intermediate/Build/BuildRules/MyProject5ProjectFileGeneratorModuleRules.dll:
[2015.08.06-04.04.52:385][756](0,0) : error : ERROR: ld.so: obj
@torus
torus / benchmark
Last active Aug 29, 2015
Geeks3D GpuTest on Ubuntu 14.10 w/ Intel driver
View benchmark
http://www.geeks3d.com/20140304/gputest-0-7-0-opengl-benchmark-win-linux-osx-new-fp64-opengl-4-test-and-online-gpu-database/
Geeks3D GpuTest - GPU monitoring
Num GPU(s): 1
- GPU0: Intel Iris Pro Graphics 5200 (D)
==================================
GpuTest 0.7.0
http://www.geeks3d.com
You can’t perform that action at this time.