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
class NextGreaterPermutation | |
attr_reader :digits | |
def initialize(number) | |
@digits = number.to_s.chars | |
end | |
def display | |
return 'Not Possible' if smaller_digit_idx.nil? | |
digits[smaller_digit_idx], digits[larger_digit_idx] = digits[larger_digit_idx], digits[smaller_digit_idx] |
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
diff --git a/app/assets/javascripts/controllers/users_controller.js b/app/assets/javascripts/controllers/users_controller.js | |
index 933ba6c..73b3bf6 100644 | |
--- a/app/assets/javascripts/controllers/users_controller.js | |
+++ b/app/assets/javascripts/controllers/users_controller.js | |
@@ -1,9 +1,56 @@ | |
const _ = require('lodash') | |
+/* | |
+ Adding filter for unique data's | |
+*/ |
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
diff --git a/app/assets/javascripts/controllers/users_controller.js b/app/assets/javascripts/controllers/users_controller.js | |
index 933ba6c..1bb8f62 100644 | |
--- a/app/assets/javascripts/controllers/users_controller.js | |
+++ b/app/assets/javascripts/controllers/users_controller.js | |
@@ -4,6 +4,19 @@ angular.module('forecastManager') | |
.controller('UsersController', ['blackboard', '$scope', '$http', (blackboard, $scope, $http) => { | |
const regexForPermissionsType = /influence|view/ | |
+ $scope.init = (networks, users) => { | |
+ $scope.networks = networks; |