Skip to content

Instantly share code, notes, and snippets.

View talllguy's full-sized avatar
🎯
Focusing

Elliott Plack talllguy

🎯
Focusing
View GitHub Profile
public class node {
int data;
node next;
public node()
{data = 0; next = null;}
public node(int x, node n)
{data = x; next =n;}
@talllguy
talllguy / MyLinkedList.java
Last active August 29, 2015 13:57
Playing with LinkedLists
public class MyLinkedList {
private static node head;
public void DisplayList(node q)
{if (q != null) {
System.out.println(q.data);
DisplayList(q.next);}}
public void Buildlist() throws IOException
{node q = new node(0,null);
node head = q;
String oneLine;
@talllguy
talllguy / fc.py
Last active August 29, 2015 14:00
DNR-Lands-to-OSM
replace( "DNRNAME",'SF','State Forest')
replace( "DNRNAME",'FMA','Fish Management Area')
replace( "DNRNAME",'FT','Fire Tower')
replace( "DNRNAME",'SP','State Park')
replace( "DNRNAME",'CFL','Chesapeake Forest Lands')
replace( "DNRNAME",'NRMA','Natural Resource Management Area')
replace( "DNRNAME",'NEA','Natural Environment Area')
replace( "DNRNAME",'WMA','Wildlife Management Area')
replace( "DNRNAME",'HCF','Heritage Conservation Fund Site')
net stop spooler
rundll32.exe setupapi.dll,InstallHinfSection AdobePDFPortMonitor 128 C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Xtras\AdobePDF\AdobePDF.inf
net start spooler
rundll32.exe printui.dll,PrintUIEntry /if /b "Adobe PDF" /f "C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Xtras\AdobePDF\AdobePDF.inf" /r "Documents\*.pdf" /m "Adobe PDF Converter"
@talllguy
talllguy / dnrNameExpand
Last active August 29, 2015 14:01
Expands fields in Md DNR data
CASE WHEN name = 'SF' THEN 'State Forest'
WHEN name = 'FMA' THEN 'Fish Management Area'
WHEN name = 'FT' THEN 'Fire Tower'
WHEN name = 'SP' THEN 'State Park'
WHEN name = 'CFL' THEN 'Chesapeake Forest Lands'
WHEN name = 'NRMA' THEN 'Natural Resource Management Area'
WHEN name = 'NEA' THEN 'Natural Environment Area'
WHEN name = 'WMA' THEN 'Wildlife Management Area'
WHEN name = 'HCF' THEN 'Heritage Conservation Fund Site'
END
@talllguy
talllguy / social.html
Last active August 29, 2015 14:01
Canton website social media
<p>&nbsp;<span style="font-family: inherit; font-size: 1em; line-height: 1.5em;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span>
<a style="font-family: inherit; font-size: 1em; line-height: 1.5em;" href="http://www.facebook.com/home.php?#!/pages/Canton-Community-Association/201172126560?ref=ts" target="_blank"></a>
</a>
<img src="/images/facebook.png" alt="" width="35" height="35" />
</a>
<span style="font-family: inherit; font-size: 1em; line-height: 1.5em;">&nbsp; &nbsp;</span><a style="font-family: inherit; font-size: 1em; line-height: 1.5em;" href="http://twitter.com/cantonbaltimore" target="_blank"><img src="/images/twitter.png" alt="" width="35" height="35" />
</a>
</p>
@talllguy
talllguy / OwnerID_Codes.md
Created June 27, 2014 14:51
Maryland Owner ID Codes for Baltimore County

Baltimore County Codes 01 – Administration (County complex, Multi-purpose Facilities, Parking lots

04 – Drainage and Utility Reservation, Bridge Area, Re-Channelization; Storm Water Management; Flood Control Strips (DPW)

05 – Highway (DPW)

08 – Land Fills (DPW)

@talllguy
talllguy / osm-baco-building-workflow.md
Created June 30, 2014 15:37
Workflow for Baltimore County building import

OSM Buildings import for Baltimore County

Conditions

  • ArcMap 10.2
  • Address data
  • Building data

Workflow

OSM Baltimore County Buildings Import

Thoughts:

  • many field calcs to concatenate addresses and streets
  • title case!
  • need to figure out how to expand abbr.
  • three separate imports
  • merged buildings
    
  • separate buildings
    
  • separate addresses
@talllguy
talllguy / closures.json
Last active August 29, 2015 14:04
Sample of Baltimore County Road Closure data. Full site at http://egov.baltimorecountymd.gov/roadclosures/
{
"displayFieldName": "FIRST_STLABEL",
"fieldAliases": {
"OBJECTID": "OBJECTID",
"CLOSURE_ID": "CLOSURE_ID",
"FIRST_STLABEL": "STLABEL",
"FIRST_INTERSECTIONLIST": "IntersectionList",
"FIRST_ROAD_CLOSURE_DATE": "ROAD_CLOSURE_DATE",
"FIRST_ROAD_EST_OPEN_DATE": "ROAD_EST_OPEN_DATE",
"FIRST_CLOSURE_TYPE": "CLOSURE_TYPE",