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
''' Print Yukon NTS tile names as html table with links, arranged in same order as they appear in a map index. | |
2015-Aug-19, [email protected] | |
License: X/MIT | |
''' | |
nts_txt_ordered = '''117C 117D | |
117B 117A | |
116NO 116P | |
116JK 116I 106L 106K |
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
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry. | |
' | |
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC. | |
' Now, when you double-click the local script file an alertbox pops up | |
' displaying the product key stored in the machine's Windows registry. | |
Set WshShell = WScript.CreateObject("WScript.Shell") | |
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId" | |
MsgBox ExtractKey(WshShell.RegRead(KeyPath)) |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<gpx creator="Esri" version="1.0" xalan="http://xml.apache.org/xalan" xmlns="http://www.topografix.com/GPX/1/1" xsi="http://www.w3.org/2001/XMLSchema-instance"><wpt lat="60.3275172608" lon="-134.272101215"><ele>0</ele><time> </time><name> </name><desc> </desc></wpt><wpt lat="60.5452343323" lon="-134.416443469"><ele>0</ele><time> </time><name> </name><desc> </desc></wpt><wpt lat="60.5059909227" lon="-134.380400689"><ele>0</ele><time> </time><name> </name><desc> </desc></wpt><wpt lat="60.5351046022" lon="-134.492167512"><ele>0</ele><time> </time><name> </name><desc> </desc></wpt><wpt lat="60.4470025183" lon="-134.278019165"><ele>0</ele><time> </time><name> </name><desc> </desc></wpt><wpt lat="60.4715259816" lon="-134.328562126"><ele>0</ele><time> </time><name> </name><desc> </desc></wpt><wpt lat="60.4380733513" lon="-134.309640075"><ele>0</ele><time> </time><name> </name><desc> </desc></wpt><wpt lat="60.5258212849" lon="-134.428693475"><ele>0</ele><time> </time><name> </na |
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 arcpy | |
class Toolbox(object): | |
def __init__(self): | |
"""Define the toolbox (the name of the toolbox is the name of the | |
.pyt file).""" | |
self.label = "Raster Toolbox" | |
self.alias = "" | |
# List of tool classes associated with this toolbox |
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
@echo off | |
:: --- Run.bat --- | |
:: Echo the command line to screen and then execute it. | |
:: | |
:: Useful when you want to have echo turned off everywhere else, | |
:: and not speckle code with `echo on && {cmd line here} && @echo off` | |
if "%*"=="" goto :Usage | |
setlocal | |
echo === Run ================= | |
set _cmd=%* |
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
@echo off | |
:: Test if Lastools are in path, if not extend path and try again. | |
:: we assume desired tool folder is ".\bin" relative to the batch file | |
lasinfo -i >nul 2>&1 | |
if %errorlevel%==9009 set path=%~dp0\bin;%path% | |
lasinfo -i >nul 2>&1 | |
if not "%errorlevel%"=="1" goto :NoTools | |
call :ShowCommands |
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
cls | |
# Author: Frank Schneider | |
# Date: 2015-04-20 | |
# Version:1.0 | |
# Synopsis: | |
# this sample script generates a QDS file which runs a search for the | |
# string "Domain Users" in the Windows integrated search tool. | |
# https://gallery.technet.microsoft.com/scriptcenter/How-to-generate-a-QDS-05fe4ff5 |
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
Scaled_Residual,X,Y,Local_Std_Error,Vertical_Std_Error,Unscaled_Residual | |
97,314430.000,1605270.000,3048.00,3064.27,16.27 | |
75,314550.000,1605270.000,3048.00,3064.27,16.27 | |
33,314490.000,1605270.000,3048.00,3064.27,16.27 | |
12,250410.000,1659810.000,3044.74,3047.10,2.36 | |
12,244410.000,1670550.000,3035.15,3036.42,1.27 | |
12,336090.000,1601070.000,13.61,14.79,1.18 | |
-8,205650.000,1649130.000,32000.00,29985.86,-2014.14 | |
-8,213690.000,1624110.000102000.00100047.75,-1952.25 |
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 sys | |
from osgeo import ogr | |
def main(in_file, in_format, out_file, out_format): | |
in_ds = ogr.GetDriverByName(in_format).Open(in_file) | |
out_ds = ogr.GetDriverByName(out_format).CopyDataSource(in_ds, out_file) | |
if __name__ == '__main__': | |
main(*sys.argv[1:]) |
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
Python 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] on win32 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> | |
>>> my_list = 'one two tee'.split() | |
>>> | |
>>> my_list | |
['one', 'two', 'tee'] | |
>>> | |
>>> [print x for x in my_list] | |
File "<stdin>", line 1 |