This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
var cluster = require('cluster'); | |
if (cluster.isWorker) { | |
console.log('Worker ' + process.pid + ' has started.'); | |
// Send message to master process. | |
process.send({msgFromWorker: 'This is from worker ' + process.pid + '.'}) | |
// Receive messages from the master process. |
Public Function DecodeXml(TextToDecode As String) As String | |
'Take text that has been encoded for XML and change it to normal text | |
Dim Res As String | |
Res = Replace(Replace(Replace(Replace(TextToDecode, """, """"), ">", ">"), "<", "<"), "&", "&") | |
DecodeXml = Res | |
End Function |
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
#Get SNMP Value for canon printers for total page count using PySNMP, export to pdf, then email to required user# | |
#Need to install pysnmp, reportlab and smtplib using pip or easy install# | |
#Those are the OIDS for counters and serial | |
#TOTAL: .1.3.6.1.4.1.1602.1.11.1.3.1.4.102 | |
#COLOR: .1.3.6.1.4.1.1602.1.11.1.3.1.4.106 | |
#B/W: .1.3.6.1.4.1.1602.1.11.1.3.1.4.109 | |
#SERIAL: .1.3.6.1.2.1.43.5.1.1.17.1 | |
#TOTAL SOME C2020: .1.3.6.1.4.1.1602.1.11.1.3.1.4.101 |
#Name: Export ArcGIS Server Map Service Layer to Shapefile | |
#Author: Bryan McIntosh | |
import urllib2, os, arcpy | |
# Variables | |
myUrl = "https://sampleserver6.arcgisonline.com/arcgis/rest/services" | |
myService = "/Census/MapServer" | |
myParams = "/3/query?where=1%3D1&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&returnZ=false&returnM=false&returnDistinctValues=false&returnTrueCurves=false&f=pjson" | |
# Query ArcGIS Server Map Service |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.