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 $vk = { | |
| init: function() { | |
| var defer = $q.defer(); | |
| VK.init(function() { | |
| // API initialization succeeded | |
| // Your code here | |
| defer.resolve(arguments); | |
| }, 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
| var prev = 'prev' in found ? found.prev : _.clone(found); | |
| var threeWayMerge = function(a, b, c) { | |
| var d = a || {}; | |
| _.forEach(b, function(value, key) { | |
| if (_.isArray(value) || _.isObject(value)) { | |
| d[key] = threeWayMerge(a[key], b[key], c[key]); | |
| } | |
| else { | |
| if (a && c && a[key] == c[key]) { | |
| d[key] = b[key]; |
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
| jQuery(function ($) { | |
| var app = angular.module('Journal', ['med_rest', 'med_stdlib', 'ui.date', | |
| 'med_component_norms', 'med_component_odin_s', 'anguFixedHeaderTable', 'ngDialog']); | |
| app.controller('JournalCtrl', function ($scope, $http, $q, RestAPI, Restangular, ngDialog) { | |
| var stash = []; | |
| // DATA | |
| $scope.months = []; | |
| $scope.journal = {}; |
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 | |
| namespace AppBundle\Entity; | |
| use AppBundle\Interfaces\Activities\ActivityWithMembersInterface; | |
| use AppBundle\Interfaces\Activities\ActivityWithProductsInterface; | |
| use AppBundle\Interfaces\Activities\HasNextVisitTargetInterface; | |
| use AppBundle\Traits\Activities\ActivityMembersTrait; | |
| use AppBundle\Traits\Activities\ActivityProductsTrait; | |
| use AppBundle\Traits\Activities\ActivityThemeTrait; |
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 | |
| class Game { | |
| private $doors; | |
| private $winner; | |
| public function __construct() { |