Skip to content

Instantly share code, notes, and snippets.

View rafaeljourdan's full-sized avatar

Rafael Jourdan rafaeljourdan

View GitHub Profile
@rafaeljourdan
rafaeljourdan / go.mod
Created February 2, 2023 09:26
req-modifier.get-service-paths-plugin plugin
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
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])
<!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">
{
"ACORD": {
"SignonRs": {
"Status": {
"StatusCd": "0",
"StatusDesc": "Annonymous public user accepted."
},
"SignonRoleCd": "Agent",
"CustId": {
"SPName": "com.blt",
{
"ACORD": {
"SignonRs": {
"Status": {
"StatusCd": "0",
"StatusDesc": "Annonymous public user accepted."
},
"SignonRoleCd": "Agent",
"CustId": {
"SPName": "com.blt",
const { compose } = require('lodash/fp');
// Core
class ControllerBase {
constructor(name) {
this.name = name;
}
getPlans() {
console.log("CORE get plans");
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,
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,
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'
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'