Skip to content

Instantly share code, notes, and snippets.

View dmitry-osin's full-sized avatar

Dmitry Osin dmitry-osin

  • Haulmont LTD
  • Moscow, Russia
View GitHub Profile
"hasReport": [
{
"type": "INFO",
"created": "2021-03-03T16:41:47.628Z",
"message": "Vendor package successfully received",
"event": {
"id": "5c98ca8b-b700-4639-9a1c-45c7a914eb0f",
"modelType": "WorkflowEvent"
}
},
{
"workflow": {
"phase": "wwfl:ArticleProduction",
"id": "wwfl:ArticleStandardWorkflow",
"modelType": "Workflow"
},
"payload": [
{
"requiresPayment": [
{
@dmitry-osin
dmitry-osin / emoji.md
Created December 22, 2020 11:24 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@UtilityClass
public class XPathUtils {
public Map<String, Object> extractValue(@NonNull String json, @NonNull String xPath) {
Map<String, Object> jsonValue = U.fromXmlMap(json);
return extractValue(jsonValue, xPath);
}
@SuppressWarnings("unchecked")
public Map<String, Object> extractValue(@NonNull Map<String, Object> jsonMap, @NonNull String xPath) {
@dmitry-osin
dmitry-osin / .bash_profile
Created October 8, 2019 08:48 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
using System.Linq.Expressions;
using Shortener.Web.Contracts;
using Shortener.Web.Infrastructure;
namespace Shortener.Web.Repository
package com.wiley.gts.bce.common.util.xml.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.regex.Matcher;
import java.util.stream.Collectors;
<bean id="xpathExpressionNotes" class="org.springframework.xml.xpath.XPathExpressionFactoryBean"
p:expression="/w:component/w:header/w:contentMeta/w:noteGroup//w:note[contains(.,'(primary)')]"
p:namespaces-ref="bceNamespacesMap"/>
@dmitry-osin
dmitry-osin / NCBI-Sample.xml
Last active December 11, 2018 13:19
NCBI-Sample.xml
<?xml version="1.0" encoding="UTF-8"?>
<root>
<taxonomy name="NCBI">
<term externalId="NCBI-131567">
<synonym uniqueName="Bacteria &lt;prokaryotes&gt;">Bacteria</synonym>
<synonym uniqueName="Monera &lt;Bacteria&gt;">Monera</synonym>
<synonym uniqueName="Procaryotae &lt;Bacteria&gt;">Procaryotae</synonym>
<synonym uniqueName="Prokaryota &lt;Bacteria&gt;">Prokaryota</synonym>
<synonym uniqueName="Prokaryotae &lt;Bacteria&gt;">Prokaryotae</synonym>
<synonym uniqueName="bacteria &lt;blast2&gt;">bacteria</synonym>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><root><taxonomy name="NCBI"><term externalId="NCBI-131567"><synonym uniqueName="Bacteria &lt;prokaryotes&gt;">Bacteria</synonym><synonym uniqueName="Monera &lt;Bacteria&gt;">Monera</synonym><synonym uniqueName="Procaryotae &lt;Bacteria&gt;">Procaryotae</synonym><synonym uniqueName="Prokaryota &lt;Bacteria&gt;">Prokaryota</synonym><synonym uniqueName="Prokaryotae &lt;Bacteria&gt;">Prokaryotae</synonym><synonym uniqueName="bacteria &lt;blast2&gt;">bacteria</synonym><synonym uniqueName="">eubacteria</synonym><synonym uniqueName="prokaryote &lt;Bacteria&gt;">prokaryote</synonym><synonym uniqueName="prokaryotes &lt;Bacteria&gt;">prokaryotes</synonym></term><term externalId="NCBI-335928"><synonym uniqueName="">Azorhizobium</synonym><synonym uniqueName="">Azorhizobium Dreyfus et al. 1988 emend. Lang et al. 2013</synonym></term><term externalId="NCBI-6"><synonym uniqueName="ATCC 43989 &lt;type strain&gt;">ATCC 43989</synonym><synonym uniqueName="">Azorhizobium cau