This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var activityClassName = Ti.App.id + '.' + Ti.App.name.substring(0, 1).toUpperCase() + Ti.App.name.substring(1) + 'Activity'; | |
var intent = Titanium.Android.createIntent({ | |
//className: 'org.appcelerator.titanium.TiActivity', | |
//packageName: Ti.App.id, | |
className: activityClassName, | |
action: Titanium.Android.ACTION_MAIN, | |
flags: 0x10200000 | |
}); | |
intent.addCategory(Titanium.Android.CATEGORY_LAUNCHER); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Io 20080120 | |
Io> Hoge := Object clone; Hoge type | |
==> Hoge | |
Io> Foo := "bar"; Foo type | |
==> Foo | |
Io> foo := "baz"; foo type | |
==> Sequence | |
Io> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Version = function(version){ | |
var pos = version.indexOf('.'); | |
var __major__ = version.substring(0, pos); | |
var __minor__ = version.substring(pos + 1); | |
if(__minor__.length < 2){ | |
__minor__ = __minor__ + '0'; | |
} | |
this.major = parseInt(__major__, 10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function.prototype.bind = function(obj){ | |
var __method__ = this; | |
var __args__ = Array.prototype.slice.call(arguments); | |
__args__.shift(); // obj | |
return function (){ | |
var args = Array.prototype.slice.call(arguments); | |
return __method__.apply(obj, __args__.concat(args)); | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define D09 9 | |
#define D10 10 | |
#define D11 11 | |
#define D12 12 | |
class Context { | |
public: | |
unsigned long _current; | |
unsigned long _timeout; | |
void (*_callback)(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Foo に a というフィールド定義(しかも代入できないよ)のつもりが... | |
*/ | |
class Foo { | |
val a:String = "foo" | |
} | |
class Bar extends Foo { | |
override val a = "bar" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
DocumentRoot /srv/www/teritori.at | |
ServerName teritori.at | |
LogLevel warn | |
ErrorLog "|logger -p local2.err -t httpd" | |
CustomLog "|logger -p local2.info -t httpd" combined | |
<Directory "/srv/www/teritori.at"> | |
SetOutputFilter DEFLATE | |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Timeout 60 | |
KeepAlive On | |
MaxKeepAliveRequests 20 | |
KeepAliveTimeout 1 | |
StartServers 80 | |
MinSpareThreads 80 | |
MaxSpareThreads 80 | |
MaxClients 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syslog-ng configuration file. | |
# | |
# This should behave pretty much like the original syslog on RedHat. But | |
# it could be configured a lot smarter. | |
# | |
# See syslog-ng(8) and syslog-ng.conf(5) for more information. | |
# | |
options { | |
sync (1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syslog-ng configuration file. | |
# | |
# This should behave pretty much like the original syslog on RedHat. But | |
# it could be configured a lot smarter. | |
# | |
# See syslog-ng(8) and syslog-ng.conf(5) for more information. | |
# | |
options { | |
sync (100); |