Skip to content

Instantly share code, notes, and snippets.

View davewilton's full-sized avatar

David Wilton davewilton

  • Exprodat Consulting
  • Melbourne
View GitHub Profile
package com.myspace.gfie;
/**
* This class was automatically generated by the data modeler tool.
*/
public class CLIMATE_DATASET implements java.io.Serializable {
static final long serialVersionUID = 1L;
%localappdata%\ESRI\ArcGISPro\AssemblyCache
# script to import kingdom XYZ file to ArcGIS Pro using data assistant
import arcpy
import os
from pathlib import Path
from collections import namedtuple
def main():
add_toolbox()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ArcGIS.Core;
using ArcGIS.Core.CIM;
using ArcGIS.Desktop.Core.Geoprocessing;
using ArcGIS.Desktop.Framework;
Red
DarkRed
Black
Gray
Blue
Green
Yellow
Magenta
Cyan
DarkBlue
/// <reference path="../../../../../tsd.d.ts" />
import WidgetUnderTest = require('widgets/myWidget');
import domConstruct = require('dojo/dom-construct');
describe("widgets/myWidget", () => {
var widget = new WidgetUnderTest();
beforeEach(() => {
widget = new WidgetUnderTest({}, domConstruct.create('div', null, document.body));
widget.startup();
{
"error" :
{
"code" : 400,
"message" : "Unable to complete operation.",
"details" : [
"'where' parameter not specified",
"'objectIds' parameter not specified",
"'time' parameter not specified",
/// <reference path="../../../tsd.ts.ts" />
/// <amd-dependency path="dojo/text!./templates/myWidget.html" name="template" />
declare var template: any;
//dojo
import dojoDeclare = require("dojo/_base/declare");
//dijit
import WidgetBase = require("dijit/_WidgetBase");
import TemplatedMixin = require("dijit/_TemplatedMixin");
# 1. Import modules:
import arcpy
from arcpy import env
import os
# 2. Set Parameters:
env.workspace = arcpy.GetParameterAsText(0)
option = arcpy.GetParameterAsText(1)
@davewilton
davewilton / gist:9317524
Created March 3, 2014 02:32
Wrap a library in AMD
var lib = function() {
// all the code for your lib goes here
lib.myFunction = function(){};
}();
// Support AMD module format
var define;
if (typeof define == 'function' && define.amd) {
define(function () {
return lib;