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
// Generated by <a href="http://scalaxb.org/">scalaxb</a>. | |
package general | |
/** | |
usage: | |
val obj = scalaxb.fromXML[general.Foo](node) | |
val document = scalaxb.toXML[general.Foo](obj, "foo", general.defaultScope) | |
**/ | |
object `package` extends XMLProtocol { } |
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
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
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 XmlRewriteUtil { | |
def rewriter(f: PartialFunction[Node, NodeSeq]): RuleTransformer = new RuleTransformer(rule(f)) | |
def rule(f: PartialFunction[Node, NodeSeq]): RewriteRule = new RewriteRule { | |
override def transform(n: Node) = if (f.isDefinedAt(n)) f(n) else n | |
} | |
} | |
def setNamespace(node: Node, prefix: String, namespace: String): Node = { | |
import XmlRewriteUtil._ |
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
#SingleInstance FORCE | |
#NoEnv | |
^`:: | |
DetectHiddenWindows, off | |
IfWinExist, bash | |
{ | |
wingetpos, wx, wy, wwidth, wheight | |
counter=0 |
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
1. Dump contents of http://www.w3.org/2003/05/soap-envelope/ to soap12.xsd | |
and put that somewhere alongside the other schemas. | |
2. Run scalaxb, you'll end up with a soap12.scala & company. | |
3. See sample code. Call envXml and get back XML representation of envelope, | |
header, and body all in one. |
NewerOlder