Skip to content

Instantly share code, notes, and snippets.

View torus's full-sized avatar
😎
Focusing

Toru Hisai torus

😎
Focusing
View GitHub Profile
Process: BlueMarsLite [31785]
Path: /Users/USER/Downloads/BlueMarsLite.app/Contents/MacOS/BlueMarsLite
Identifier: com.yourcompany.BlueMarsLite
Version: ???
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: BlueMarsLite [31785]
User ID: 501
Date/Time: 2014-11-08 12:54:45.935 +0900
// 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);
});
});
@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
[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
(use rfc.http)
(define (t year month day)
(sys-mktime (make <sys-tm>
:hour 12
:mday day
:mon (- month 1)
:year (- year 1900))))
(let ((i (t 2006 10 30)) ; first day
./configure \
--enable-threads=none \
--host=arm-apple-darwin9 \
--target=arm-apple-darwin9 \
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 \
CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp \
CXXCPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp \
CXX=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 \
AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar \
RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib \
---
--- Game Engine
---
EntityBase = {}
function EntityBase:new (name)
local o = {}
setmetatable (o, {__index = self})
o.name = name
return o
-- load the game engine
dofile "engine.lua"
---
--- Entity with Coroutine
---
CoroutineEntity = create_entity_class ()
function CoroutineEntity:new (name, param1, param2)
-- inherits from EntityBase
=<center>ハンドル・ボディ(Handle Body)</center>=
=== 意図 ===
* 実装からインターフェイスを分離する
* 実装の詳細が変更されても、そのクラスの使用者に影響がないように(再コンパイルを不要に)する
=== Also Known As ===
* [[More C%2B%2B Idioms/ハンドル・ボディ(Handle Body)|Bridge]] (Gamma et al.)
* [[More C%2B%2B Idioms/ハンドル・ボディ(Handle Body)|Compilation Firewall]]
* [[More C%2B%2B Idioms/ハンドル・ボディ(Handle Body)|Cheshire Cat]]
* [[More C%2B%2B Idioms/ハンドル・ボディ(Handle Body)|PImpl (Pointer to Implementation) idiom]]
Non-ASCII examples:
Europe: ¡Hola!, Grüß Gott, Hyvää päivää, Tere õhtust, Bonġu
Cześć!, Dobrý den, Здравствуйте!, Γειά σας, გამარჯობა
Africa: ሠላም
Middle/Near East: שלום, �����������
South Asia: नमस्ते, ನಮಸ್ಕಾರ, നമസ്കാരം, வணக்கம், བཀྲ�་ཤིས་བདེ་ལེགས༎
South East Asia: ສະບາຍດີ, สวัสดีครับ, Chào bạn
East Asia: 你好, 早晨, こんにちは, 안녕하세요
Misc: Eĥoŝanĝo ĉiuĵaŭde, ⠓⠑⠇⠇⠕, ∀ p ∈ world • hello p □
CJK variety: GB(元气,开发), BIG5(元氣,開發), JIS(元気,開発), KSC(元氣,開發)