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
val TAKSKS_URL = "https://mail.google.com/tasks/r/d" | |
def getTasksQuery(authToken:String)={ | |
//好用又邪惡的隱式轉換 | |
implicit def tuplesToNameValuePair(s:Tuple2[String,String]) = new BasicNameValuePair(s._1,s._2) | |
val actionID = 1 | |
val post = new HttpPost(TAKSKS_URL) | |
post.addHeader("AT","1") | |
post.addHeader("Cookie","GTL="+authToken) | |
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
{ | |
"action_list" : | |
[ | |
{ | |
"action_id" : "1", | |
"action_type" : "get_all", | |
"get_deleted" : false, | |
"list_id" : "可以針對List ID取得資料,若不指定會取全部" | |
} | |
], |
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
package rainy.maid.server.seeker | |
import java.util.ArrayList | |
import rainy.maid.server.domain.EneyPost | |
import scala.xml.NodeSeq | |
import scala.xml.{ XML, Node } | |
import de.hars.scalaxml._ | |
import java.text.SimpleDateFormat | |
class eneySeeker(root: String, url: String) { | |
var nextPage = url |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="OpenSudoku" default="help"> | |
<property file="local.properties" /> | |
<property file="build.properties" /> | |
<property file="default.properties" /> |
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
// Set the project name to the string 'My Project' | |
name := "SBTProject" | |
// The := method used in Name and Version is one of two fundamental methods. | |
// The other method is <<= | |
// All other initialization methods are implemented in terms of these. | |
version := "1.0" | |
//Add Repository Path | |
resolvers += "db4o-repo" at "http://source.db4o.com/maven" |
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
package example.swt | |
import org.eclipse.swt.widgets.{Shell, Display} | |
import org.eclipse.swt.layout.FillLayout | |
import org.eclipse.swt.browser.Browser | |
import org.eclipse.swt.SWT | |
/** | |
* Date: 2011/9/2 | |
* Time: 上午 8:20 |
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
package example.http | |
import java.io._ | |
import java.net.{HttpURLConnection, URL} | |
/** | |
* Date: 2011/9/16 | |
* Time: 上午 8:37 | |
*/ |
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
package tw.teremolo.example | |
import com.db4o.Db4oEmbedded | |
import scala.collection.JavaConverters._ | |
/** | |
* Date: 2011/10/6 | |
* Time: 下午 5:21 | |
*/ | |
object Hello_db4o { |
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
object FindPrimse { | |
def main(args: Array[String]) { | |
val result = fillPrimeList(10000) | |
result foreach println | |
} | |
def fillPrimeList(max: Int, list: List[Int] = List(3, 2)): List[Int] = { | |
if (list.head < max) | |
fillPrimeList(max, findNextPrime(list, list.head + 2) :: list) |
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
import java.util.zip.ZipFile | |
import java.io.FileInputStream | |
import java.io.FileOutputStream | |
import scala.collection.JavaConversions._ | |
import java.util.zip.ZipEntry | |
import java.io.InputStream | |
import java.io.OutputStream | |
import java.io.File | |
class ZipArchive { |
OlderNewer