Skip to content

Instantly share code, notes, and snippets.

View sriram15690's full-sized avatar

Sriram R sriram15690

View GitHub Profile
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:
kubectl expose deploy nodewebb --name=node-app --port=80 --target-port=8080 --type=LoadBalancer
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" ]
@sriram15690
sriram15690 / Schengen_Tourist_Process_Indian_in_UK.txt
Last active June 11, 2019 14:41
Schengen Tourist Visa Process for Indian Citizens in UK. ( Updated on May 25, 2017)
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
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
#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'],
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
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);
}
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) {
function Shape(){
this.name = 'Shape';
this.toString = function () {
return this.name;
};
}
function TwoDShape(){
this.name = '2D shape';
}
function Triangle(side, height){