Skip to content

Instantly share code, notes, and snippets.

View jamesbar2's full-sized avatar

James Barnett jamesbar2

View GitHub Profile
@jamesbar2
jamesbar2 / postal-codes.json
Last active April 17, 2024 17:40 — forked from matthewbednarski/postal-codes.json
Global postal codes regex formats
[{
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup",
"Country": "Afghanistan",
"ISO": "AF",
"Format": "NNNN",
"Regex": "^\\d{4}$"
}, {
"Note": "With Finland, first two numbers are 22.",
"Country": "Åland Islands",
"ISO": "AX",
@jamesbar2
jamesbar2 / gist:7695af3cc37d7f5f80edf34303a2054a
Last active July 1, 2016 07:05
JSON Output from ASP.NET WebAPI (modified to fit example, GUID zero'd out)
[
{
"myPrimaryObjectId": "00000000-0000-0000-0000-000000000000",
"name": "Item 98",
"myObjectDescription": null,
"numberOfOccurrences": 2,
"positiveResponsePercentage": 0,
"secondaryObjects": [
{
"mySecondaryObjectId": 1,