Skip to content

Instantly share code, notes, and snippets.

View Stephen-Gates's full-sized avatar

Stephen Gates Stephen-Gates

View GitHub Profile
@Stephen-Gates
Stephen-Gates / manifesto-for-data-practices.md
Last active February 23, 2018 20:40
Manifesto for Data Practices

Manifesto for Data Practices

We believe these values and principles, taken together, describe the most effective, ethical, and modern approach to data teamwork.

VALUES

Inclusion

Maximize diversity, connectivity, and accessibility among data projects, collaborators, and outputs.

{
"fields": [{
"name": "id",
"type": "string",
"constraints": {
"required": true,
"unique": true
}
},
{
@Stephen-Gates
Stephen-Gates / data-package-version.md
Last active September 26, 2017 16:50
Data Package Version

Data Package Version

The Data Package version format follows the Semantic Versioning specification format: MAJOR.MINOR.PATCH

Semantic Versioning helps developers manage dependencies between software packages. The version numbers, and the way they change, convey meaning about the underlying code and what has been modified from one version to the next.

In Data Packages this concept is applied to data.

The version numbers, and the way they change, convey meaning how the data package has been modified from one version to the next.

{
"fields": [
{
"name": "Mobile",
"title": "Australian Mobile Phone Number",
"constraints": {
"required": false,
"pattern": "^04[0-9]{8}"
}
}
@Stephen-Gates
Stephen-Gates / JSON Table Schema Wrapper
Created February 20, 2016 10:29
Header and footer for JSON Table Schema. Add you Field Descriptors in-between the square brackets.
{
"fields": [
]
}
@Stephen-Gates
Stephen-Gates / JSON Australian Mobile Phone Number
Created February 20, 2016 10:12
Australia Mobile Phone Numbers start with 04 and followed by 8 numbers. This does not include the +61 country code.
{
"name": "Mobile",
"title": "Australian Mobile Phone Number",
"constraints": {
"required": false,
"pattern": "^04[0-9]{8}"
}
}
@Stephen-Gates
Stephen-Gates / JSON Australian Postcode
Last active November 25, 2024 16:55
Australian postal code verification. Australia has 4-digit numeric postal codes with the following state based specific ranges. ACT: 0200-0299 and 2600-2639. NSW: 1000-1999, 2000-2599 and 2640-2914. NT: 0900-0999 and 0800-0899. QLD: 9000-9999 and 4000-4999. SA: 5000-5999. TAS: 7800-7999 and 7000-7499. VIC: 8000-8999 and 3000-3999. WA: 6800-6999 …
{
"name": "Postcode",
"title": "Australian Post Code",
"constraints": {
"required": true,
"pattern": "^(0[289][0-9]{2})|([1345689][0-9]{3})|(2[0-8][0-9]{2})|(290[0-9])|(291[0-4])|(7[0-4][0-9]{2})|(7[8-9][0-9]{2})$"
}
}
@Stephen-Gates
Stephen-Gates / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console