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
| <?php | |
| $document = new Document($client); | |
| $document->setContentFile('myfile.xml')->write('/myfile.xml'); | |
| ?> |
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
| var db = new mldb(); // default options | |
| var doc = db.get("/messages/1", function(result) { | |
| logger.debug("Doc content: " + JSON.stringify(result.doc)); | |
| }); | |
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
| // TODO: transform for results | |
| jQuery.ajax({ | |
| url: host + "/search", | |
| username: "foo:bar", | |
| type: "POST", | |
| data: { | |
| length: 10, | |
| structuredQuery: { | |
| and: [ |
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
| mlcp.sh import \ | |
| -host localhost \ | |
| -port 8006 \ | |
| -username user \ | |
| -password ******* \ | |
| -input_file_path /data/latest |
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
| $(document).ready(function() { | |
| var config = { | |
| searchEndpoint: "search.php", | |
| valueEndpoint: "values.php" | |
| } | |
| ML.controller.init(config); | |
| var options = { | |
| constraint: "decade", | |
| title: "Awards by decade", |
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
| (: one line if/then/else :) | |
| if ($condition) then $action else () |
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
| declare function my:function( | |
| $a as xs:string, | |
| $b as element(my:options) | |
| ) as empty-sequence() | |
| { | |
| (: body of function :) | |
| }; |
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
| <dev:lounge> | |
| <beverages> | |
| <coffee brew="strong" /> | |
| <soda flavor="orange"/> | |
| </beverages> | |
| <lab code="xquery" speed="awesome"/> | |
| </dev:lounge> |
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
| function initialize() { | |
| var latlng = new google.maps.LatLng(-34.397, 150.644); | |
| var myOptions = { | |
| zoom: 8, | |
| center: latlng, | |
| mapTypeId: google.maps.MapTypeId.ROADMAP | |
| }; | |
| var map = new google.maps.Map(document.getElementById("map"), | |
| myOptions); |