This file contains 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 req-modifier.get-service-paths-plugin | |
go 1.19 | |
require go.mongodb.org/mongo-driver v1.11.1 | |
require ( | |
github.com/golang/snappy v0.0.1 // indirect | |
github.com/klauspost/compress v1.13.6 // indirect | |
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe // indirect |
This file contains 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
import '../styles/globals.css' | |
import React, { useState, useEffect } from "react" | |
function App() { | |
const [data, setData] = useState<string>('') | |
const [list, setList] = useState<string[]>([]) | |
useEffect(() => { | |
console.log("useEffect list updated", list); | |
}, [list]) |
This file contains 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="pt-br"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Exec Crono</title> | |
<link href="https://fonts.googleapis.com/css?family=Poppins:400,700" rel="stylesheet"> |
This file contains 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
{ | |
"ACORD": { | |
"SignonRs": { | |
"Status": { | |
"StatusCd": "0", | |
"StatusDesc": "Annonymous public user accepted." | |
}, | |
"SignonRoleCd": "Agent", | |
"CustId": { | |
"SPName": "com.blt", |
This file contains 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
{ | |
"ACORD": { | |
"SignonRs": { | |
"Status": { | |
"StatusCd": "0", | |
"StatusDesc": "Annonymous public user accepted." | |
}, | |
"SignonRoleCd": "Agent", | |
"CustId": { | |
"SPName": "com.blt", |
This file contains 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
const { compose } = require('lodash/fp'); | |
// Core | |
class ControllerBase { | |
constructor(name) { | |
this.name = name; | |
} | |
getPlans() { | |
console.log("CORE get plans"); |
This file contains 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
import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js'; | |
import axios from '../../shared/axios'; | |
import DateHelper from '../../helpers/DateHelper'; | |
import EdiIBPPermissions from '../../helpers/IBPPermissions'; | |
import ObjectHelper from '../../helpers/ObjectHelper'; | |
import Shared from '../../shared/shared'; | |
import EdiAddressTh from '../edi-address-th/edi-address-th'; | |
import { | |
PA_INSURANCE, |
This file contains 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
import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js'; | |
import axios from '../../shared/axios'; | |
import DateHelper from '../../helpers/DateHelper'; | |
import EdiIBPPermissions from '../../helpers/IBPPermissions'; | |
import ObjectHelper from '../../helpers/ObjectHelper'; | |
import Shared from '../../shared/shared'; | |
import EdiAddressTh from '../edi-address-th/edi-address-th'; | |
import { | |
PA_INSURANCE, |
This file contains 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
import _ from 'lodash' | |
import { students } from './db.js' | |
// #3 Lodash | |
const father = _.get(students, '[1].parents[1]', 'unknown lodash') | |
// output | |
console.log('father', father) // unknown lodash' |
This file contains 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
import { students } from './db.js' | |
// #2 | |
const father = (students && students[1] && students[1].parents && students[1].parents[1]) | |
? students[0].parents[1] | |
: 'unknown 2' | |
// output | |
console.log('father', father) // unknown 2' |
NewerOlder