Skip to content

Instantly share code, notes, and snippets.

@seaukara
seaukara / bootStrapper.js
Created February 24, 2017 20:32
bootStrapper for js app
require([
"widgets/propWidget",
"dojo/parser",
"esri/config",
"dojo/_base/array",
"dojo/domReady!"
], function (propWidget, parser, esriConfig, array) {
appGlobals = {};
console.log(propWidget)
try {
define([
"dojo/_base/declare",
"dijit/_WidgetBase",
"dijit/layout/BorderContainer",
"widgets/mapLayers",
"widgets/ecgi",
"widgets/searchBar",
"dojo/string",
"esri/map",
"esri/dijit/FeatureTable",
@seaukara
seaukara / dojoConfig.js
Created February 24, 2017 20:30
dojoConfig for JS app
var root = location.href.slice(0, location.href.lastIndexOf('/'));
console.log(root)
dojoConfig = {
isDebug: true,
parseOnLoad: true,
async: true,
baseURL: root,
foo: 'bar',
@seaukara
seaukara / index.html
Last active November 13, 2019 22:03
index page for JS app
<!DOCTYPE html>
<style>
html, body {
height: 100%;
margin: 0px;
padding: 0px;
width: 100%;
right: 1px;
overflow: hidden !important;
font-size: 9px !important;
from datetime import datetime, date, time, timedelta
timein = (raw_input("Time in: "))
if ":" in timein:
hour = int(timein[0])
minutes = int(timein[-2:])
start = timedelta(hours = hour, minutes = minutes)
else:
start = timedelta(hours=(int(timein)))
leavetime = raw_input("Time you are leaving: ")
#-------------------------------------------------------------------------------
# Name: Update Master Table
# Purpose: Ensures that the master and new table are identical(matching the new table)
#
# Author: kara
#-------------------------------------------------------------------------------
import arcpy
#-------------------------------------------------------------------------------
# Name: Return attachment URLs for a feature service
# Purpose: Iterates through features in a feature service and pulls all attachments IDs
#
# Author: Kara Manseau
#
# Created: 16/04/2014
#-------------------------------------------------------------------------------
import requests
import arcpy
from arcpy import da
import os
mxd = arcpy.mapping.MapDocument(r"")
fileLocation =(r"")
df = arcpy.mapping.ListDataFrames(mxd, "zzz")[0]
print 'Set Variables'