Flavour related resources of Mealstrom API
A collection of flavours
-
Model
HAL + JSON representation of flavour resource
.factory('twoWayBinder', function ($parse) { | |
function twoWayBind($scope, remote, local){ | |
var remoteSetter = $parse(remote).assign; | |
var localSetter = $parse(local).assign; | |
$scope.$watch(remote, function (value) { | |
localSetter($scope, value); | |
}); | |
$scope.$watch(local, function (value) { |
Does a rudimentary merge. It uses the pofile package to read po files. It adds missing entries from pot files to po files and replaces existing entries references and extracted comments. Usage example is at the bottom.
module.exports = function (Q) { | |
function Builder() { | |
this.registrations = {}; | |
} | |
Builder.prototype = { | |
register: function (name, factory, lifecycle) { | |
lifecycle = lifecycle || 'perdependency'; | |
if (!this.registrations[lifecycle]) { | |
this.registrations[lifecycle] = {}; |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Manager | |
{ | |
class Program | |
{ |
GTX 970 (x3) - $1677 | |
Total Ram --- 12, Total Cores - 4992, Total GigaTexels/s - 327, Total Watts - 435 | |
(Scaled) --- GigaTexels/s - 250, GTS/Watt - 0.57, GTS/$ - 0.15 | |
Value Score --- 1.02 | |
GTX 980 (x2) - $1558 | |
Total Ram --- 8, Total Cores - 4096, Total GigaTexels/s - 288, Total Watts - 330 | |
(Scaled) --- GigaTexels/s - 274, GTS/Watt - 0.83, GTS/$ - 0.18 | |
Value Score --- 1.16 |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; | |
using NPoco; | |
using NPoco.FluentMappings; |
private IQueryable<T> Order<T>(IQueryable<T> list, string members) | |
{ | |
var param = Expression.Parameter(list.ElementType, "r"); | |
bool thenMode = false; | |
foreach (var member in members.Split(',')) | |
{ | |
MemberExpression memberExpression = null; | |
var chop = member.Split(' '); | |
foreach (var memberPart in chop[0].Split('.')) |
{ | |
"name": "testapp", | |
"path": "wwwroot", | |
"variables": { | |
"something": null, | |
"foo": "bar" | |
} | |
} |
<?xml version="1.0" encoding="UTF-8"?> | |
<SecurePayMessage> | |
<MessageInfo> | |
<messageID>test1234</messageID> | |
<messageTimestamp>20160520150545000000+600</messageTimestamp> | |
<timeoutValue>60</timeoutValue> | |
<apiVersion>xml-4.2</apiVersion> | |
</MessageInfo> | |
<MerchantInfo> | |
<merchantID>ABC0001</merchantID> |