Skip to content

Instantly share code, notes, and snippets.

@bradydan
Last active September 21, 2023 09:50
Show Gist options
  • Select an option

  • Save bradydan/e172c3f99e211e6e47ad84f08f83dfe3 to your computer and use it in GitHub Desktop.

Select an option

Save bradydan/e172c3f99e211e6e47ad84f08f83dfe3 to your computer and use it in GitHub Desktop.

Revisions

  1. bradydan revised this gist Sep 21, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion COUNTRIES_WITHOUT_POSTCODES_2018.rb
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,7 @@
    [ "Suriname", "SR" ],
    [ "Syria", "SY" ],
    [ "Tokelau", "TK" ],
    [ "Togo", "TG" ]
    [ "Togo", "TG" ],
    [ "Tonga", "TO" ],
    [ "Tuvalu", "TV" ],
    [ "Uganda", "UG" ],
  2. bradydan revised this gist Sep 18, 2023. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion COUNTRIES_WITHOUT_POSTCODES_2018.rb
    Original file line number Diff line number Diff line change
    @@ -37,7 +37,6 @@
    [ "Mauritania", "MR" ],
    [ "Nauru", "NR" ],
    [ "Netherlands Antilles", "AN" ],
    [ "Nicaragua", "NI" ],
    [ "Niue", "NU" ],
    [ "North Korea", "KP" ],
    [ "Qatar", "QA" ],
  3. bradydan revised this gist Sep 18, 2023. 1 changed file with 6 additions and 15 deletions.
    21 changes: 6 additions & 15 deletions COUNTRIES_WITHOUT_POSTCODES_2018.rb
    Original file line number Diff line number Diff line change
    @@ -11,56 +11,47 @@
    [ "Burundi", "BI" ],
    [ "Cameroon", "CM" ],
    [ "Central African Republic", "CF" ],
    [ "Chad", "TD" ],
    [ "Comoros", "KM" ],
    [ "Congo", "CG" ],
    [ "Congo, Democratic Republic of the", "CD" ],
    [ "Cook Islands", "CK" ],
    [ "Cote d'Ivoire", "CI" ],
    [ "Curaçao", "CW" ],
    [ "Djibouti", "DJ" ],
    [ "Dominica", "DM" ],
    [ "Equatorial Guinea", "GQ" ],
    [ "East Timor", "TL" ],
    [ "Eritrea", "ER" ],
    [ "Fiji", "FJ" ],
    [ "French Southern Territories", "TF" ],
    [ "Gabon", "GA" ],
    [ "Gambia", "GM" ],
    [ "Ghana", "GH" ],
    [ "Grenada", "GD" ],
    [ "Guinea", "GN" ],
    [ "Guyana", "GY" ],
    [ "Heard and McDonald Islands", "HM" ],
    [ "Hong Kong", "HK" ],
    [ "Jamaica", "JM" ],
    [ "Kenya", "KE" ],
    [ "Kiribati", "KI" ],
    [ "Macao", "MO" ],
    [ "Malawi", "MW" ],
    [ "Mali", "ML" ],
    [ "Mauritania", "MR" ],
    [ "Mauritius", "MU" ],
    [ "Montserrat", "MS" ],
    [ "Nauru", "NR" ],
    [ "Netherlands Antilles", "AN" ],
    [ "Nicaragua", "NI" ],
    [ "Niue", "NU" ],
    [ "North Korea", "KP" ],
    [ "Panama", "PA" ],
    [ "Qatar", "QA" ],
    [ "Rwanda", "RW" ],
    [ "Saint Kitts and Nevis", "KN" ],
    [ "Saint Lucia", "LC" ],
    [ "Sao Tome and Principe", "ST" ],
    [ "Seychelles", "SC" ],
    [ "Sierra Leone", "SL" ],
    [ "Solomon Islands", "SB" ],
    [ "Somalia", "SO" ],
    [ "South Africa", "ZA" ],
    [ "South Sudan", "SS" ],
    [ "Suriname", "SR" ],
    [ "Syria", "SY" ],
    [ "Tanzania, United Republic of", "TZ" ],
    [ "Timor-Leste", "TL" ],
    [ "Tokelau", "TK" ],
    [ "Togo", "TG" ]
    [ "Tonga", "TO" ],
    [ "Trinidad and Tobago", "TT" ],
    [ "Tuvalu", "TV" ],
    [ "Uganda", "UG" ],
    [ "United Arab Emirates", "AE" ],
  4. bradydan revised this gist Sep 18, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions COUNTRIES_WITHOUT_POSTCODES_2018.rb
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    [ "Bahamas", "BS" ],
    [ "Belize", "BZ" ],
    [ "Benin", "BJ" ],
    [ "Bolivia", "BO" ],
    [ "Botswana", "BW" ],
    [ "Burkina Faso", "BF" ],
    [ "Burundi", "BI" ],
  5. bradydan revised this gist Sep 18, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions COUNTRIES_WITHOUT_POSTCODES_2018.rb
    Original file line number Diff line number Diff line change
    @@ -21,6 +21,7 @@
    [ "Eritrea", "ER" ],
    [ "Fiji", "FJ" ],
    [ "French Southern Territories", "TF" ],
    [ "Gabon", "GA" ],
    [ "Gambia", "GM" ],
    [ "Ghana", "GH" ],
    [ "Grenada", "GD" ],
  6. bradydan revised this gist Sep 18, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion COUNTRIES_WITHOUT_POSTCODES_2018.rb
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@
    [ "Central African Republic", "CF" ],
    [ "Comoros", "KM" ],
    [ "Congo", "CG" ],
    [ "Congo, the Democratic Republic of the", "CD" ],
    [ "Congo, Democratic Republic of the", "CD" ],
    [ "Cook Islands", "CK" ],
    [ "Cote d'Ivoire", "CI" ],
    [ "Djibouti", "DJ" ],
  7. bradydan revised this gist Sep 18, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions COUNTRIES_WITHOUT_POSTCODES_2018.rb
    Original file line number Diff line number Diff line change
    @@ -38,6 +38,7 @@
    [ "Montserrat", "MS" ],
    [ "Nauru", "NR" ],
    [ "Netherlands Antilles", "AN" ],
    [ "Nicaragua", "NI" ],
    [ "Niue", "NU" ],
    [ "North Korea", "KP" ],
    [ "Panama", "PA" ],
  8. bradydan revised this gist Sep 18, 2023. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion COUNTRIES_WITHOUT_POSTCODES_2018.rb
    Original file line number Diff line number Diff line change
    @@ -27,7 +27,6 @@
    [ "Guinea", "GN" ],
    [ "Guyana", "GY" ],
    [ "Hong Kong", "HK" ],
    [ "Ireland", "IE" ],
    [ "Jamaica", "JM" ],
    [ "Kenya", "KE" ],
    [ "Kiribati", "KI" ],
  9. bradydan created this gist Apr 13, 2018.
    68 changes: 68 additions & 0 deletions COUNTRIES_WITHOUT_POSTCODES_2018.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,68 @@
    COUNTRIES_WITHOUT_POSTCODES = [
    [ "Angola", "AO" ],
    [ "Antigua and Barbuda", "AG" ],
    [ "Aruba", "AW" ],
    [ "Bahamas", "BS" ],
    [ "Belize", "BZ" ],
    [ "Benin", "BJ" ],
    [ "Botswana", "BW" ],
    [ "Burkina Faso", "BF" ],
    [ "Burundi", "BI" ],
    [ "Cameroon", "CM" ],
    [ "Central African Republic", "CF" ],
    [ "Comoros", "KM" ],
    [ "Congo", "CG" ],
    [ "Congo, the Democratic Republic of the", "CD" ],
    [ "Cook Islands", "CK" ],
    [ "Cote d'Ivoire", "CI" ],
    [ "Djibouti", "DJ" ],
    [ "Dominica", "DM" ],
    [ "Equatorial Guinea", "GQ" ],
    [ "Eritrea", "ER" ],
    [ "Fiji", "FJ" ],
    [ "French Southern Territories", "TF" ],
    [ "Gambia", "GM" ],
    [ "Ghana", "GH" ],
    [ "Grenada", "GD" ],
    [ "Guinea", "GN" ],
    [ "Guyana", "GY" ],
    [ "Hong Kong", "HK" ],
    [ "Ireland", "IE" ],
    [ "Jamaica", "JM" ],
    [ "Kenya", "KE" ],
    [ "Kiribati", "KI" ],
    [ "Macao", "MO" ],
    [ "Malawi", "MW" ],
    [ "Mali", "ML" ],
    [ "Mauritania", "MR" ],
    [ "Mauritius", "MU" ],
    [ "Montserrat", "MS" ],
    [ "Nauru", "NR" ],
    [ "Netherlands Antilles", "AN" ],
    [ "Niue", "NU" ],
    [ "North Korea", "KP" ],
    [ "Panama", "PA" ],
    [ "Qatar", "QA" ],
    [ "Rwanda", "RW" ],
    [ "Saint Kitts and Nevis", "KN" ],
    [ "Saint Lucia", "LC" ],
    [ "Sao Tome and Principe", "ST" ],
    [ "Seychelles", "SC" ],
    [ "Sierra Leone", "SL" ],
    [ "Solomon Islands", "SB" ],
    [ "Somalia", "SO" ],
    [ "South Africa", "ZA" ],
    [ "Suriname", "SR" ],
    [ "Syria", "SY" ],
    [ "Tanzania, United Republic of", "TZ" ],
    [ "Timor-Leste", "TL" ],
    [ "Tokelau", "TK" ],
    [ "Tonga", "TO" ],
    [ "Trinidad and Tobago", "TT" ],
    [ "Tuvalu", "TV" ],
    [ "Uganda", "UG" ],
    [ "United Arab Emirates", "AE" ],
    [ "Vanuatu", "VU" ],
    [ "Yemen", "YE" ],
    [ "Zimbabwe", "ZW" ]
    ]