Skip to content

Instantly share code, notes, and snippets.

View cmtoomey's full-sized avatar

Chris Toomey cmtoomey

View GitHub Profile
@cmtoomey
cmtoomey / style.xml
Created May 7, 2015 17:01
Style Template XML
<style>
<style-rule element='cell'>
<format attr='font-weight' value='normal' />
<format attr='color' value='#ff0080' />
<format attr='text-align' value='center' />
<format attr='vertical-align' value='center' />
<format attr='text-orientation' value='0' />
<format attr='border-style' value='solid' />
<format attr='border-color' value='#ffffff' />
</style-rule>
@cmtoomey
cmtoomey / Mapping.xml
Last active August 29, 2015 14:20
How to map new and old Tableau Datasources
<?xml version='1.0' encoding='utf-8' ?>
<datasource formatted-name='XXXX' inline='true' version='9.0' xmlns:user='http://www.tableausoftware.com/xml/user'>
<!-- build 8100.14.0717.0952 -->
<connection class='New Skool DB' dbname='DB' odbc-connect-string-extras='' port='####' server='some_connection_string' single-node='no' sslmode='require' username='username'>
<relation name='database' table='[Tables/Views].[Contacts]' type='table' />
<cols>
<!-- Paste all the new XML in here -->
<map key='[MyPeople]' value='[Contacts].[mypeople]' />
<map key='[YourPeople]' value='[Contacts].[yourpeople]' />
@cmtoomey
cmtoomey / Tableau.xml
Last active December 28, 2023 21:46
Fully Documented Tableau Workbook as XML
<?xml version='1.0' encoding='utf-8' ?>
<!--This is the basics - platform (windows or mac)and version number-->
<workbook source-platform='mac' version='9.0' xmlns:user='http://www.tableausoftware.com/xml/user'>
<!-- build 9000.15.0318.1720 -->
<!--No idea what this for -->
<preferences>
<preference name='ui.encoding.shelf.height' value='250' />
<preference name='ui.shelf.height' value='250' />
</preferences>
<!--This is everything you need to know about datasources -->