This file contains hidden or 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
On Feb 20, 2009, at 4:24 PM, "Olusegun A.A" <[email protected]> wrote: | |
** CRAIGSLIST ADVISORY --- AVOID SCAMS BY DEALING LOCALLY | |
** Avoid: wiring money, cross-border deals, work-at-home | |
** Beware: cashier checks, money orders, escrow, shipping | |
** More Info: http://www.craigslist.org/about/scams.html | |
Hello, | |
Do you still have this item available for sale at the moment? Get back asap. |
This file contains hidden or 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
feature: 功能 - 這個應該大家都同意吧 | |
background: 背景 - 這個也是 | |
scenario: 場景 | 劇本 | |
我參考了中文Wikipedia和一本台灣的UML教科書, 發覺他們都用了"場景"來翻譯 Use Case Scenario, 所以我想這應該是技術用詞吧。但可能劇本比較接近台灣的日常用法, 所以還是由你決定是否保留吧。以下是參考連結: | |
- http://zh.wikipedia.org/w/index.php?title=用例&variant=zh-hant [每個用例提供了一個或多個場景...] | |
- http://www.scholars.com.tw/flytown/itemdesc.asp?ProductID=PG20143&menu=6 [單元 8-確定使用案例場景(Use Case Scenario)] | |
以下這個Powerpoint交替使用了場景和情境, 但我想反正都差不多還是統一一點, 不要introduce另一個confusion吧 | |
- http://ngis.moi.gov.tw/get_file.aspx?file_name=20080918111016.pdf&folder=edu_train/20080819171003546/&file_id=20080918111016590 |
This file contains hidden or 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
import java.util.Scanner; | |
import java.util.Arrays; | |
public class A { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub |
This file contains hidden or 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
import java.util.Arrays; | |
import java.util.HashSet; | |
import java.util.Scanner; | |
public class C { | |
/** | |
* @param args | |
*/ |
This file contains hidden or 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
import java.util.Scanner; | |
public class E { | |
/** | |
* @param args | |
*/ | |
private static int opp; | |
private static int win; |
This file contains hidden or 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
>> @item.tag_list = "" | |
=> "" | |
>> @item.save | |
=> true | |
>> @item.tag_list | |
=> [] | |
>> @item.tag_list = "Tom, Mary's lamb, Jerry" | |
=> "Tom, Mary's lamb, Jerry" | |
>> @item.save | |
=> true |
This file contains hidden or 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
# This is what I wanted to do... | |
class MyObject < SomeSuperClass | |
include SomeWebService::DataSource | |
data_source_id '123456' # data_source_id() is a class method added by the module | |
def initialize(name) | |
@name = name | |
end |
This file contains hidden or 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
# This is what I wanted to do... | |
class MyObject < SomeSuperClass | |
@@data_source_id = '123456' | |
@@data = nil | |
def initialize(name) | |
@name = name | |
end | |
This file contains hidden or 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
Road Removal | |
https://www.facebook.com/hackercup/problems.php?pid=278355025564990&round=154897681286317 | |
You are given a network with N cities and M bidirectional roads connecting these cities. The | |
first K cities are important. You need to remove the minimum number of roads such that in the | |
remaining network there are no cycles that contain important cities. A cycle is a sequence of | |
at least three different cities such that each pair of neighboring cities are connected by a | |
road and the first and the last city in the sequence are also connected by a road. |
This file contains hidden or 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
Monopoly | |
https://www.facebook.com/hackercup/problems.php?pid=299871816717968&round=154897681286317 | |
In a certain business sector there are currently N small companies, each having just a single | |
employee. These employees are numbered 1 through N. | |
The business sector is about to be transformed into a monopoly. This will happen through a | |
series of mergers, until there is only one company. A single merger involves two companies. | |
In a merger, the president of one company becomes the direct report of the president of the |
OlderNewer