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
Microfrontend Strategy: | |
The approach involves creating a React Single Page Application (SPA) as the main container, encompassing multiple Microfrontends (MFs). When integrating with an existing JSP-based app, follow these steps: | |
1. Develop a simple React container app. | |
2. Embed this app into the JSP application. | |
3. Ensure functionality is operational. | |
4. Include the Microfrontends into the React container app. | |
Routing considerations: |
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
kubectl expose deploy nodewebb --name=node-app --port=80 --target-port=8080 --type=LoadBalancer |
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
Use the below API to retrieve data using ajax & write two methods to do the following: | |
1.display products by category | |
2.display product data. | |
API: https://api.myjson.com/bins/nqap7 | |
Inp: getProducts('Mobiles'); | |
Op: ['iphone 7',"Samsung S9" ] |
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
Last Updated on 11/06/2019 | |
Since 1st of December 2018, any visa application for France must be made via the France-Visas website: https://france-visas.gouv.fr/en_US/web/france-visas | |
Once you have completed your application form on the France-Visas site, you will be redirected to the TLScontact website to make your appointment | |
At the day of your appointment, the France-Visas application form and document receipt must be provided. | |
Start your visa application on the France-Visas website. | |
Fees: £100 to be paid at Embassy |
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
Quick setup — if you’ve done this kind of thing before | |
Set up in Desktop or | |
HTTPS | |
SSH | |
https://github.com/sriram15690/subrepo-test.git | |
We recommend every repository include a README, LICENSE, and .gitignore. | |
…or create a new repository on the command line |
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
#module DateParser | |
#DateTime.new(2016,06,06,17,20,10).strftime("%d/%m/%Y %I,'M%p") | |
require "date" | |
require 'active_support/all' | |
EXISTING_PATTERNS = { | |
months: ['january','february','march','may','june','july','august','september', 'october','november','december'], | |
days: ['sunday','monday','tuesday', 'wednesday','thursday','friday','saturday'], | |
past: ["before","ago", 'yesterday', 'last','previous'], |
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
Enzyme: | |
1. Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output. | |
2. Use any assertion library. | |
3. Shallow rendering - useful for testing components as a unit, and to ensure that your tests aren't indirectly asserting on behavior of child components. | |
4. methods are similar to jQeury API |
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 p = new Promise(function (resolve, rejeect) { | |
$.ajax({ | |
url: "https://api.github.com/users/sriram15690", | |
type: "GET", | |
success: function(response){ | |
resolve(response); | |
}, | |
error: function(response) { | |
reject(response); | |
} |
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 User = function (fname, lname) { | |
this.fname = fname; | |
this.lname = lname; | |
this.fullname = function(){ | |
console.log("Fullname is "+this.fname+" "+this.lname); | |
}; | |
}; | |
var Member = function(memberId, fname, lname) { |
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
function Shape(){ | |
this.name = 'Shape'; | |
this.toString = function () { | |
return this.name; | |
}; | |
} | |
function TwoDShape(){ | |
this.name = '2D shape'; | |
} | |
function Triangle(side, height){ |
NewerOlder