This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup postgres databases to s3 | |
# requires AWS cli tools for windows to be initialized and installed | |
$transcripts = "C:\transcripts" | |
$s3Bucket = "s3://s3-bucket-name/s3-bucket-path/" | |
$csv = "output.csv" | |
$pguser = "postgres" | |
$pgpass = Get-Content "C:\Scripts\pg_pass.txt" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// config.js | |
export default { | |
view: { | |
map: {...}, | |
widgets: [{ | |
type: 'layers', | |
options: { | |
// pass options to the layers list widget | |
// https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#listItemCreatedFunction | |
listItemCreatedFunction(item){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The resolved tool component to render | |
*/ | |
toolComponent: { | |
value({resolve, lastSet}) { | |
this.promise.then((Component)=> { | |
lastSet = lastSet.get(); | |
if (lastSet) { | |
resolve(lastSet); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Component.extend({ | |
tag: 'panel-component', | |
ViewModel: { | |
collapsed: 'boolean', | |
contentRenderer: { | |
default(){ | |
return stache(`<p>Hello world</p>`); | |
} | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import esriConfig = require("esri/config"); | |
const DEFAULT_WORKER_URL = "https://js.arcgis.com/4.7/"; | |
const DEFAULT_LOADER_URL = `${DEFAULT_WORKER_URL}dojo/dojo-lite.js`; | |
(esriConfig.workers as any).loaderUrl = DEFAULT_LOADER_URL; | |
esriConfig.workers.loaderConfig = { | |
baseUrl: `${DEFAULT_WORKER_URL}dojo`, | |
packages: [ | |
{ name: "esri", location: DEFAULT_WORKER_URL + "esri" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
componentProps: { | |
default: navigation, | |
serialize: false | |
}, | |
flatComponentProps: { | |
get () { | |
return this.componentProps.reduce((links, link) => { | |
if (link.children) { | |
links = links.concat(link.children); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const querystring = require('querystring'); | |
/* eslint-disable no-unused-vars */ | |
class Service { | |
constructor (options) { | |
this.options = options || {}; | |
} | |
get (id, params) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0428ee62a43b190e18275d8d506c7af7e08810933b9cb8a3ea1eba8a3b02ba3ecc66f8bd40e60f79d1873cbd8aa33c5bebfd67b3dff48ca521f9aa160451c99df7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"npm-utils": { | |
"npm": true, | |
"npm-load": true, | |
"npm-convert": true, | |
"npm-crawl": true, | |
"npm-extension": true | |
}, | |
"npm-convert": { | |
"npm": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(anonymous) (tasks.js:247) < -- Here is where handler is undefined | |
wrappedFn (VM25909 register.js:110) | |
removeEventListener (events.js:32) | |
events.removeEventListener (make-mutation-event.js:91) | |
events.removeEventListener (attributes.js:81) | |
events.removeEventListener (make-mutation-event.js:91) | |
domEvents.removeEventListener (attr.js:658) | |
removeEventListener (add-event-compat.js:79) | |
removeEventListener (add-event-compat.js:79) | |
(anonymous) (can-stache-bindings.js:257) <! -- here el is the can-slot element , attributeListener is undefined, which eventually causes the error! |