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
sudo apt-get install maven2 ant git-core subversion emacs23-nox | |
cd ~/Downloads | |
# extract scala 2.8.0 | |
wget http://www.scala-lang.org/downloads/distrib/files/scala-2.8.0.final.tgz | |
sudo tar xzvf scala-2.8.0.final.tgz | |
# extract jdk | |
wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u21-linux-i586.bin?BundledLineItemUUID=DiuJ_hCuqUMAAAEruMwkgKP_&OrderID=HhaJ_hCuhOMAAAEroMwkgKP_&ProductID=LxaJ_hCy4mIAAAEpXLwzBGsB&FileName=/jdk-6u21-linux-i586.bin | |
chmod +x jdk-6u21-linux-i586.bin | |
sudo ./jdk-6u21-linux-i586.bin | |
echo 'export PATH=${PATH}:/usr/local/jdk1.6.0_21/bin' >> ~/.bashrc |
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
* イントラでShindigを動かす場合など、Shindigが外部のgadget.xmlをhttp proxy経由で取りに行く必要がある場合 | |
Shindigにhttp proxyを設定する | |
http://jessehu.wordpress.com/2008/06/04/tips-about-proxy-setting-in-shindig/ | |
http.proxyHost | |
http.proxyPort | |
http.nonProxyHosts | |
は実質的に設定必須。詳しくは以下を参照 | |
http://stacktrace.jp/java/http_jvm_parameter.html |
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
require('http').createServer(function(req, res) { | |
res.writeHead(200, {'Content-Type': 'text/javascript'}); | |
res.write(function(){ console.log('hoge'); }.toString()); | |
res.end(); | |
}).listen(9876, 'localhost'); |
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
C:\dev\play_with_scala_example>play war -o play_with_scala_example.war | |
~ _ _ | |
~ _ __ | | __ _ _ _| | | |
~ | '_ \| |/ _' | || |_| | |
~ | __/|_|\____|\__ (_) | |
~ |_| |__/ | |
~ | |
~ play! 1.1RC3, http://www.playframework.org | |
~ | |
10:22:04,496 INFO ~ Starting C:\dev\play_with_scala_example |
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
=node.jsとは | |
http://nodejs.org/ | |
Evented I/O for V8 JavaScript. | |
* V8 JavaScript = Google Chromeにも搭載されているGoogleのJavaScript実装(高速らしい) | |
* 非同期IOに対してイベント駆動型のプログラミングをするためのJavaScript環境 | |
* なんのこっちゃ |
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
Run tests | |
Ctrl+Shift+F10 | |
Generate | |
Alt+Insert | |
Go to | |
implementation Ctrl+Alt+B | |
class Ctrl+N | |
file Ctrl+Shift+N |
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
class StaticInitializerTester { | |
int x = 0; | |
public StaticInitializerTester() { | |
System.out.println("constructor"); | |
} | |
public void a() { | |
System.out.println("a"); | |
} |
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() { | |
/** このhogeはクロージャの外からは見えない */ | |
var hoge = "hoge"; | |
function Fuge() { | |
; | |
} | |
Fuge.prototype.do4 = function() { |
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($) { | |
/** | |
* アプリケーション全体で共有するデータを保持したり、変更を通知する | |
*/ | |
function Registry() { | |
} | |
Registry.prototype.put = function(key, value) { | |
this[key] = value; |
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 Fuga = function() { | |
this.hoge = 'hoge'; | |
}; | |
Fuga.prototype = { | |
fizz: function() { | |
console.log(this.hoge); | |
}, | |
buzz: function(x) { | |
console.log(this.hoge + ':' + x); | |
}, |