Search

12/08/2010

新東南海鮮餐廳@台北

新東南海鮮餐廳@台北

新東南活海鮮餐廳
北市中正區汀州路一段105號
02-23014239

[食記] 四川吳抄手

[食記] 四川吳抄手

四川吳抄手
ADD:台北市忠孝東路四段250號之3
TEL:02-27216088

12/04/2010

jstestdriver


D:\code\js-test-driver>java -jar JsTestDriver-1.2.2.jar --port 1234 --browser "
D:\Program Files\GoogleChromePortable\GoogleChromePortable.exe"



D:\code\js-test-driver>java -jar JsTestDriver-1.2.2.jar --tests all


config:

server: http://localhost:1234

load:
- test/*.js

12/03/2010

TDD, Test driven development

Just a quick refresher, TDD looks like this:

1. Create a test
2. Run all tests, making sure the new test fails
3. Write the minimum amount of code to make the test pass
4. Run all of the tests to ensure they pass
5. Refactor the code, making sure that the tests still pass
6. Repeat for each new code module being developed

The Effectiveness of Test Driven Development (TDD) | GrokCode

11/30/2010

停車入庫



非字形停車位
1. 距離1.5M處


2. 格一個車位的車位中間, 往左打滿, 車頭正時, 馬上打滿


一字形停車位
1. 距離 50cm 處


2. 當右車鏡對準旁車B柱, 向右打滿


3. 當車和旁車夾45度角時, 往左打滿, 繼續倒車

11/27/2010

sproutcore icons

http://demo.sproutcore.com/sample_controls/

11/25/2010

Chicago Pizza Factory Taiwan 芝加哥披薩

Chicago Pizza Factory Taiwan 芝加哥披薩
Chicago Pizza Factory Taiwan
Add : 台北市建國南路二段11巷1號1樓
Tel : 02-2707-2121
營業時間 : 11:00am ~ 8:00pm (全年無休)

11/19/2010

JavaScript Mixins

JavaScript Mixins


var Mixin = function() {};
Mixin.prototype = {
serialize: function() {
var output = [];
for(key in this) {
output.push(key + ': ' + this[key]);
}
return output.join(', ');
}
};



augment(Author, Mixin);

var author = new Author('Ross Harmes', ['JavaScript Design Patterns']);
var serializedString = author.serialize();