Skip to content

Instantly share code, notes, and snippets.

ramprabu ramprabhu-idexcel

Block or report user

Report or block ramprabhu-idexcel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ramprabhu-idexcel
ramprabhu-idexcel / next_greater_permutation.rb
Created Jul 17, 2019
Implement a ruby method to find the next largest number with the same digits of the input number. Ex: 38276 would return 38627.
View next_greater_permutation.rb
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]
View FirstLastNameFilter.diff
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
+*/
View userFilter.diff
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;
You can’t perform that action at this time.