Skip to content

Instantly share code, notes, and snippets.

View torus's full-sized avatar
😎
Focusing

Toru Hisai torus

😎
Focusing
View GitHub Profile
(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 \
function ex1 ()
coroutine.yield "HELLO!"
coroutine.yield "HELLO AGAIN!!"
return "SEE YOU!"
end
local ex1_co = coroutine.wrap (ex1)
print (ex1_co ()) -- => HELLO!
print (ex1_co ()) -- => HELLO AGAIN!!
---
--- 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(元氣,開發)
===================================================================
RCS file: RCS/lighttpd.conf,v
retrieving revision 1.1
diff -u -r1.1 lighttpd.conf
--- lighttpd.conf 2009/09/01 04:53:35 1.1
+++ lighttpd.conf 2009/09/01 04:19:15
@@ -2,7 +2,7 @@
#
# use it as a base for lighttpd 1.0.0 and above
#
diff --git a/document/Makefile b/document/Makefile
index 2635a43..b9618a8 100644
--- a/document/Makefile
+++ b/document/Makefile
@@ -2,7 +2,8 @@ LATEX = latex
# LATEX = pdflatex
BIBTEX = bibtex
MAKEINDEX = makeindex
-SCHEME = scheme48 -a batch
+SCHEME = gosh
public function dumpObject (o : Object) : String {
var dest : String = "";
var f : Function = function (data : Object, lev : int) : void {
var nest : String = "";
for (var l : int = 0; l < lev; l ++) nest += " ";
for (var i : String in data) {
if (typeof (data[i]) == "object") {
dest += nest + i + ":\n";
f (data[i], lev + 1);