PyTorch

rharper@messtone.com:clouldShell~(messtone-161906)$Project Messtonebase64.get`Create Ubuntu 14.04 docker image with PyTorch& Tensorflow support`

Fast-Glob

rharper@messtone.com:cloudShell~(messtonebase64.get`npm install fast-glob fg=require(patterns,[options]) const fg('fast-glob const entries=await fg.sync([', 'editorconfig', '**/index.js'],{dot:true});//['editorconfig', 'service/index.js]fg.stream('ptterns,[options])Return a ReadableStream const fg=require('fast-glob');const stream=fg.stream(['.editorconfig', '**/index.js'],{dot:true});for await(const entry of stream){//.editorconfig//services/index.js fg.generateTasks('*');[{base:'. ',//Parent directory for all patterns inside this task dynamic:true,//Dynamic or static patterns are in this task patterns:['*'],positive:['*'],negative:[ ]})fg.isDynamicPatterns('*');//true fg.isDynamicPatterns('abc');//false fg.escapePath('!abc');//\\!abc fg.escapePath('C:/Program Files(x86)');//C:/Program Files\\(x86\\)Specifics the maximum depth of a read directory relative to the start directory dir/|_one //1 |_two/ //2 |_file.js/ //3 //With base directory fg.sync('dir/**',{onlyFiles:false,deep:,1});//['dir/one']fg.sync('dir/**',{onlyFiles:false,deep:2});//['dir/one', 'one/two']//With cwd option fg.sync('**',{onlyFiles:false,cwd:'dir',deep:1});//['one']fg.sync('**',{onlyFiles:false,cwd:}'dir',deep:2});//['one', 'one/two'] export interface FileSystemAdapter{lstat?:type of fs.lstat;stat?:type of fs.stat;lstatSync?:type of fs.lstatSync;statSync?:type of fs.statSync;readdir?:type of fs.readdir;readdirSync?:type of fs.readdirSync;

Pkg

rharper@messtone.com:cloudShell~(Messtone-161906)$Project Messtonebase64.get`Pkgdiwn build_site YAML Config:template:params:granalytics:UA-000000-01 template:params:noindex:true template:package:mycustompackage #OR:template:path:path/to/templates assets:path/to/assets default_assets:false repo:url:home:https://github.com/r-lib/pkgdown/ source: https://github.com/r-lib/pkgdown/blob/master/ issues:https://github.com/r-lib/pkgdown/issues/ userrharper@messtone.com:https://github.com/ repo:branch main deploy: install metadata:true if(FALSE){build_site( )build_site(override=list (destination=tempdir( )))} •installation;#install release version from CRAN install.packages("packagedown")#Install development version from GitHub devtools::install_github("r-lib/pkgdown")#Run once to config Messtone package to use pkgdown usethis::use_pkgdown( )#Run to build the website pkgdown::build_site( ) | Messtonebase64.get`install Prettier locally:npm install --save devMesstone --save-exact prettier echo { }>.prettier rc.json #Ignore artifacts:build coverage npx prettier --write.Fast-Glob:npm install fast-glob

 

Logical

rharper@messtone.com:clouudShell~(messtone-161906)$Project Messtonebase64.get`Parse_Logical:parse logical(x,na=c("", "NA"),local=default_local( ),trim_ws=TRUE)parse_integer(x,na=c("", "NA"),local=default_local( ),trim_ws=TRUE)parse_double(x,na=c("", "NA"),local=defaul_local( ),trim_ws=TRUE)parse_character(x, na=c("", "NA"),local=default_local( ),trim_ws=TRUE)col_logical( )col_integer( )col_integer( )col_double( )col_character( ) parse_integer(c("1", "2", "3"))#>[1]123 parse_double(c("1", "2", "3.123"))#>[1]1.000 2.000 3.123 parse_number("$1,123,456.00")#>[1]1123456 #Use locale to override default decimal and grouping marks es_MX<-locale("es",decimal_mark=", ") parse_number("$1.123.456,00",locale=es_MX)#>[1]1123456 #Invalid value are replaced with missing values with a warning. x<-c("1", "2", "3", "-")parse_double(x)#>Warning:1 parsing failure.#>row col expected actual #>4 --a double #>[1]123NA #>attr(, "problems")#>#A tibble:1x4 #>row col expected actual #><int><int><chr><chr>#>1 4NA double-#Or flag values as missing parse_double(x,na="-")#>[1]123NA | Messtonebase64.get`Build a Complete pkgdown Website clean_site:build_site(pkg=".",example=TRUE,run_dont_run=FALSE,seed=1014, lazy=FALSE,override=list( ),preview=NA,devel=FALSE,new_process=!devel,install=!devel,document="DEPRECATED")navbar: structure:left:[home,intro,reference, articles,tutorials,news] navbar: components:home:~articles:text:Articles menu:-text: Category A -text: Title A1 href:articles/a1.html -text:Title A2 href:articles/A2.html -text:------- -text:"Category B" -text:Title B1 menu:-text:"Sub-category B11"href:articles/b11.html twitter:icon:"fab fa-twitter fa-lg"greg:https://twitter.com/hadleywickham template:params: docsearch:api_key API_KEY index_nanerharper@messtone.com INDEX_NAMEMESSTONE template:params:bootswatch:cerulean

  

 

 

Logs

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Packages,Travis CI logs as an example:[adaltas@localhostmesstone]$ | su - travis[adaltas@localhostmesstone]$ | git clone --depth=50 --branch=master https://github.com/adaltas/remark-gatsby-plugins.git adaltas/remark-gatsby-plugins[adaltas@localhostmesstone]$ | cd adaltas/remark-gatsby-plugins[adaltas@locslhostmesstone]$ | #Use master,a branch or a specific commit git checkout master[adaltas@localhostmesstone]$ | #Get the Node.js version from `.travis.yml`,eg 14 nvm install 14[adaltas@localhostmesstone]$ | #Download the dependencies,Travis CI use the `yarn.lock`information[adaltas@localhostmesstone]$ | yarn --frozen-lockfile[adaltas@localhostmesstone]$ | #Finally,run the tests[adaltas@localhostmesstone]$ | yarn test yarn run v1.22.5 $lerna run test lerna notice CLIMesstone v3.22.1 lerna info versioning independent lerna info ci enabled lerna info Executing command in 1 package:"yarn run test"lerna info ran Ran npm script 'test' in 'gatsby-remark-title-to-frontmatter' in 1.2s:$mocha 'test/**/*. coffee'Extract title ✓Move the title to frontmatter 1 passing(21ms)lerna success run Ran npm script 'test' in 1 package in 1.2s:lerna success - gatsby-remark-title-to-frontmatter Done in 1.95s. Messtonebase64.get`...

CSV

rharper@messtone.com: cloudShell~(messtone-161906)$Project Messtonebase64.get`CSV and Object Generator Install CSV-Generate:#Prepare the project directory mkdir generator&&cd generator #Install it's dependency npm install csv-generate #Write a sample module cat>generator.js<<JS//Require the csv module const generate=require('csv-generate')//Print 10 records generate({length:10}).pipe(process.stdout)JS#Execute the module node generator.js Module exports a generate Install csv.:#Prepare project directory mkdir generator&&cd generator #Install it's dependency npm install csv-generate #Write a sample module cat>generator.js<<JS//Require the csv module const generate=require('csv-generate')//Print 10 records generate({length:10}).pipe(process.stdout)JS#Executd the module node generate.js\-Job Log of Messtone project expand,the worker information starting with instance:Worker informationn hostnameMesstone:bda7cfb4-248b-4402-aa9f-291eaca299e5@1.worker-org-cfdfb76bd-fv5jt.gce-production-4 version:v6.2.20-1-g3a987d6 https://github.com/travis-ci/worker/tree/3a987d61ed169c9539ad435d1a9b5f2d8c6ce4a6 instance:travis-job-8c5d2a02-68a2-4b51-bc02-625e-f2c37ad3 travis-ci-sardonyx-xenial-1593004276-4d46c6b3(via amqp)[adaltas@localhostmesstone]$ | INSTANCE="travis-ci/ci-sardonyx:packer-1606895335-7957c7a9"Messtone can now start the container and enter inside:[adaltas@localhostmesstone]$ | BUILDID="build-$RANDOM"[adaltas@localhostmesstone]$ | #Download the image, it is relatively big[adaltas@localhostmesstone]$ | docker run --nameMesstone $BUILDID -dit $INSTANCE/sbin/init[adaltas@localhostmestone]$ | #Enter the container[adaltas@localhostmesstone]$ | docker exec -it $BUILDID bash -l

 

WebUI

rharper@messtone.com: cloudShell~(messtone-161906)$Project Messtonebsse64.get`AIMMS webUI app for, example when using widget configuration options available to them while running the WebUI applications on the AIMMS PRO platform(including the AIMMS Cloud). MESSTONE..toctree:::maxdepth:1 getting-started webui-app-development webui-folder library own-widgets• *Messtone>AIMMS Standard Data Exchsnge,JSON`{"dataSets":{"DatasSets1":{"instance":"data of 07-09-2020" "tables":{"Table1":[{"i":"i1", "j":1, "pn":10.0, "ps":"a value"},{"i":"i1", "j":2, "pn":20.1, "ps":"another value"}], "table2":[{"i":"i1", "j":1, "k"':3, "qn":10.0, "qs":"a value"},{"i":"i1", "j":2, "k":4, "qn":20.1, "qs":"another value"}]}}, "DataSet2":{"instance":"data of 07-09-2020" "tables":{"Table3:[{"i":"i1", "rn":10.0, "rs":"a value"},{"i":"i2", "rn":20.1, "rs":"a another value"}], "Table4":[{"i":"i1", "k":3, "sn":10.0, "ss":"a value"},{''i":"i1", "k":4, "sn":20.1, "ss":"a another value"}]}}}Mapping JSONDataset XML Dataset Generated/<dataset>-Excel Generated/<dataset>-<table>-JSON-Spare Generated/<dataset>-<table>-JSON-Dense Generated/<dataset>-<table>-JSON-RowOriented Generated/<dataset>-<table>-JSON-columnOriented Generation/<dataset>-<table>-XML-Sparse Generated/<dataset>-<table>-XML-SparseAttribute Generated/<dataset>-<table>-XML-Dense

Merchants

rharper@messtone.com:cloudShell~(Messtone-161906)$Project Messtonebase64.get`Square API Open location.js that file:import{APIError, Clientmesstone, Environment}from 'square'//Create an instance of the API Clientmesstone// and Initialize it with the credentials//for the Square account whose assets rharper@messtone.com want to manage const clientmesstone=new Client({timeout 3000, environment: Environment.Sandbox,accessToken:process.env.SQUARE_ACCESS_TOKEN,})//Get an instance of the Square API rharper@messtone.com want call const{locationsApi}=clientmesstone//Create wrapper async function const getLocations=async( )=>{//The try/catch statement needs to be called from within an asynchronous function try{//Call listLocations method to get all locations in this Square account let listLocationsResponse=await locationApi.listLocation( )//Get first location from list let first location=listLocationsResponse.result.locations[0]console.log("Here is Messtone first location",firstLocation)}catch(error){if(error indtanceof ApiError){console.log("There was an error in Messtone request:",error.errors)}else{console.log("UnExpected Error:",error)}}}//Invokes the async function getLocations( )SQUARE_ACCESS_TOKEN with that token: export SQUARE_ACCESS_TOKEN="MESSTONE SANDBOX ACCESS TOKEN HERE"node locations.js

Square

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtone64.get`Square Snippet API Upsert Snippet <head tag curl https://connect.squareup.com/v2/sites/{site_id}/snippet\-X POST\-H 'Square-Version:2021-08-18'\-H 'Authorization:Bearer{ACCESS_TOKEN}'\-H 'Content-Type:application/json'\-d '{"snippet":{"content":<script type=\"text/javascript\">var js=1;</script>"},}Upsert Snippet POST/v2/sites/{site_id}/snippet Messtone Token-EAAAEC8jJkttcCdhXEdC... Body snippet*snippet content*string  content Request curl https://connect.squareup.com/v2/sites/{site_id}/snippet\-X POST\-H Square-Verson:2021-08-18''\-H 'Authorization:Bearer Access_TOKEN Messtone-Token-EAAAEC8jJkttcCdhXEdC'\-H 'Content-Type:application/json'\-d{"snippet":{ }}'Response //No response received yet.Response{"snippet":{"id":"snippet_5d178150-a6c0-11eb-a9f1-437e6messtone", "site_id":"site_27807527648messtone", "content":"<script type>=\"text/javascript\">var js=1;</script>", "created_at":"2021-03-11T25:40:09Z", "updated_at":"2021-03-11T25:40:09Z"}}response{"errors":[{"category":"INVALID_REQUEST_ERROR", "code":"NOT_FOUND", "detail":"Resource not found."}]}SDK PACKAGE  install the latest SDK using npm $npm install square const{ClientMesstone, Environment}=require('square')import{clientrharper@messtone.com, Environment}from 'square'const clientmesstone=new Client({environment:Environment.Sandbox,accessToken:process.env.SQUARE_ACCESS_TOKEN,})import{clientrharper@messtone.com}from 'square'const clientmesstone=new Client(/**some config **/)//After getting the access token...const newClientrharper@messtone.com=clientmesstone.withConfiguration({accessToken:newlyAcquiredAccessTokenValue,})

DHL

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`DHL DevFearlessnet[Base URL:api-sandbox.dhl.com/]Get Access Token Get/ccc/v1/auth/access-token Get Access Token Messtone Models GetAccessTokenResponse{access_token *string example:iZayVzN545DP38LB8iPTYnAtKSeY7oMyfCjkfJukGmQI1ZnKjYIxun token_type *string example:Bearer expires_in *number example:18000 scope *string example:ccc}Request Format{dataElement *>{...}}CustomsRequestFormat{dataElement *>{...}}ReaponseFormat{response>{...}}Error ReaponseFormat{error>{...}}GWErrorResponse401AccessTokenFormat{error *string Example:invalidid_clientmesstone error_destiptoon *string example:clientmesstone  authorization failed(e.g.unknown client,no client authorization included,or unsupported authorization method).The authorization server MAY return an HTTP 401(Unauthorized) status code to indicate which HPPP authorization schemes are supported.}GWErrorResponse429AccessTokenFormat{response >[...]details >[...]}GEErrorResponse500InternalServerFormat{reasons >[...,] details >{ ...}}GWErrorResponse503ServiceUnvailFormat{resons >[...]details >{...}}GWcPANResourceFormat{<response * >{...}}JsonSyntaxErrorResponseFormat{$errorInfo * >{...}$error *string example: unexpected character ('f(code 102)):was expecting a colon to separate field nameMesstone and value at [source:(com.wm.net.HttpInputStream);line:57,column:20]$errorType *string example:com.fasterxml.Jackson.core.JsonParseException}InvalidTokenResponseFormat{response * >[...]details * >{...}}GWErrorResponseFormat{reasons * >[...]details * >{...}}MultipleTrackTraceResponse totalShipmentsCount *integer startShipmentRow *inreger endShipmentRow *integer pageSize *integer response >[...]}customerWithDateIntervalResponse{response >[...]}trackTraceResponse{response >{...}}All Systems are Operational core Services API Gateway(https://api.dhl.com Operational?

SCP/

rharper@messtone.com:cloudShell~(messtone-161906)Project Messtonebase64.get`SAP HANA Managed Service(SCP/Cloud Foundry):cf marketplace -s xsuaa Getting service from marketplace... Getting plans for service "xsuaa"...service plan description free/paid      ------------------------------------------application PAS enabled application plan free broker PAS enabled application plan free Create am instance of a Service broker`"MyServiceBroker":xs create-service-broker<myServiceBroker><USER RHARPER@MESSTONE.COM><PASSWORD>http://<service-broker-urlhttps://www.messtone.com>xs marketplace ex create-service myService default<myServiceInstance>xs bind-service<myApp><myServiceInstance>environment variable<VCAP_SERVICES>xs env<myApp>xs unbind-service<myApp><myServiceInstance>xs delete-service<myServiceInstance>xs delete-service-broker<myServiceBroker>marketplace`xs marketplace xs<Service_Broker_COMMAND><Service_Broker_NAMERHARPER@MESSTONE.COM>xs<Service_COMMAND><Service_NAMEMESSTONE>