Skip to content

Instantly share code, notes, and snippets.

@igortoliveira
igortoliveira / machine.js
Last active June 19, 2021 01:32
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
{:com.walmartlabs.lacinia.parser/arguments-extractor nil,
:selections
[{:com.walmartlabs.lacinia.parser/arguments-extractor nil,
:selections
[{:com.walmartlabs.lacinia.parser/arguments-extractor nil,
:selections
[{:com.walmartlabs.lacinia.parser/arguments-extractor nil,
:arguments nil,
:reportable-arguments nil,
:field :title,
{
"status": {
"status": "ERROR",
"error": {
"status": "Error",
"code": "2317060",
"property": "https://github.com/virginam/web3-docs/blob/gh-pages/javadoc/com/virginamerica/web3/domain/model/ErrorCode.java?source\u003dc",
"message": "GW_ELEVATE_PROFILE_MODIFY_CREDITCARD : null::Error updating the Creditcard Information: U::NCERT502-2T20160902103755SU::An internal application error has occurred. api : /v2/elevate/profile-modify gatewayLoggerDir : transactionId: 97047b57-53f0-4c27-b26d-4de85e6022dc cartID: 12d50f74-a135-4c85-b3db-477da4fc8566 httpRequestSessionId : 23DFBFC4B4F40AD2CA522E238B676D9E hostIPAddress : 172.50.10.71",
"developerMessage": "class com.virginamerica.web3.gateway.elevate.ElevateProfileModifyGateway$$EnhancerByGuice$$96f34cb",
"moreInfo": "com.virginamerica.web3.gateway.GatewayException: null::Error updating the Creditcard Information: U::NCERT502-2T20160902103755SU::An internal application error has occurred.\n\tat com.virginamerica.web3.gateway.elevate.Elevat
r = divide(3, 0)
r = unwrap(r)
.when('error', function(err) print(err) end)
.when('success', function(r)
r2 = mult(r, 3)
unwrap(r2).when('error')
end)
r = unwrap!(r)
1. What is the difference between classical inheritance and prototypical inheritance?
2. What Object Orientation means? What is its advantage?
3. What is the difference between Object Orientation and Functional Programming?
4. Do you know what is Big O notation?
5. Did you already use any design patterns? If the answer is positive could you explain the design pattern you used and why.
6. What frameworks and libraries did you already use? (e.g. jquery, angular, backbone.js)
7. Give me the name of 3 data structs and their complexities.
var validator = $.data( this[ 0 ], "validator" );
if ( validator ) {
return validator;
}
// Add novalidate tag if HTML5.
this.attr( "novalidate", "novalidate" );
validator = new $.validator( options, this[ 0 ] );
$.data( this[ 0 ], "validator", validator );
{
"entity": {
"eid": "2079156"
},
"elevateId": "87006530918",
"authToken": "fd84d907-0f34-4e55-97f1-e415a23bd995",
"personDetail": {
"firstName": "gold",
"lastName": "testers",
"gender": "MALE",
{
"tripDetails": {
"bookingType": "DOLLAR",
"departingFlightList": [
{
"departingFlights": [
{
"flightSegment": {
"aircraftType": "A320",
"arrival": "SJD",
{
"addressInfoList": [
{
"addressType": "HOME",
"city": "Denver",
"country": "US",
"primary": true,
"sequenceNum": 1,
"state": "CO",
"zipCode": "54321"
request:
{"bookingInfo":{"travelerInfoList":[{"firstName":"foo","middleName":"","lastName":"bar","type":"Adult","gender":"MALE","emergencyContactName":"Ken","emergencyContactNum":"98737777","dob":"1988-04-07","knownTravelerNum":"","redressNum":""}],"addressInfo":{"addressOne":"assfsdfsdfsdf","city":"asdasdasd","state":"Alaska","country":"USA","zipCode":"13123"},"phoneInfo":{"number":"13123123123","contactType":"HOME","phoneRefNumber":"1.1","sequenceNum":0,"primary":true},"emailInfo":{"address":"foo@bar.com","emailType":"CC","emailRefNumber":"1.1","sequenceNum":0,"primary":false},"bookingType":"ANONYMOUS_DOLLAR","mobile":false,"oAndDList":[{"departureDateTime":"2014-05-08T06:50:00-08:00"},{"departureDateTime":"2014-05-09T08:55:00-05:00"}],"insuranceOption":{"selected":false},"optInOption":{"selected":false}},"seatInfo":{"seatFlightList":[{"flightId":1,"flightNum":"350","paxSeatList":[{"pax":{"firstName":"foo","lastName":"bar","guestId":0},"seatNum":"13C","mce":false}]},{"flightId":2,"flightNum":"351","paxSeatL