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
| ; LOCALE_PATH=../../../locale | |
| HTTP_ADDR=:18080 | |
| LOCALE_PATH=../locale | |
| LOCALE_LOG=true | |
| AUTH_BASE_URL=http://localhost:18080/auth | |
| DB_DSN="postgres://melody:melody@localhost:5432/melversionthreenew?sslmode=disable" | |
| ############################################################################### |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Dashboard</title> | |
| <!-- Chart.js library --> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> |
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
| {:status=>true, | |
| :body=> | |
| {"code"=>"SUCCESS", | |
| "custom_error_code"=>0, | |
| "message"=>"Successfully Logged In", | |
| "data"=> | |
| {"partner_approval_status"=>{"approval_status"=>"APPROVED", "approval_details"=>nil}, | |
| "partner_centre_approval_status"=>{"approval_status"=>"APPROVED", "approval_details"=>nil}, | |
| "user_approval_status"=>{"approval_status"=>"APPROVED", "approval_details"=>nil}, | |
| "user_details"=>{"user_name"=>nil, "phone_number"=>"7777777666", "roles"=>["PARTNER_CENTRE_MANAGER"]}, |
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
| [1] pry(main)> c = %x(textutil -stdout -cat txt /Users/sidtri/Documents/ris.docx) | |
| [2] pry(main)> c.split("\n").select {|a| a.match /\?/ } | |
| => ["\t•\tWhere is Rishikesh? How can I reach Rishikesh from Delhi?", | |
| "\t•\tWhat is the best time to visit Rishikesh for rafting?", | |
| "\t•\tWhere can we do rafting in Rishikesh?", | |
| "\t•\tCan I go river rafting in Rishikesh if I don’t know swimming?", | |
| "\t•\tWhat all should I carry while visiting Rishikesh for rafting?", | |
| "\t•\tWhat are the rapid levels and grades for Rafting in Rishikesh?", |
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/config/initializers/bounced_email_interceptor.rb b/config/initializers/bounced_email_interceptor.rb | |
| index bd9ec60..38cb45a 100644 | |
| --- a/config/initializers/bounced_email_interceptor.rb | |
| +++ b/config/initializers/bounced_email_interceptor.rb | |
| @@ -25,9 +25,9 @@ class BouncedEmailInterceptor | |
| def self.remove_bounced_emails(emails, consumers_hash) | |
| emails = [emails] if emails.class != Array | |
| emails = emails.flatten | |
| - | |
| + |
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/config/initializers/bounced_email_interceptor.rb b/config/initializers/bounced_email_interceptor.rb | |
| index bd9ec60..be7191b 100644 | |
| --- a/config/initializers/bounced_email_interceptor.rb | |
| +++ b/config/initializers/bounced_email_interceptor.rb | |
| @@ -25,9 +25,9 @@ class BouncedEmailInterceptor | |
| def self.remove_bounced_emails(emails, consumers_hash) | |
| emails = [emails] if emails.class != Array | |
| emails = emails.flatten | |
| - | |
| + |
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/config/initializers/bounced_email_interceptor.rb b/config/initializers/bounced_email_interceptor.rb | |
| index bd9ec60..190a52c 100644 | |
| --- a/config/initializers/bounced_email_interceptor.rb | |
| +++ b/config/initializers/bounced_email_interceptor.rb | |
| @@ -25,9 +25,9 @@ class BouncedEmailInterceptor | |
| def self.remove_bounced_emails(emails, consumers_hash) | |
| emails = [emails] if emails.class != Array | |
| emails = emails.flatten | |
| - | |
| + |
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 v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */ | |
| !function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.construc |
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 JavaScript Library v1.9.0 | |
| * http://jquery.com/ | |
| * | |
| * Includes Sizzle.js | |
| * http://sizzlejs.com/ | |
| * | |
| * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors | |
| * Released under the MIT license | |
| * http://jquery.org/license |
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 GraphMakerService | |
| def initialize(data, parent_childrens=[], level = 10) | |
| @data = data | |
| @base_column = data.first.bs_table rescue "" | |
| @parent_childrens = parent_childrens | |
| # removing base column or parent_childrens from children if exist | |
| @children_text = children_text.reject { |c| (c == @base_column) || (@parent_childrens.include? c) } | |
| @parent_childrens = @parent_childrens + @children_text | |
| @level = level | |
| end |
NewerOlder