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
| scala> import com.mongodb.casbah._ | |
| import com.mongodb.casbah._ | |
| scala> val dbl = MongoDBList() | |
| 16:23:48.222 [Thread-35] DEBUG c.m.c.c.c.s.package$RegisterConversionHelpers$ - Registering Scala Conversions. | |
| 16:23:48.225 [Thread-35] DEBUG c.m.c.c.c.s.package$RegisterConversionHelpers$ - Deserializers for Scala Conversions registering | |
| 16:23:48.226 [Thread-35] DEBUG c.m.c.c.c.s.package$RegisterConversionHelpers$ - Serializers for Scala Conversions registering | |
| 16:23:48.227 [Thread-35] DEBUG c.m.c.c.c.s.package$RegisterConversionHelpers$ - Setting up OptionSerializer | |
| 16:23:48.232 [Thread-35] DEBUG c.m.c.c.c.s.package$RegisterConversionHelpers$ - Setting up ScalaJCollectionSerializer | |
| 16:23:48.238 [Thread-35] DEBUG c.m.c.c.c.s.package$RegisterConversionHelpers$ - Setting up ScalaRegexSerializers |
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
| (* | |
| Works in Evernote v.3.3.0. | |
| (Note: I've read of people having problems with | |
| AppleScript with the AppStore version of Evernote. | |
| If you're having trouble, you might want to sync, | |
| then delete the appstore version and download the | |
| mac app directly from Evernote.) | |
| Based on: |
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 dispatch._ | |
| import dispatch.liftjson.Js._ | |
| import net.liftweb.json.JsonAST.JString | |
| final val APIKEY = "XXXXXXXXX" // get a free key at http://www.wunderground.com/weather/api/ | |
| def getTemp(city: String, state: String) = { | |
| val http = new Http | |
| val url = :/("api.wunderground.com") / "api" / APIKEY / "geolookup" / "conditions" / "q" / state / (city + ".json") | |
| http(url ># { json => |
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 com.mongodb.casbah.Imports._ | |
| /* | |
| * Simple test of the MongoDB Aggregation Framework via Casbah | |
| * | |
| * [Note: only works on MongoDB 2.1+] | |
| * | |
| * The "students" collection consists of student test score records that [simplified] look like this: | |
| * | |
| { |
NewerOlder