Skip to content

Instantly share code, notes, and snippets.

@maphew
Created November 4, 2014 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maphew/aa22449a123359fbdaf5 to your computer and use it in GitHub Desktop.
Save maphew/aa22449a123359fbdaf5 to your computer and use it in GitHub Desktop.
apt-dev.leo 2014 Oct-31 and Nov-01
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Leo: http://leoeditor.com/leo_toc.html -->
<?xml-stylesheet ekr_test?>
<leo_file xmlns:leo="http://leoeditor.com/namespaces/leo-python-editor/1.1" >
<leo_header file_format="2" tnodes="0" max_tnode_index="0" clone_windows="0"/>
<globals body_outline_ratio="0.5" body_secondary_ratio="0.5">
<global_window_position top="50" left="50" height="500" width="700"/>
<global_log_window_position top="0" left="0" height="0" width="0"/>
</globals>
<preferences/>
<find_panel_settings/>
<vnodes>
<v t="maphew.20120622231339.1566" a="E"><vh>./apt</vh>
<v t="maphew.20121011215813.1567" a="E"
expanded="maphew.20121011215813.1569,"><vh>@file Notes.txt</vh></v>
<v t="maphew.20120709214653.1686" a="E"
expanded="maphew.20100302221232.1487,maphew.20100308085005.1379,maphew.20141031145131.3,"><vh>@file apt.py</vh></v>
<v t="maphew.20141028132100.2"><vh>@auto setup.py</vh></v>
</v>
<v t="maphew.20141028082621.3"><vh>./apt/wildlands</vh>
<v t="maphew.20141028084115.13"><vh>@edit shell-history.txt</vh></v>
<v t="maphew.20141028084115.12"><vh>@auto dapt.py</vh></v>
<v t="maphew.20141028084115.11"><vh>@auto complex.py</vh></v>
<v t="maphew.20141028084115.10"><vh>@auto clapt.py</vh></v>
<v t="maphew.20141028084115.8"><vh>@auto args.py</vh></v>
<v t="maphew.20141028084115.7"><vh>@file apt-skeleton.py</vh></v>
<v t="maphew.20141028084115.5"><vh>@auto apt-docopt.py</vh></v>
<v t="maphew.20141028084115.4"><vh>@file a3-subs.py</vh></v>
<v t="maphew.20141028084115.3"><vh>@auto a2.py</vh></v>
</v>
<v t="maphew.20140906223511.1897"><vh>./clickers</vh>
<v t="maphew.20140906223511.1898"><vh>@auto-rst Readme.rst</vh></v>
</v>
<v t="maphew.20121204175822.1570"><vh>clint</vh>
<v t="maphew.20121204175822.1573"><vh>@auto clapt.py</vh></v>
<v t="maphew.20121204175822.1571"><vh>@auto args.py</vh></v>
</v>
<v t="maphew.20121114154646.1522"><vh>other</vh>
<v t="maphew.20121114154646.1523"><vh>@auto args.py</vh></v>
</v>
<v t="maphew.20121216093751.1599"><vh>Buttons</vh>
<v t="maphew.20121216085412.1591"><vh>@button O4w Shell</vh></v>
</v>
<v t="maphew.20141028132100.3"><vh>@persistence</vh>
<v t="maphew.20141028132100.4"><vh>@data:@auto setup.py</vh>
<v t="maphew.20141028132100.5"><vh>@gnxs</vh></v>
</v>
</v>
</vnodes>
<tnodes>
<t tx="maphew.20120622231339.1566">@path apt</t>
<t tx="maphew.20121114154646.1522">@path maphew\other
</t>
<t tx="maphew.20121204175822.1570">@path clint
</t>
<t tx="maphew.20121216085412.1591">'''Open a windows cmd.exe prompt in the path of the currently selected node.
A mapped drive letter will be created for a UNC path.
more info: http://leo.zwiki.org/CommandShellHere/
'''
d = c.scanAllDirectives(p)
# g.es(g.dictToString(d)) #uncomment to show results of above in log pane
path = d.get('path')
name = p.anyAtFileNodeName()
if name:
name = g.os_path_finalize_join(path,name)
g.es(name)
from subprocess import Popen
Popen('start "o4w Shell from Leo" b:\o4w\osgeo4w.bat', cwd=path, shell=True)</t>
<t tx="maphew.20121216093751.1599"></t>
<t tx="maphew.20140906223511.1897">@path ./clickers
</t>
<t tx="maphew.20141028082621.3">@path apt/wildlands
</t>
<t tx="maphew.20141028132100.3"></t>
<t tx="maphew.20141028132100.4">gnx: maphew.20141028132100.2
</t>
<t tx="maphew.20141028132100.5">gnx: maphew.20141006093411.2068
unl: setup declarations
</t>
</tnodes>
</leo_file>
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Leo: http://leoeditor.com/leo_toc.html -->
<?xml-stylesheet ekr_test?>
<leo_file xmlns:leo="http://leoeditor.com/namespaces/leo-python-editor/1.1" >
<leo_header file_format="2" tnodes="0" max_tnode_index="0" clone_windows="0"/>
<globals body_outline_ratio="0.5" body_secondary_ratio="0.5">
<global_window_position top="50" left="50" height="500" width="700"/>
<global_log_window_position top="0" left="0" height="0" width="0"/>
</globals>
<preferences/>
<find_panel_settings/>
<vnodes>
<v t="maphew.20120622231339.1566" a="E"><vh>./apt</vh>
<v t="maphew.20121011215813.1567" a="E"
expanded="maphew.20121011215813.1569,"><vh>@file Notes.txt</vh></v>
<v t="maphew.20120709214653.1686" a="E"
expanded="maphew.20100302221232.1487,"><vh>@file apt.py</vh></v>
<v t="maphew.20141028132100.2"><vh>@auto setup.py</vh></v>
</v>
<v t="maphew.20141028082621.3"><vh>./apt/wildlands</vh>
<v t="maphew.20141028084115.13"><vh>@edit shell-history.txt</vh></v>
<v t="maphew.20141028084115.12"><vh>@auto dapt.py</vh></v>
<v t="maphew.20141028084115.11"><vh>@auto complex.py</vh></v>
<v t="maphew.20141028084115.10"><vh>@auto clapt.py</vh></v>
<v t="maphew.20141028084115.8"><vh>@auto args.py</vh></v>
<v t="maphew.20141028084115.7"><vh>@file apt-skeleton.py</vh></v>
<v t="maphew.20141028084115.5"><vh>@auto apt-docopt.py</vh></v>
<v t="maphew.20141028084115.4"><vh>@file a3-subs.py</vh></v>
<v t="maphew.20141028084115.3"><vh>@auto a2.py</vh></v>
</v>
<v t="maphew.20140906223511.1897"><vh>./clickers</vh>
<v t="maphew.20140906223511.1898"><vh>@auto-rst Readme.rst</vh></v>
</v>
<v t="maphew.20121204175822.1570"><vh>clint</vh>
<v t="maphew.20121204175822.1573"><vh>@auto clapt.py</vh></v>
<v t="maphew.20121204175822.1571"><vh>@auto args.py</vh></v>
</v>
<v t="maphew.20121114154646.1522"><vh>other</vh>
<v t="maphew.20121114154646.1523"><vh>@auto args.py</vh></v>
</v>
<v t="maphew.20121216093751.1599"><vh>Buttons</vh>
<v t="maphew.20121216085412.1591"><vh>@button O4w Shell</vh></v>
</v>
<v t="maphew.20141028132100.3"><vh>@persistence</vh>
<v t="maphew.20141028132100.4"><vh>@data:@auto setup.py</vh>
<v t="maphew.20141028132100.5"><vh>@gnxs</vh></v>
</v>
</v>
</vnodes>
<tnodes>
<t tx="maphew.20120622231339.1566">@path apt</t>
<t tx="maphew.20121114154646.1522">@path maphew\other
</t>
<t tx="maphew.20121204175822.1570">@path clint
</t>
<t tx="maphew.20121216085412.1591">'''Open a windows cmd.exe prompt in the path of the currently selected node.
A mapped drive letter will be created for a UNC path.
more info: http://leo.zwiki.org/CommandShellHere/
'''
d = c.scanAllDirectives(p)
# g.es(g.dictToString(d)) #uncomment to show results of above in log pane
path = d.get('path')
name = p.anyAtFileNodeName()
if name:
name = g.os_path_finalize_join(path,name)
g.es(name)
from subprocess import Popen
Popen('start "o4w Shell from Leo" b:\o4w\osgeo4w.bat', cwd=path, shell=True)</t>
<t tx="maphew.20121216093751.1599"></t>
<t tx="maphew.20140906223511.1897">@path ./clickers
</t>
<t tx="maphew.20141028082621.3">@path apt/wildlands
</t>
<t tx="maphew.20141028132100.3"></t>
<t tx="maphew.20141028132100.4">gnx: maphew.20141028132100.2
</t>
<t tx="maphew.20141028132100.5">gnx: maphew.20141006093411.2068
unl: setup declarations
</t>
</tnodes>
</leo_file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment