Skip to content

Instantly share code, notes, and snippets.

@jsantell
Created June 29, 2016 18:49
Show Gist options
  • Save jsantell/e00567f0100e1eb9c78f0407d034d42e to your computer and use it in GitHub Desktop.
Save jsantell/e00567f0100e1eb9c78f0407d034d42e to your computer and use it in GitHub Desktop.
segmentation.js
{
from: Date,
to: Date,
experiments: [
// Some experiments may not need to update, but just set some local flags
{
name: 'no-tabs',
// Some segmentation groups may need a specific runtime (platform, screen dimensions, memory, location)
requirements: {
platform: platform => platform === 'darwin',
language: language => language === 'en-US' || language === 'en-GB',
},
flags: {
hideTabs: true
},
},
// Some experiments may have to update the entire application
{
name: 'big-tabs',
hash: '654321', // Could also be an update/download URL instead
requirements: {},
flags: {},
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment