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 / math.md
Last active January 1, 2018 16:39

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

こんばんは。

おはよう。 equation

@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 / UE4 log
Created June 17, 2017 10:14
textures tuned black after saving
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

C++

$ time ./a.out 
1000000

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

ズンドコキヨシ

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

ぼくもつくってみた。

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

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

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'
[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 August 29, 2015 14:20
Geeks3D GpuTest on Ubuntu 14.10 w/ Intel driver
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
// https://github.com/angular/angular.js/blob/d3b1f502e3099d91042a1827a006ad112ea67d36/src/auto/injector.js#L98
fnText = fn.toString().replace(STRIP_COMMENTS, '');
argDecl = fnText.match(FN_ARGS);
forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) {
arg.replace(FN_ARG, function(all, underscore, name) {
$inject.push(name);
});
});