This file contains hidden or 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 arcpy | |
| import sys | |
| VISTABALLOTAREAS = r'Database Connections\SGID10.sde\SGID10.POLITICAL.VistaBallotAreas' | |
| RESIDENCES = r'C:\Temp\Temp.gdb\Residences' | |
| PRECINCTS = r'C:\Temp\vista_prod.odc\GV_VISTA.PRECINCTS' | |
| RESIDENCES_SOURCE = r'C:\Temp\vista_prod.odc\GV_VISTA.RESIDENCES' | |
| COUNTIES = r'Database Connections\SGID10.sde\SGID10.BOUNDARIES.Counties' | |
| errors = [] |
This file contains hidden or 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
| from os.path import join | |
| from glob import glob | |
| files = [ | |
| 'a-day-in-the-life-of-utahs-arcgis-server-base-maps', | |
| 'about-our-new-v6-website-in-ghpages', | |
| 'about/data-policies', | |
| 'authoritative-utah-geocoding-results', | |
| 'best-practices-document-for-loading-data-into-an-sde', |
This file contains hidden or 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
| atom.commands.add('atom-text-editor', 'custom:conlog', function () { | |
| editor = atom.workspace.getActiveTextEditor(); | |
| const modName = editor.getTitle().split('.')[0]; | |
| const folder = path.basename(path.dirname(editor.getPath())); | |
| const currentPoint = editor.getCursorBufferPosition(); | |
| let funcName; | |
| editor.scan(/(\S*): function?\s\([\s\S]+?console.*/g, function (iterator) { | |
| if (iterator.range.containsPoint(currentPoint)) { | |
| console.log('found'); | |
| funcName = iterator.match[1]; |
This file contains hidden or 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
| { | |
| packages: [{ | |
| name: 'moment', | |
| main: 'moment', | |
| resourceTags: { | |
| amd: function (filename) { | |
| return /\.js$/.test(filename); | |
| }, | |
| test: function (filename, mid) { | |
| return /\/tests/.test(mid); |
This file contains hidden or 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
| require([ | |
| 'esri/map', | |
| 'esri/layers/WebTiledLayer', | |
| 'esri/layers/TileInfo', | |
| 'esri/geometry/Extent', | |
| 'dojo/on', | |
| 'dojo/dom' | |
| ], function ( | |
| Map, |
This file contains hidden or 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
| new LayerSelector({ | |
| map: map, | |
| quadWord: 'your-quad-word-here', | |
| baseLayers: [ | |
| 'Imagery', | |
| 'Hybrid', | |
| { | |
| token: 'Lite', | |
| selected: true | |
| }, |
This file contains hidden or 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
| require([ | |
| 'layer-selector', | |
| 'esri/map', | |
| 'esri/layers/ArcGISTiledMapServiceLayer', | |
| 'dojo/domReady!' | |
| ], function(LayerSelector, Map, TiledLayer) { | |
| var map = new Map('map', {}); | |
This file contains hidden or 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
| require([ | |
| 'esri/map', | |
| 'esri/layers/WebTiledLayer', | |
| 'esri/geometry/Extent' | |
| ], function ( | |
| Map, | |
| WebTiledLayer, | |
| Extent | |
| ) { | |
| map = new Map('mapDiv', { |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ | |
| querycsv.py | |
| Purpose: | |
| Execute SQL (conceptually, a SELECT statement) on an input file, and | |
| write the results to an output file. | |
| Author(s): | |
| R. Dreas Nielsen (RDN) | |
| Copyright and license: | |
| Copyright (c) 2008, R.Dreas Nielsen |
This file contains hidden or 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
| atom.commands.add('atom-workspace', 'custom:semicolonize', () => { | |
| editor = atom.workspace.getActiveTextEditor(); | |
| editor.moveToEndOfLine(); | |
| editor.insertText(';'); | |
| }); | |
| atom.commands.add('atom-workspace', 'custom:colonize', () => { | |
| editor = atom.workspace.getActiveTextEditor(); | |
| editor.moveToEndOfLine(); | |
| editor.insertText(':'); |