Skip to content

Tools for Canadian political participation and engagement project.

Notifications You must be signed in to change notification settings

wkyle/political-engagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

political-engagement

Tools for Canadian political participation and engagement project.

File Structure

To print file structure in console:

tree -P '*.py|*.txt|*.js|*.xml' --filelimit 14
.
├── data
│   ├── legislation
│   │   ├── databaseXML [17 entries exceeds filelimit, not opening dir]
│   │   └── linked_bill_database.xml
│   └── mapping
│       ├── AB
│       ├── BC
│       ├── CAN
│       │   └── shapefile
│       ├── MB
│       ├── NB
│       ├── NL
│       ├── NS
│       ├── NT
│       ├── NU
│       ├── ON
│       ├── PE
│       ├── QC
│       ├── SK
│       └── YT
├── dev
│   ├── elliot
│   │   ├── code
│   │   │   ├── js
│   │   │   └── python
│   │   └── readme.txt
│   └── wes
│       ├── assets
│       │   └── regex.txt
│       ├── code
│       │   ├── js
│       │   │   └── politician_modules
│       │   │       ├── council_modules.js
│       │   │       ├── mla_modules.js
│       │   │       └── mp_modules.js
│       │   └── python
│       │       ├── codeFED.py                                                                                                                                                                                                                     
│       │       ├── colormaps.py                                                                                                                                                                                                                   
│       │       ├── tools.py                                                                                                                                                                                                                       
│       │       ├── url.py                                                                                                                                                                                                                         
│       │       └── xmlParsing.py                                                                                                                                                                                                                  
│       └── data                                                                                                                                                                                                                                   
│           ├── government                                                                                                                                                                                                                         
│           │   └── DBUpdate.py                                                                                                                                                                                                                    
│           ├── legislation                                                                                                                                                                                                                        
│           │   ├── databaseXML [17 entries exceeds filelimit, not opening dir]                                                                                                                                                                    
│           │   └── linked_bill_database.xml                                                                                                                                                                                                       
│           └── mapping                                                                                                                                                                                                                            
│               ├── AB                                                                                                                                                                                                                             
│               │   └── PED_AB_raw.shp.xml                                                                                                                                                                                                         
│               ├── BC                                                                                                                                                                                                                             
│               ├── CAN                                                                                                                                                                                                                            
│               │   └── shapefile                                                                                                                                                                                                                  
│               ├── MB                                                                                                                                                                                                                             
│               │   └── PED_MB_raw.shp.xml                                                                                                                                                                                                         
│               ├── NB                                                                                                                                                                                                                             
│               ├── NL                                                                                                                                                                                                                             
│               ├── NS                                                                                                                                                                                                                             
│               ├── NT
│               ├── NU
│               ├── ON
│               ├── PE
│               ├── QC
│               ├── SK
│               │   └── PED_SK_raw.shp.xml
│               └── YT
└── production
    └── readme.txt


Style Guide

The following applies to both JavaScript and Python.

Functions/methods: camelCase
Variables: lowercase_with_underscore
Classes: PascalCase

When writing XML documents use PascalCase for tag names:

<TagName></TagName>

and camelCase for attributes:

<TagName attributeName=""></TagName>

This is a commonly found naming convention and I like how it reads with the heirarchy of uppercase first word and lowercase first word.

Acronyms like FED (Federal Electoral District) will be left in uppercase and pluralized with a lowercase "s", i.e., FEDs

About

Tools for Canadian political participation and engagement project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published