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
| // Northwind database schema for JayData | |
| // | |
| // Initially generated by JaySvcUtil on 2014/07/27 | |
| // using http://services.odata.org/Northwind/Northwind.svc/$metadata | |
| // | |
| // Sample usage with a local Northwind database, which you can get | |
| // by running northwind-create.js with mongodb, for example: | |
| // | |
| // var context = new NorthwindContext({ | |
| // name: 'mongoDB', |
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
| /** | |
| * Copyright 2013 Tim Down. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| // Checks if the actual object is an instance of the expected type; | |
| // the functional object `expected` can be any ancestor prototype. | |
| // | |
| // Example: | |
| // expects(new Backbone.Model()).toBeInstanceOf(Backbone.Model); | |
| jasmine.Matchers.prototype.toBeInstanceOf = function(expected) { | |
| var actual = this.actual, | |
| notText = this.isNot ? ' not' : ''; | |
| this.message = function() { | |
| return 'Expected ' + actual + notText + ' to be an instance of ' + expected; |
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
| // Checks if the actual object is of the expected type; | |
| // the string `expected` is handled case-insensitively. | |
| // | |
| // Example: | |
| // expects(123).toBeTypeOf("Number"); | |
| jasmine.Matchers.prototype.toBeTypeOf = function(expected) { | |
| var actual = this.actual, | |
| notText = this.isNot ? ' not' : '', | |
| objType = actual ? Object.prototype.toString.call(actual) : ''; | |
| this.message = 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
| /* | |
| USE CASE: Set the Authorization header value in the HTTP response | |
| to the Basic Authentication challenge. | |
| EXAMPLE: Request headers: | |
| WWW-Authenticate: Basic realm="WallyWorld" | |
| Response headers: | |
| Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== | |
| */ |
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
| #ifndef BOOST_NETWORK_UTILS_BASE64_ENCODE_HPP | |
| #define BOOST_NETWORK_UTILS_BASE64_ENCODE_HPP | |
| #include <boost/range/begin.hpp> | |
| #include <boost/range/end.hpp> | |
| #include <algorithm> | |
| #include <iterator> | |
| #include <string> | |
| namespace boost { |
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
| /** | |
| * beautify_oscript.lxe - A code beautifier for OpenText Content Server OScript | |
| * | |
| * This script will beautify your OScript. Copy to a file within opentext/scripts/ | |
| * (e.g., opentext/scripts/beautify_oscript.lxe), restart Builder, place the focus on a | |
| * script window, and run from the Tools menu. | |
| * | |
| * Some coding conventions assumed. Use at your own risk. | |
| * | |
| * Christopher Meyer ([email protected]) |
NewerOlder