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 scala.xml._ | |
object SampleWorksheet { | |
// Some simple xml | |
val xml = """ | |
<cone style="waffle" sprinkles="red"> | |
tasty!! | |
<scoop size="small" /> | |
<scoop size="large" /> | |
</cone> |
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 com.restphone | |
import scalaz._ | |
import Scalaz._ | |
import scala.concurrent.Future | |
import scala.concurrent.Future._ | |
import scala.concurrent.Await | |
import scala.concurrent.duration._ | |
object MonadEvidenceThatWillMakeSenseLater { |
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
type GetList() = | |
let switchvox_users_voicemail_getList_response = """ | |
</response>""" | |
le | |
let switchvox_users_voicemail_getList = """ | |
</request>""" | |
me | |
member self.X = switchvox_users_voicemail_getList_response |
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
type GetList() = | |
let switchvox_users_voicemail_getList_response = """ | |
</response>""" | |
let switchvox_users_voicemail_getList = """ | |
</request>""" | |
member self.X = switchvox_users_voicemail_getList_response |
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
ARGF.each do |l| | |
case l | |
when /public delegate void Exception(Argument)?Delegate/ | |
puts " [MonoTouch.MonoNativeFunctionWrapper]", l | |
when /static void SetPendingArgument(Null|OutOfRange)?Exception/ | |
puts " [MonoTouch.MonoPInvokeCallback (typeof (ExceptionArgumentDelegate))]", l | |
when /static void SetPending.*Exception/ | |
puts " [MonoTouch.MonoPInvokeCallback (typeof (ExceptionDelegate))]", l | |
when /static string CreateString/ | |
puts " [MonoTouch.MonoPInvokeCallback (typeof (SWIGStringDelegate))]", l |
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 it : SimpleNode list = | |
[{name = "val"; | |
ancestors = | |
[{name = "bar"; | |
ancestors = [{name = "foo"; | |
ancestors = []; | |
content = null; | |
attributes = map [("snark", "boojum")];}]; | |
content = null; | |
attributes = map [];}; {name = "foo"; |
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
Given this code: | |
open FSharp.Data | |
open System.Xml.Linq | |
type SomeSample = XmlProvider<"""<author name="Paul Feyerabend" born="1924" />"""> | |
I get: | |
Error FS3033: The type provider 'ProviderImplementation.XmlProvider' reported an error: Specified argument is neither a file, nor well-formed XML: Could not find a part of the path "/<author name="Paul Feyerabend" born="1924" />". (FS3033) (fslib) |
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 com.restphone | |
import akka.actor.Actor | |
import akka.actor.ActorSystem | |
import com.typesafe.config.ConfigFactory | |
import akka.channels._ | |
class Message | |
class Response |
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
"wait for more work"( | |
), | |
"atnode"( | |
1, | |
1365272025636), | |
"asked"( | |
), | |
"wait for more work"( | |
), | |
"atnode"( |
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 com.restphone | |
import scala.collection.mutable | |
import akka.actor.Actor | |
import akka.actor.ActorRef | |
import akka.actor.ActorSystem | |
import akka.actor.Props | |
import akka.actor.actorRef2Scala | |
import akka.actor.ActorSystem | |
import com.typesafe.config.ConfigFactory |