Skip to content

Instantly share code, notes, and snippets.

@csmoore
csmoore / csv2markdownTable.py
Last active July 14, 2022 08:28
Simple script to convert a Comma-separated file (.csv) file to Markdown (.md) Table
#-------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@csmoore
csmoore / ConvertTree-SVGtoPNG.bat
Created April 9, 2014 16:10
Recursively Converts a Directory of SVGs to PNGs, maintaining the original folder structure, requires a 3rd party converter (see TODOs for how to set)
@ECHO OFF
:: (Heavily) Adapted from Craig Williams script:
:: Apache V2: https://github.com/williamscraigm/csv2ArcGISStyle/blob/master/SVGtoEMF.bat
:: Adaptations were to create the same folder structure in the destination folder
:: This was needed to handle a set of source svgs with a complex folder structure that
:: needed to be maintained
:: This script converts SVG files to EMF/PNG. Run as admin
:: For Inkscape help, see http://inkscape.org/doc/inkscape-man.html
#------------------------------------------------------------------------------
# Copyright 2013 Esri
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,