This is a python script to dump ArcGIS ID messages.
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
class Token { | |
[string] $token | |
[System.DateTimeOffset] $expires | |
Token($response) { | |
$this.token = $response.token; | |
$this.expires = [System.DateTimeOffset]::FromUnixTimeMilliseconds($response.expires) | |
} | |
} | |
$rootUri = "https://www.arcgis.com/sharing/rest" |
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
<# Runs Python unit tests in multiple environments #> | |
# Get python.exe paths. | |
$pyenvs = Get-ChildItem -Path "C:\Python*\" -Filter "python.exe" -Recurse | |
$pyenvs += Get-ChildItem -Path "C:\Program Files\ArcGIS" -Filter "python.exe" -Recurse | |
# Build the list of modules that will be tested. | |
$modules_to_test = [string]::Join(" ", @( | |
"test_travelerinfo", | |
"test_armcalc", |
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
<# | |
.SYNOPSIS | |
Clones an Subversion repository into a Git repository. | |
.DESCRIPTION | |
Clones a Subversion repository into a Git repository, for migrating from Subversion to Git. | |
This is a scripted version of the processed outlined here: | |
http://web.archive.org/web/20161107131841/https://git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-Git | |
.EXAMPLE | |
PS C:\> .\Clone-SvnToGit.ps1 https://example.com/path/to/svn/myrepo/trunk users.txt | |
This will clone the SVN repository at the given URL into a git repository folder called "myrepo", |
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 arcpy.da as da | |
import arcgiscsv | |
class Toolbox(object): | |
def __init__(self): | |
"""Define the toolbox (the name of the toolbox is the name of the | |
.pyt file).""" | |
self.label = "Export to CSV Toolbox" | |
self.alias = "csv" |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
public static class FileSystemExtensions | |
{ | |
/// <summary> |
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
"""Extracts attachments from a file geodatabase. | |
""" | |
import os, re | |
from os.path import join, exists | |
from arcpy import da | |
def extract_attachments(gdb, attachment_dir="images"): | |
"""Extract attachments from a geodatabase to the filesystem. | |
""" | |
attach_table_name_re = re.compile(r"^\w+(?=__ATTACH$)", re.IGNORECASE) |
Don't wait until the end of the week to refill the pill organizer.
- Starting on Tuesday, start refilling the pillbox for the next week.
- Leave a blank day before the current day to avoid confusion (e.g., forgetting what day it is and taking the next day's dose).
Sun. | Mon. | Tue. | Wed. | Thu. | Fri. | Sat. |
---|---|---|---|---|---|---|
Take 💊 | 💊 | 💊 | 💊 | 💊 | 💊 | 💊 |
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
<NotepadPlus> | |
<UserLang name="JSON" ext=".json" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments"></Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |