ℹ️ This is an interpretation of RAW(16) for the GUID on Oracle Database.
SELECT| import xml.etree.ElementTree as ET | |
| import base64 | |
| import cairosvg | |
| import os | |
| import json | |
| def process_mxlibrary(xml_file, output_dir="output"): | |
| """ | |
| Processes a .drawio XML file containing an mxlibrary, extracts SVG/PNG images, | |
| and saves them to the specified output directory. |
| ## This is a directory/file filter template for WinMerge | |
| name: MuleSoft loose | |
| desc: Suppresses various folder and files related to MuleSoft Project using Anypoint Studio | |
| ## Select if filter is inclusive or exclusive | |
| ## Inclusive (loose) filter lets through all items not matching rules | |
| ## Exclusive filter lets through only items that match to rule | |
| ## include or exclude | |
| def: include |
| { | |
| "final_space": true, | |
| "console_title": true, | |
| "console_title_style": "folder", | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "horizontal_offset": 0, | |
| "vertical_offset": 0, |
| %dw 2.0 | |
| output application/json duplicateKeyAsArray = true | |
| // | |
| var payload = read('<?xml version="1.0" encoding="UTF-8"?><Root><About><Code>29329573000145</Code><Name>COMPANY X</Name><CodeStatus>Ativa</CodeStatus></About><Emails><Email>[email protected]</Email></Emails><Emails><Email>[email protected]</Email></Emails><Phones><AreaCode>19</AreaCode><Phone>34140000</Phone></Phones><Phones><AreaCode>19</AreaCode><Phone>34370005</Phone></Phones><Mobiles><AreaCode>11</AreaCode><Phone>912341234</Phone></Mobiles><Mobiles><AreaCode>11</AreaCode><Phone>956785678</Phone></Mobiles></Root>', 'application/xml') | |
| var root = 'Root' | |
| var arrayKeys = ["Emails", "Phones", "Mobiles"] | |
| var objectKeys = keysOf( (payload.'$(root)' default {}) as Object) -- (arrayKeys) |
| %dw 2.0 | |
| output application/json | |
| fun isWeekend(d: String | Date) = do { | |
| ["1","7"] contains ((d as Date) as String { format: "c"}) | |
| } | |
| fun isWeekday(d: String | Date) = do { | |
| not (["1","7"] contains ((d as Date) as String { format: "c"})) | |
| } |
| { | |
| "settings": { | |
| "enable_new_version_notification": false | |
| }, | |
| "rules": [ | |
| { | |
| "name": "Anypoint Management Center", | |
| "detection": "STARTS", | |
| "url_fragment": "https://anypoint.mulesoft.com/cloudhub/#/console/applications/cloudhub/", | |
| "tab": { |
| // ==UserScript== | |
| // @name Anypoint Design Center - API Design - Title with Project/Branch | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.3 | |
| // @description Improves the browser window title when using Anypoint Design Center by adding the project name +c branch | |
| // @author AndyDaSilva52 | |
| // @match https://anypoint.mulesoft.com/designcenter/designer/ | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=bing.com | |
| // @grant none | |
| // ==/UserScript== |
| let openTabList = Array.from( document.querySelector("body > history-app").shadowRoot.querySelector('#main-container > #content > #synced-devices').shadowRoot.querySelector('#synced-device-list > history-synced-device-card:nth-child(1)').shadowRoot.querySelector('#history-item-container > #collapse > div#tab-item-list').querySelectorAll('div.item-container') ) | |
| .map(e => ` ${e.querySelector('a').getAttribute("href")}`); | |
| copy(openTabList.join('\n')); |
| declare | |
| v_max_len_ncm_extenso integer; | |
| v_achou_pai CHAR := 'N'; | |
| v_pai_ncm_tab_in mgtrf.trf_ncm.ncm_tab_in_codigo%type; | |
| v_pai_ncm_pad_in mgtrf.trf_ncm.ncm_pad_in_codigo%type; | |
| v_pai_ncm_in mgtrf.trf_ncm.ncm_in_codigo%type; | |
| v_pai_ncm_ext mgtrf.trf_ncm.ncm_st_extenso%type; | |
| begin | |
| begin | |
| select max(length(ncm_st_extenso)) |