Skip to content

Instantly share code, notes, and snippets.

@akgupta
Created March 18, 2013 04:41
Show Gist options
  • Save akgupta/5185132 to your computer and use it in GitHub Desktop.
Save akgupta/5185132 to your computer and use it in GitHub Desktop.
Lix.getBucket('mobile.abtest1', 'memberId:23', function(err, bucket) {
if(bucket === 'A') {
// do A
AsyncCallForA(req, handleAFn)
} else if(bucket === 'B') {
// do B
AsyncCallForB(req, handleBFn)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment