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
| [ 937.835] | |
| X.Org X Server 1.8.0 | |
| Release Date: 2010-04-02 | |
| [ 937.835] X Protocol Version 11, Revision 0 | |
| [ 937.835] Build Operating System: Linux 2.6.33-gentoo-r1 i686 Gentoo | |
| [ 937.836] Current Operating System: Linux NBGentoo 2.6.33-gentoo-r1 #7 SMP PREEMPT Tue Apr 20 22:49:03 CST 2010 i686 | |
| [ 937.836] Kernel command line: root=/dev/sda6 video=uvesafb:1024x768-32,mttr:3,ywrap splash=theme:MacOS,silent quiet console=tty1 | |
| [ 937.837] Build Date: 20 April 2010 11:59:00PM | |
| [ 937.837] | |
| [ 937.837] Current version of pixman: 0.18.0 |
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 org.scalatest.FeatureSpec | |
| import org.scalatest.GivenWhenThen | |
| class ArticleSpec extends FeatureSpec { | |
| feature("使用者可以新增三題故事") { | |
| info ("做為一個文學少女的支持者") | |
| info ("我希望可以寫三題故事給學姐當點心吃") |
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.lang.Integer | |
| import java.lang.Number | |
| val i1: Int = (() => 3)() | |
| val i2: java.lang.Integer = (() => 3)() | |
| val i3 = ((x: Int) => x + 1)(3) | |
| val i4 = ((x: Number) => x.intValue)(3.14159) | |
| val o = () => 3 | |
| assert (i1 == 3) |
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
| // Port from http://gist.github.com/469067 | |
| import scala.util.Random.shuffle | |
| import scala.math.random | |
| def randomNickname = { | |
| def howlong = ((random * 10) % 3 + 2).toInt | |
| shuffle("日月天地風雷雨古龍金庸鳥山明".toList).take (howlong).mkString + | |
| shuffle("君臣妺子".toList).head |
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
| 作者: bloomshing (comet) 看板: Tech_Job | |
| 標題: [轉錄]Re: [職場] 起薪低的現象 | |
| 時間: Sun Aug 29 10:46:37 2010 | |
| ※ [本文轉錄自 Salary 看板 #1CTrSgdq ] | |
| 作者: ikoyumi (小喚) 看板: Salary | |
| 標題: Re: [職場] 起薪低的現象 | |
| 時間: Fri Aug 27 14:11:51 2010 |
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
| /**************************************************************************** | |
| * What THE FUCK Java Code!!! | |
| * | |
| * 這是人寫出來的嗎?有誰可以猜出這個函式在做什麼嗎?! | |
| * Note: 而且還只能在 Windows 上才 Work 喲,啾咪。 | |
| ***************************************************************************/ | |
| public static String isNotBig5(String ori) | |
| { | |
| char[] c = ori.toCharArray(); |
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
| val content = "我是陶喆\n我是游鍚堃\n這是測試" | |
| println (normalizeString(content)) | |
| def normalizeString (string: String) = string.flatMap(escapeNonBig5Character _) | |
| def escapeNonBig5Character (character: Char): String = { | |
| def isNotBig5 (character: Char) = character.toString.getBytes("Big5")(0) == '?' && | |
| character != '?' |
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
| public void swapIndex(String server) throws Exception { | |
| SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHH"); | |
| // 取得152端的檔案清單 | |
| File Lucenelocal = new File(dataStore.getLuceneIndex()); | |
| LinkedHashSet<String> LuceneIndex152Set = new LinkedHashSet<String>(); | |
| for (String file : Lucenelocal.list()) { | |
| LuceneIndex152Set.add(file); | |
| } |
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
| package xmlimport; | |
| import java.util.Properties; | |
| import ftp.FINJFTP; | |
| import props.PropsServiceProvider; | |
| public class DoSwapServerIndex { | |
| public static void main(String[] args) { | |
| DoSwapServerIndex doSwapLuceneIndex = new DoSwapServerIndex(); |
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
| package xmlimport; | |
| import java.util.Properties; | |
| import ftp.FINJFTP; | |
| import props.PropsServiceProvider; | |
| public class DoSwapServerIndex { | |
| public static void main(String[] args) { | |
| PropsServiceProvider propsProviderProduction = new PropsServiceProvider("props/ServiceProvider.properties"); |