Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
covid-19-html/stateNameAbbr.lua
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
68 lines (67 sloc)
2.34 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rem = {} | |
| rem = { #rem, -- This script is a Python and Lua polyglot. It is to be | |
| #rem, -- included in a Python or Lua script to create | |
| #rem, -- the dictionary/table stateNameAbbr, which given | |
| #rem, -- the name of the state (e.g. California), gives its | |
| #rem, -- 2-letter upper case abbreviation (e.g. CA) | |
| #rem, -- | |
| #rem, -- This script is by Sam Trenholme, and has been donated | |
| #rem -- to the public domain in 2020 | |
| } | |
| stateNameAbbr = {} | |
| stateNameAbbr["Alabama"] = "AL" | |
| stateNameAbbr["Alaska"] = "AK" | |
| stateNameAbbr["Arizona"] = "AZ" | |
| stateNameAbbr["Arkansas"] = "AR" | |
| stateNameAbbr["California"] = "CA" | |
| stateNameAbbr["Colorado"] = "CO" | |
| stateNameAbbr["Connecticut"] = "CT" | |
| stateNameAbbr["Delaware"] = "DE" | |
| stateNameAbbr["District of Columbia"] = "DC" | |
| stateNameAbbr["Florida"] = "FL" | |
| stateNameAbbr["Georgia"] = "GA" | |
| stateNameAbbr["Guam"] = "GU" | |
| stateNameAbbr["Hawaii"] = "HI" | |
| stateNameAbbr["Idaho"] = "ID" | |
| stateNameAbbr["Illinois"] = "IL" | |
| stateNameAbbr["Indiana"] = "IN" | |
| stateNameAbbr["Iowa"] = "IA" | |
| stateNameAbbr["Kansas"] = "KS" | |
| stateNameAbbr["Kentucky"] = "KY" | |
| stateNameAbbr["Louisiana"] = "LA" | |
| stateNameAbbr["Maine"] = "ME" | |
| stateNameAbbr["Maryland"] = "MD" | |
| stateNameAbbr["Massachusetts"] = "MA" | |
| stateNameAbbr["Michigan"] = "MI" | |
| stateNameAbbr["Minnesota"] = "MN" | |
| stateNameAbbr["Mississippi"] = "MS" | |
| stateNameAbbr["Missouri"] = "MO" | |
| stateNameAbbr["Montana"] = "MT" | |
| stateNameAbbr["Nebraska"] = "NE" | |
| stateNameAbbr["Nevada"] = "NV" | |
| stateNameAbbr["New Hampshire"] = "NH" | |
| stateNameAbbr["New Jersey"] = "NJ" | |
| stateNameAbbr["New Mexico"] = "NM" | |
| stateNameAbbr["New York"] = "NY" | |
| stateNameAbbr["North Carolina"] = "NC" | |
| stateNameAbbr["North Dakota"] = "ND" | |
| stateNameAbbr["Northern Mariana Islands"] = "MP" | |
| stateNameAbbr["Ohio"] = "OH" | |
| stateNameAbbr["Oklahoma"] = "OK" | |
| stateNameAbbr["Oregon"] = "OR" | |
| stateNameAbbr["Pennsylvania"] = "PA" | |
| stateNameAbbr["Puerto Rico"] = "PR" | |
| stateNameAbbr["Rhode Island"] = "RI" | |
| stateNameAbbr["South Carolina"] = "SC" | |
| stateNameAbbr["South Dakota"] = "SD" | |
| stateNameAbbr["Tennessee"] = "TN" | |
| stateNameAbbr["Texas"] = "TX" | |
| stateNameAbbr["Utah"] = "UT" | |
| stateNameAbbr["Vermont"] = "VT" | |
| stateNameAbbr["Virginia"] = "VA" | |
| stateNameAbbr["Virgin Islands"] = "VI" | |
| stateNameAbbr["Washington"] = "WA" | |
| stateNameAbbr["West Virginia"] = "WV" | |
| stateNameAbbr["Wisconsin"] = "WI" | |
| stateNameAbbr["Wyoming"] = "WY" | |
| stateNameAbbr["American Samoa"] = "AS" |