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
#!/usr/bin/env scalas | |
!# | |
/*** | |
libraryDependencies += "net.databinder" %% "dispatch-http" % "0.8.8" | |
*/ | |
import dispatch._ | |
val http = new Http |
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
#!/usr/bin/env scalas | |
!# | |
/*** | |
libraryDependencies ++= Seq( | |
"net.databinder" %% "dispatch-http" % "0.8.8", | |
"net.databinder" %% "dispatch-http-json" % "0.8.8" | |
) | |
*/ |
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
#!/usr/bin/env scalas | |
!# | |
/*** | |
libraryDependencies ++= Seq( | |
"net.databinder" %% "dispatch-http" % "0.8.8", | |
"net.databinder" %% "dispatch-oauth" % "0.8.8" | |
) | |
*/ |
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
organization := "com.github.hexx" | |
name := "dispatch-tumblr" | |
version := "0.0.1" | |
scalaVersion := "2.9.1" | |
scalacOptions += "-deprecation" |
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
#!/usr/bin/env scalas | |
!# | |
/*** | |
libraryDependencies += "com.github.hexx" %% "dispatch-tumblr" % "0.0.1" | |
*/ | |
import dispatch._ | |
import dispatch.oauth.Consumer | |
import dispatch.json.JsHttp._ |
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 com.github.hexx.dispatch.tumblr | |
import dispatch._ | |
import dispatch.json.JsHttp._ | |
import dispatch.json.{ Js, JsObject } | |
import dispatch.oauth.OAuth | |
import dispatch.oauth.OAuth._ | |
import dispatch.oauth.{ Consumer, Token } | |
object Tumblr { |
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 org.specs2.mutable._ | |
import com.github.hexx.dispatch.tumblr._ | |
class TumblrSpec extends Specification { | |
import dispatch._ | |
import dispatch.json.Js | |
import dispatch.json.JsHttp._ | |
import dispatch.oauth.{ Consumer, Token } |
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 com.github.hexx | |
/** The launched conscript entry point */ | |
class App extends xsbti.AppMain { | |
def run(config: xsbti.AppConfiguration) = { | |
Exit(App.run(config.arguments)) | |
} | |
} | |
object App { |
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 com.github.hexx.scalamblr | |
import scala.io.Source | |
import com.twitter.util.Eval | |
import dispatch._ | |
import dispatch.oauth.Consumer | |
import scopt._ | |
import com.github.hexx.dispatch.tumblr._ | |
trait Config { |
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 com.github.hexx.scalamblr.Config | |
new Config { | |
val defaultHostname = "YOUR HOSTNAME" | |
override val markdown = true | |
val consumerKey = "YOUR CONSUMER KEY" | |
val consumerSecret = "YOUR CONSUMER SECRET" | |
val username = "YOUR USERNAME" | |
val password = "YOUR PASSWORD" | |
} |
OlderNewer